|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjecthealthMonitor.HealthMonitor
public class HealthMonitor
This class is a JMX client application that connects to the GemFire JMX Agent via the RMIConnector defined in JSR 160 to monitor the health of a GemFire distributed system.
| Constructor Summary | |
|---|---|
HealthMonitor()
|
|
| Method Summary | |
|---|---|
void |
disconnect()
Stops the example application and cleans up the connection to the GemFire JMX Agent. |
void |
go()
Adds a shutdown hook and loops until user hits CTRL-C. |
void |
handleNotification(Notification notification,
Object handback)
Receives JMX Notifications by handling gemfire membership notifications, gemfire alert notifications, and notifications that the gemfire health attribute has changed. |
void |
initialize(String host,
int port,
String propsFileName)
Connects to the GemFire JMX Agent and configures the settings for this example application. |
static void |
main(String[] args)
Parses the command line and runs the HealthMonitor
example. |
static String |
makeCompliantMBeanNameProperty(String value)
Replaces illegal characters in string with '-' to ensure that the string can be used for an MBean's ObjectName property value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HealthMonitor()
| Method Detail |
|---|
public void go()
public void disconnect()
public void initialize(String host,
int port,
String propsFileName)
throws Exception
Exception
public void handleNotification(Notification notification,
Object handback)
handleNotification in interface NotificationListenerpublic static String makeCompliantMBeanNameProperty(String value)
ObjectName property value.
public static void main(String[] args)
throws Exception
HealthMonitor
example.
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||