Package gov.usgs.earthquake.distribution
Interface ProductClientMBean
- All Known Implementing Classes:
ProductClient
public interface ProductClientMBean
Used to define JMX monitoring interface.
The init script command should be modified to include the following
arguments:
- -Dcom.sun.management.jmxremote=true
- -Dcom.sun.management.jmxremote.port=11237
- -Dcom.sun.management.jmxremote.ssl=false
- -Dcom.sun.management.jmxremote.authenticate=false
java -jar check_jmx.jar \ -U service:jmx:rmi:///jndi/rmi://localhost:11237/jmxrmi \ -O ProductClient:name=jmx \ -A ListenerQueueStatusWhere the service url is updated for the correct host and port, and the Attribute is one of the "get" methods without the word "get".
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
-
Method Details
-
getListenerQueueStatus
String getListenerQueueStatus()- Returns:
- A string describing the current listener queues.
-
getVersion
String getVersion()- Returns:
- client version
-
getMaxMemory
long getMaxMemory()- Returns:
- maximum amount of memory
-
getFreeMemory
long getFreeMemory()- Returns:
- amount of free memory
-