Class LogAggregationFileControllerFactory
java.lang.Object
org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileControllerFactory
Use
LogAggregationFileControllerFactory to get the correct
LogAggregationFileController for write and read.-
Constructor Summary
ConstructorsConstructorDescriptionLogAggregationFileControllerFactory(org.apache.hadoop.conf.Configuration conf) Construct the LogAggregationFileControllerFactory object. -
Method Summary
Modifier and TypeMethodDescriptiongetFileControllerForRead(org.apache.hadoop.yarn.api.records.ApplicationId appId, String appOwner) GetLogAggregationFileControllerto read the aggregated logs for this application.GetLogAggregationFileControllerto write.
-
Constructor Details
-
LogAggregationFileControllerFactory
public LogAggregationFileControllerFactory(org.apache.hadoop.conf.Configuration conf) Construct the LogAggregationFileControllerFactory object.- Parameters:
conf- the Configuration
-
-
Method Details
-
getFileControllerForWrite
GetLogAggregationFileControllerto write.- Returns:
- the LogAggregationFileController instance
-
getFileControllerForRead
public LogAggregationFileController getFileControllerForRead(org.apache.hadoop.yarn.api.records.ApplicationId appId, String appOwner) throws IOException GetLogAggregationFileControllerto read the aggregated logs for this application.- Parameters:
appId- the ApplicationIdappOwner- the Application Owner- Returns:
- the LogAggregationFileController instance
- Throws:
IOException- if can not find any log aggregation file controller
-
getConfiguredLogAggregationFileControllerList
@Private @VisibleForTesting public LinkedList<LogAggregationFileController> getConfiguredLogAggregationFileControllerList()
-