|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent
public class ChukwaAgent
The local agent daemon that runs on each machine. This class is designed to be embeddable, for use in testing.
| Nested Class Summary | |
|---|---|
static class |
ChukwaAgent.AlreadyRunningException
|
| Constructor Summary | |
|---|---|
ChukwaAgent()
|
|
ChukwaAgent(org.apache.hadoop.conf.Configuration conf)
|
|
| Method Summary | |
|---|---|
int |
adaptorCount()
|
Map<Long,Adaptor> |
getAdaptorList()
|
static ChukwaAgent |
getAgent()
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
|
Connector |
getConnector()
|
int |
getControllerPort()
|
long |
getOffset(Adaptor a)
Returns the last offset at which a given adaptor was checkpointed |
static void |
main(String[] args)
|
long |
processCommand(String cmd)
|
protected static org.apache.hadoop.conf.Configuration |
readConfig()
|
void |
reportCommit(Adaptor src,
long uuid)
|
boolean |
restoreFromCheckpoint()
Tries to restore from a checkpoint file in checkpointDir. |
void |
shutdown()
|
void |
shutdown(boolean exit)
Triggers agent shutdown. |
long |
stopAdaptor(long number,
boolean gracefully)
Stop the adaptor with given ID number. |
void |
writeCheckpoint()
Called periodically to write checkpoints |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChukwaAgent()
throws ChukwaAgent.AlreadyRunningException
ChukwaAgent.AlreadyRunningException
public ChukwaAgent(org.apache.hadoop.conf.Configuration conf)
throws ChukwaAgent.AlreadyRunningException
ChukwaAgent.AlreadyRunningException| Method Detail |
|---|
public static ChukwaAgent getAgent()
public int getControllerPort()
public static void main(String[] args)
throws AdaptorException
args -
AdaptorExceptionpublic int adaptorCount()
public long processCommand(String cmd)
public boolean restoreFromCheckpoint()
throws IOException
IOException
public void writeCheckpoint()
throws IOException
IOException
public void reportCommit(Adaptor src,
long uuid)
public Map<Long,Adaptor> getAdaptorList()
public long stopAdaptor(long number,
boolean gracefully)
number - the adaptor to stopgracefully - if true, shutdown, if false, hardStop
public org.apache.hadoop.conf.Configuration getConfiguration()
public Connector getConnector()
protected static org.apache.hadoop.conf.Configuration readConfig()
public void shutdown()
public void shutdown(boolean exit)
public long getOffset(Adaptor a)
a - the adaptor in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||