Package org.codehaus.mojo.cassandra
Class CassandraMonitor
- java.lang.Object
-
- java.lang.Thread
-
- org.codehaus.mojo.cassandra.CassandraMonitor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
HOST_PROPERTY_NAME
static String
KEY_PROPERTY_NAME
static String
PORT_PROPERTY_NAME
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description CassandraMonitor(String address, int port, String key)
Creates a CassandraMonitor bound to the specified port on the localhost interface using the supplied key.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Starts theCassandraMonitor
and then delegates toCassandraDaemon
.void
run()
-
Methods inherited from class java.lang.Thread
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
-
-
-
-
Field Detail
-
HOST_PROPERTY_NAME
public static final String HOST_PROPERTY_NAME
- See Also:
- Constant Field Values
-
PORT_PROPERTY_NAME
public static final String PORT_PROPERTY_NAME
- See Also:
- Constant Field Values
-
KEY_PROPERTY_NAME
public static final String KEY_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CassandraMonitor
public CassandraMonitor(String address, int port, String key) throws IOException
Creates a CassandraMonitor bound to the specified port on the localhost interface using the supplied key.- Parameters:
port
- the port to bind to.key
- the key to require.- Throws:
IOException
- if something goes wrong.
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
Starts theCassandraMonitor
and then delegates toCassandraDaemon
.- Parameters:
args
- the command line arguments.- Throws:
IOException
- if something goes wrong.
-
-