com.hazelcast.jmx
Class ClusterMBean

java.lang.Object
  extended by com.hazelcast.jmx.AbstractMBean<HazelcastInstance>
      extended by com.hazelcast.jmx.ClusterMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration

public class ClusterMBean
extends AbstractMBean<HazelcastInstance>

The instrumentation MBean for the cluster.

Author:
Marco Ferrante, DISI - University of Genoa

Field Summary
 
Fields inherited from class com.hazelcast.jmx.AbstractMBean
logger, managementService, mbeanServer
 
Constructor Summary
ClusterMBean(ManagementService service, String name)
           
 
Method Summary
 long getClusterTime()
           
 String getConfig()
           
 String getConfigFileURL()
           
 String getGroupName()
           
 String getInstanceName()
           
 int getMemberCount()
           
 List<String> getMembers()
           
 String getName()
           
 ObjectNameSpec getNameSpec()
          Override to provide a JMX name
 int getPort()
           
 ObjectNameSpec getRootName()
           
 boolean isPortAutoIncrement()
           
 boolean isRunning()
           
 void postRegister(Boolean registrationDone)
          From interface MBeanRegistration
 void preDeregister()
          From interface MBeanRegistration
 void restart()
           
 void shutdown()
           
 
Methods inherited from class com.hazelcast.jmx.AbstractMBean
getAttribute, getAttributes, getManagedObject, getMBeanInfo, getObjectName, getParentName, invoke, postDeregister, preRegister, refresh, setAttribute, setAttributes, setParentName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterMBean

public ClusterMBean(ManagementService service,
                    String name)
Method Detail

getNameSpec

public ObjectNameSpec getNameSpec()
Description copied from class: AbstractMBean
Override to provide a JMX name

Overrides:
getNameSpec in class AbstractMBean<HazelcastInstance>

getRootName

public ObjectNameSpec getRootName()

getName

public String getName()

postRegister

public void postRegister(Boolean registrationDone)
Description copied from class: AbstractMBean
From interface MBeanRegistration

Specified by:
postRegister in interface MBeanRegistration
Overrides:
postRegister in class AbstractMBean<HazelcastInstance>

preDeregister

public void preDeregister()
                   throws Exception
Description copied from class: AbstractMBean
From interface MBeanRegistration

Specified by:
preDeregister in interface MBeanRegistration
Overrides:
preDeregister in class AbstractMBean<HazelcastInstance>
Throws:
Exception

getConfig

public String getConfig()

getInstanceName

public String getInstanceName()

getConfigFileURL

public String getConfigFileURL()

getGroupName

public String getGroupName()

getPort

public int getPort()

isPortAutoIncrement

public boolean isPortAutoIncrement()

getClusterTime

public long getClusterTime()

getMemberCount

public int getMemberCount()

getMembers

public List<String> getMembers()

isRunning

public boolean isRunning()

restart

public void restart()

shutdown

public void shutdown()


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.