public class UserLogManager extends Object
TaskTracker.| 构造器和说明 |
|---|
UserLogManager(Configuration conf)
Create the user log manager to manage user logs on
TaskTracker. |
UserLogManager(Configuration conf,
TaskController taskController)
Create the user log manager to manage user logs on
TaskTracker. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addLogEvent(UserLogEvent event)
Add the
UserLogEvent for processing. |
void |
clearOldUserLogs(Configuration conf)
Called during TaskTracker restart/re-init.
|
TaskController |
getTaskController()
Get the taskController for deleting logs.
|
UserLogCleaner |
getUserLogCleaner()
Get
UserLogCleaner. |
protected void |
monitor() |
protected void |
processEvent(UserLogEvent event) |
void |
start()
Starts managing the logs
|
public UserLogManager(Configuration conf, TaskController taskController) throws IOException
TaskTracker.
It should be explicitly started using start() to start functioningconf - The ConfigurationtaskController - The task controller to delete the log filesIOExceptionpublic UserLogManager(Configuration conf) throws IOException
TaskTracker.
This constructor is there mainly for unit tests.conf - The ConfigurationIOExceptionpublic TaskController getTaskController()
public void start()
protected void processEvent(UserLogEvent event) throws IOException
IOExceptionpublic void clearOldUserLogs(Configuration conf) throws IOException
conf - TT's confIOExceptionpublic void addLogEvent(UserLogEvent event)
UserLogEvent for processing.event - public UserLogCleaner getUserLogCleaner()
UserLogCleaner.
This method is called only from unit tests.Copyright © 2009 The Apache Software Foundation