Example usage for org.apache.cassandra.service StorageServiceMBean getClusterName

List of usage examples for org.apache.cassandra.service StorageServiceMBean getClusterName

Introduction

In this page you can find the example usage for org.apache.cassandra.service StorageServiceMBean getClusterName.

Prototype

public String getClusterName();

Source Link

Document

Returns the name of the cluster

Usage

From source file:com.spotify.reaper.cassandra.JmxProxy.java

License:Apache License

private JmxProxy(Optional<RepairStatusHandler> handler, String host, JMXServiceURL jmxUrl,
        JMXConnector jmxConnector, StorageServiceMBean ssProxy, ObjectName ssMbeanName,
        MBeanServerConnection mbeanServer, CompactionManagerMBean cmProxy) {
    this.host = host;
    this.jmxUrl = jmxUrl;
    this.jmxConnector = jmxConnector;
    this.ssMbeanName = ssMbeanName;
    this.mbeanServer = mbeanServer;
    this.ssProxy = ssProxy;
    this.repairStatusHandler = handler;
    this.cmProxy = cmProxy;
    this.clusterName = Cluster.toSymbolicName(ssProxy.getClusterName());
}