@InterfaceAudience.Private @InterfaceStability.Unstable public class LogAggregationFileControllerFactory extends Object
LogAggregationFileControllerFactory
to get the correct
LogAggregationFileController
for write and read.Constructor and Description |
---|
LogAggregationFileControllerFactory(org.apache.hadoop.conf.Configuration conf)
Construct the LogAggregationFileControllerFactory object.
|
Modifier and Type | Method and Description |
---|---|
LinkedList<LogAggregationFileController> |
getConfiguredLogAggregationFileControllerList() |
LogAggregationFileController |
getFileControllerForRead(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String appOwner)
Get
LogAggregationFileController to read the aggregated logs
for this application. |
LogAggregationFileController |
getFileControllerForWrite()
Get
LogAggregationFileController to write. |
public LogAggregationFileControllerFactory(org.apache.hadoop.conf.Configuration conf)
conf
- the Configurationpublic LogAggregationFileController getFileControllerForWrite()
LogAggregationFileController
to write.public LogAggregationFileController getFileControllerForRead(org.apache.hadoop.yarn.api.records.ApplicationId appId, String appOwner) throws IOException
LogAggregationFileController
to read the aggregated logs
for this application.appId
- the ApplicationIdappOwner
- the Application OwnerIOException
- if can not find any log aggregation file controller@InterfaceAudience.Private @VisibleForTesting public LinkedList<LogAggregationFileController> getConfiguredLogAggregationFileControllerList()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.