org.apache.hadoop.chukwa.datacollection.agent
Class AdaptorResetThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.hadoop.chukwa.datacollection.agent.AdaptorResetThread
All Implemented Interfaces:
Runnable

public class AdaptorResetThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static String TIMEOUT_OPT
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AdaptorResetThread(org.apache.hadoop.conf.Configuration conf, ChukwaAgent a)
           
 
Method Summary
 int getResetCount()
           
 void reportCommits(Set<Adaptor> commits)
           
 void reportPending(List<ChukwaHttpSender.CommitListEntry> delayedCommits)
           
 void reportStop(Adaptor a)
           
 int resetTimedOutAdaptors(int timeSinceLastCommit)
          Resets all adaptors with outstanding data more than timeSinceLastCommit old.
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TIMEOUT_OPT

public static final String TIMEOUT_OPT
See Also:
Constant Field Values
Constructor Detail

AdaptorResetThread

public AdaptorResetThread(org.apache.hadoop.conf.Configuration conf,
                          ChukwaAgent a)
Method Detail

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