org.scale7.cassandra.pelops
Class ClusterManager

java.lang.Object
  extended by org.scale7.cassandra.pelops.ManagerOperand
      extended by org.scale7.cassandra.pelops.ClusterManager

public class ClusterManager
extends ManagerOperand


Nested Class Summary
 
Nested classes/interfaces inherited from class org.scale7.cassandra.pelops.ManagerOperand
ManagerOperand.IManagerOperation<ReturnType>
 
Constructor Summary
ClusterManager(Cluster cluster)
           
 
Method Summary
 String getCassandraVersion()
          Get the version of the Cassandra software being run by the cluster.
 String getClusterName()
          Get the name of the cluster.
 
Methods inherited from class org.scale7.cassandra.pelops.ManagerOperand
openClient, tryOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterManager

public ClusterManager(Cluster cluster)
Method Detail

getClusterName

public String getClusterName()
                      throws Exception
Get the name of the cluster. Only nodes with the same cluster name communicate using the Gossip P2P protocol.

Returns:
The name of the cluster
Throws:
Exception

getCassandraVersion

public String getCassandraVersion()
                           throws Exception
Get the version of the Cassandra software being run by the cluster.

Returns:
The version of the Cassandra software
Throws:
Exception


Copyright © 2011. All Rights Reserved.