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 ListenerQueueStatus
Where 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getFreeMemory()
java.lang.String
getListenerQueueStatus()
long
getMaxMemory()
java.lang.String
getVersion()
-
-
-
Method Detail
-
getListenerQueueStatus
java.lang.String getListenerQueueStatus()
- Returns:
- A string describing the current listener queues.
-
getVersion
java.lang.String getVersion()
- Returns:
- client version
-
getMaxMemory
long getMaxMemory()
- Returns:
- maximum amount of memory
-
getFreeMemory
long getFreeMemory()
- Returns:
- amount of free memory
-
-