public class AgentControlSocketListener extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected ChukwaAgent |
agent |
boolean |
ALLOW_REMOTE |
protected int |
portno |
static String |
REMOTE_ACCESS_OPT |
protected ServerSocket |
s |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
AgentControlSocketListener(ChukwaAgent agent)
Initializes listener, but does not bind to socket.
|
Modifier and Type | Method and Description |
---|---|
int |
getPort() |
String |
getStatusLine() |
boolean |
isBound() |
void |
run()
Binds to socket, starts looping listening for commands
|
void |
shutdown()
Close the control socket, and exit.
|
void |
tryToBind() |
activeCount, checkAccess, clone, 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
protected ChukwaAgent agent
protected int portno
protected ServerSocket s
public boolean ALLOW_REMOTE
public static final String REMOTE_ACCESS_OPT
public AgentControlSocketListener(ChukwaAgent agent)
agent
- the agent to controlpublic void run()
public void shutdown()
public boolean isBound()
public void tryToBind() throws IOException
IOException
public int getPort()
public String getStatusLine()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.