Class CassandraMonitor

  • All Implemented Interfaces:
    Runnable

    public class CassandraMonitor
    extends Thread
    A Monitor for controlling the Cassandra process.
    Author:
    stephenc
    • 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

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • main

        public static void main​(String[] args)
                         throws IOException
        Starts the CassandraMonitor and then delegates to CassandraDaemon.
        Parameters:
        args - the command line arguments.
        Throws:
        IOException - if something goes wrong.