Package org.codehaus.mojo.cassandra
Class CassandraMonitor
java.lang.Object
java.lang.Thread
org.codehaus.mojo.cassandra.CassandraMonitor
- All Implemented Interfaces:
Runnable
A Monitor for controlling the Cassandra process.
- Author:
- stephenc
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionCassandraMonitor(String address, int port, String key) Creates a CassandraMonitor bound to the specified port on the localhost interface using the supplied key. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidStarts theCassandraMonitorand then delegates toCassandraDaemon.voidrun()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 Details
-
HOST_PROPERTY_NAME
- See Also:
-
PORT_PROPERTY_NAME
- See Also:
-
KEY_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
CassandraMonitor
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 Details
-
run
public void run() -
main
Starts theCassandraMonitorand then delegates toCassandraDaemon.- Parameters:
args- the command line arguments.- Throws:
IOException- if something goes wrong.
-