GemFire 5.5

com.gemstone.gemfire.admin
Class GemFireMonitorService

java.lang.Object
  extended by java.lang.Thread
      extended by com.gemstone.gemfire.admin.GemFireMonitorService
All Implemented Interfaces:
Runnable

public class GemFireMonitorService
extends Thread

A singleton class to service monitoring requests from a monitor client.

Planned Supported Commands:

  • SHOW REGIONS: Returns a list of all Regions and some basic RegionAttributes for each one
  • SHOW CONNECTIONS: Returns a list of all TCP connections to clients, peers, and WAN destinations
  • SHOW ROLES: Returns a list of roles--WAN Gateway primary/backup, etc.
  • SHOW QUEUES: Returns a list of open queues and their sizes.

    Since:
    4.3

    Nested Class Summary
     
    Nested classes/interfaces inherited from class java.lang.Thread
    Thread.State, Thread.UncaughtExceptionHandler
     
    Field Summary
     
    Fields inherited from class java.lang.Thread
    MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
     
    Constructor Summary
    GemFireMonitorService(DistributedSystem ds, Cache c, int listenerPort)
               
    GemFireMonitorService(DistributedSystem ds, int listenerPort)
              Constructor.
     
    Method Summary
     void close()
               
     GemFireMemberStatus getStatus()
               
    static void main(String[] args)
              For testing only.
    static List parseArgs(String args)
              Extract command arguments from the full command string
     void run()
               
     void setCache(Cache cache)
               
     
    Methods inherited from class java.lang.Thread
    activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Constructor Detail

    GemFireMonitorService

    public GemFireMonitorService(DistributedSystem ds,
                                 int listenerPort)
    Constructor. This constructor is called by DisctributedSystem/ The cache must be initialized before using in a normal cache member. In a locator, the cache is not initialized.


    GemFireMonitorService

    public GemFireMonitorService(DistributedSystem ds,
                                 Cache c,
                                 int listenerPort)
    Method Detail

    close

    public void close()

    setCache

    public void setCache(Cache cache)

    main

    public static void main(String[] args)
    For testing only.

    Parameters:
    args -

    run

    public void run()
    Specified by:
    run in interface Runnable
    Overrides:
    run in class Thread

    getStatus

    public GemFireMemberStatus getStatus()

    parseArgs

    public static List parseArgs(String args)
    Extract command arguments from the full command string

    Parameters:
    args -

    GemFire 5.5

    Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.