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
Then this can be accessed on the command line using the Syabru nagios jmx plugin: http://snippets.syabru.ch/nagios-jmx-plugin/
 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 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