|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager
public class UserLogManager
This manages user logs on the TaskTracker.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserLogManager(Configuration conf,
TaskController taskController)
throws IOException
TaskTracker.
It should be explicitly started using start() to start functioning
conf - The ConfigurationtaskController - The task controller to delete the log files
IOException
public UserLogManager(Configuration conf)
throws IOException
TaskTracker.
This constructor is there mainly for unit tests.
conf - The Configuration
IOException| Method Detail |
|---|
public TaskController getTaskController()
public void start()
protected void monitor()
throws Exception
Exception
protected void processEvent(UserLogEvent event)
throws IOException
IOException
public void clearOldUserLogs(Configuration conf)
throws IOException
conf - TT's conf
IOExceptionpublic void addLogEvent(UserLogEvent event)
UserLogEvent for processing.
event - public UserLogCleaner getUserLogCleaner()
UserLogCleaner.
This method is called only from unit tests.
UserLogCleaner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||