com.hazelcast.jmx
Class ManagementService

java.lang.Object
  extended by com.hazelcast.jmx.ManagementService

public class ManagementService
extends Object

The management service instruments Hazelcast with MBeans required to use JMX monitoring tools.

Enabling JMX monitoring can have a heavy impact on a busy Hazelcast cluster, so the classes are not instrumented by default. To enable the JMX agent, set this system property when you start the JVM or Java application: -Dhazelcast.jmx=true for compatibility reason, also -Dcom.sun.management.jmxremote start the agent.

Author:
Marco Ferrante, DISI - University of Genoa

Nested Class Summary
protected static class ManagementService.ScheduledCollector
           
 
Constructor Summary
ManagementService(FactoryImpl instance)
           
 
Method Summary
 HazelcastInstance getInstance()
           
static com.hazelcast.jmx.StatisticsCollector newStatisticsCollector()
          Create a new collector or return null if statistics are not enabled
 void register()
          Register all the MBeans.
static void shutdown()
          Stop the management service
 void unregister()
          Unregister a cluster instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementService

public ManagementService(FactoryImpl instance)
Method Detail

getInstance

public HazelcastInstance getInstance()

register

public void register()
Register all the MBeans.


unregister

public void unregister()
Unregister a cluster instance.


shutdown

public static void shutdown()
Stop the management service


newStatisticsCollector

public static com.hazelcast.jmx.StatisticsCollector newStatisticsCollector()
Create a new collector or return null if statistics are not enabled

Returns:
statisticsCollector


Copyright © 2008-2012 Hazelcast, Inc. All Rights Reserved.