org.apache.hadoop.chukwa.datacollection.agent
Class AdaptorResetThread
java.lang.Object
java.lang.Thread
org.apache.hadoop.chukwa.datacollection.agent.AdaptorResetThread
- All Implemented Interfaces:
- Runnable
public class AdaptorResetThread
- extends Thread
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
TIMEOUT_OPT
public static final String TIMEOUT_OPT
- See Also:
- Constant Field Values
AdaptorResetThread
public AdaptorResetThread(org.apache.hadoop.conf.Configuration conf,
ChukwaAgent a)
resetTimedOutAdaptors
public int resetTimedOutAdaptors(int timeSinceLastCommit)
- Resets all adaptors with outstanding data more than timeSinceLastCommit old.
- Parameters:
timeSinceLastCommit
-
- Returns:
- the number of reset adaptors
reportPending
public void reportPending(List<ChukwaHttpSender.CommitListEntry> delayedCommits)
reportCommits
public void reportCommits(Set<Adaptor> commits)
reportStop
public void reportStop(Adaptor a)
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
getResetCount
public int getResetCount()
Copyright © ${year} The Apache Software Foundation