|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.management.ManagementService
public abstract class ManagementService
This class is the gateway to GemFire Management service. User of this service has to pass the Cache reference to obtain a handle to this service. A ManagementService instance will execute all the methods in the same VM.
| Constructor Summary | |
|---|---|
ManagementService()
|
|
| Method Summary | ||
|---|---|---|
abstract
|
federate(ObjectName objectName,
Class<T> interfaceClass,
boolean notificationEmitter)
This method is used to mark an MBean for federation. |
|
abstract ObjectName |
getAsyncEventQueueMBeanName(DistributedMember member,
String queueId)
This will return a JMX ObjectName representing given AsyncEventQueueMBean This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract ObjectName |
getCacheServerMBeanName(int serverPort,
DistributedMember member)
This will return a JMX ObjectName representing given port This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract ObjectName |
getDiskStoreMBeanName(DistributedMember member,
String diskName)
This will return a JMX ObjectName representing given DiskStoreMBean This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract ObjectName |
getDistributedLockServiceMBeanName(String lockService)
This will return a JMX ObjectName representing given lock service. |
|
abstract DistributedLockServiceMXBean |
getDistributedLockServiceMXBean(String lockServiceName)
System wide view of a particular lock service. |
|
abstract ObjectName |
getDistributedRegionMBeanName(String regionName)
This will return a JMX ObjectName representing given DistributedRegionMBean This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract DistributedRegionMXBean |
getDistributedRegionMXBean(String regionPath)
DistributedRegionMXBean represents a system wide view of a particular region. |
|
abstract ObjectName |
getDistributedSystemMBeanName()
This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract DistributedSystemMXBean |
getDistributedSystemMXBean()
Returns null if MBean not present. |
|
static ManagementService |
getExistingManagementService(Cache cache)
Returns null if no management service exists |
|
abstract ObjectName |
getGatewayReceiverMBeanName(DistributedMember member)
This will return a JMX ObjectName representing given GatewayReceiverMBean This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract ObjectName |
getGatewaySenderMBeanName(DistributedMember member,
String gatwaySenderId)
This will return a JMX ObjectName representing given GatewaySenderMBean This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract long |
getLastUpdateTime(ObjectName objectName)
This will return the last updated time of the Remote MBean If the ObjectName is of a local MBean it will return 0 value. |
|
abstract AsyncEventQueueMXBean |
getLocalAsyncEventQueueMXBean(String queueId)
|
|
abstract CacheServerMXBean |
getLocalCacheServerMXBean(int serverPort)
Returns a reference to a CacheServerMBean for the given port. |
|
abstract DiskStoreMXBean |
getLocalDiskStoreMBean(String diskStoreName)
Returns LocalDiskStoreMBean corresponding to the DiskStore name Returns null if MBean not present. |
|
abstract GatewayReceiverMXBean |
getLocalGatewayReceiverMXBean()
|
|
abstract GatewaySenderMXBean |
getLocalGatewaySenderMXBean(String senderId)
|
|
abstract LocatorMXBean |
getLocalLocatorMXBean()
|
|
abstract LockServiceMXBean |
getLocalLockServiceMBean(String lockServiceName)
Returns an instance of LocalLockServiceMBean corresponding to the Lock service name. |
|
abstract RegionMXBean |
getLocalRegionMBean(String regionPath)
Returns an instance of RegionMBen corresponding to the Region path. |
|
abstract ObjectName |
getLocatorMBeanName(DistributedMember member)
This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract ObjectName |
getLockServiceMBeanName(DistributedMember member,
String lockServiceName)
This will return a JMX ObjectName representing given LockServiceMBean This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
static ManagementService |
getManagementService(Cache cache)
Returns a ManagementService to use for the specified Cache. |
|
abstract ObjectName |
getManagerMBeanName()
This is just an utility method to construct ObjectName .Successful execution of method does not mean the MBean is registered. |
|
abstract ManagerMXBean |
getManagerMXBean()
Returns null if MBean not present. |
|
abstract
|
getMBeanInstance(ObjectName objectName,
Class<T> interfaceClass)
The method will return the MBean instance represented by the ObjectName. |
|
abstract ObjectName |
getMemberMBeanName(DistributedMember member)
This will return a JMX ObjectName representing MemberMBean of a Member. |
|
abstract MemberMXBean |
getMemberMXBean()
Returns MemberMBean which represents the local DistributedMember. |
|
abstract ObjectName |
getRegionMBeanName(DistributedMember member,
String regionPath)
This will return a JMX ObjectName representing given RegionMBean. |
|
abstract boolean |
isManager()
|
|
abstract Set<ObjectName> |
queryMBeanNames(DistributedMember member)
Returns a Set of MBeans registered in GemFire domain in a particular member. |
|
abstract ObjectName |
registerMBean(Object object,
ObjectName objectName)
This method will register an MBean in GemFire domain. |
|
abstract void |
startManager()
This method will be invoked whenever a member wants to be a managing node. |
|
abstract void |
stopManager()
This method will be invoked whenever a member stops being a managing node. |
|
abstract void |
unregisterMBean(ObjectName objectName)
This method will unregister the MBean from GemFire Domain |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagementService()
| Method Detail |
|---|
public static ManagementService getManagementService(Cache cache)
cache - defines the scope of resources to be managedpublic static ManagementService getExistingManagementService(Cache cache)
public abstract boolean isManager()
public abstract void startManager()
public abstract void stopManager()
public abstract ObjectName registerMBean(Object object,
ObjectName objectName)
ObjectName will be the modified
ObjectName .
object - MBean InstanceobjectName - ObjectName of the MBean
public abstract void unregisterMBean(ObjectName objectName)
objectName - ObjectName of the MBean
public abstract <T> void federate(ObjectName objectName,
Class<T> interfaceClass,
boolean notificationEmitter)
objectName - ObjectName of the MBeaninterfaceClass - MBean interface classnotificationEmitter - is the MBean a notification emitterpublic abstract MemberMXBean getMemberMXBean()
public abstract RegionMXBean getLocalRegionMBean(String regionPath)
regionPath - Region Path of the Local Region instance
public abstract LockServiceMXBean getLocalLockServiceMBean(String lockServiceName)
lockServiceName - Name of the LockService
public abstract DiskStoreMXBean getLocalDiskStoreMBean(String diskStoreName)
diskStoreName - Name of the DiskStore
public abstract CacheServerMXBean getLocalCacheServerMXBean(int serverPort)
serverPort - port of the cache server
public abstract DistributedSystemMXBean getDistributedSystemMXBean()
public abstract ManagerMXBean getManagerMXBean()
public abstract DistributedRegionMXBean getDistributedRegionMXBean(String regionPath)
regionPath - regionPath
public abstract DistributedLockServiceMXBean getDistributedLockServiceMXBean(String lockServiceName)
lockServiceName -
public abstract GatewayReceiverMXBean getLocalGatewayReceiverMXBean()
public abstract GatewaySenderMXBean getLocalGatewaySenderMXBean(String senderId)
senderId - id of the GatewaySender
public abstract AsyncEventQueueMXBean getLocalAsyncEventQueueMXBean(String queueId)
queueId - id of the AsyncEventQueue
public abstract LocatorMXBean getLocalLocatorMXBean()
public abstract Set<ObjectName> queryMBeanNames(DistributedMember member)
member - DistributedMember
ObjectName of the MBean ObjectNames
for a given node
public abstract <T> T getMBeanInstance(ObjectName objectName,
Class<T> interfaceClass)
ObjectName.
It will be an actual reference to the MBean instance rather than an
ObjectInstance.
If the MBean interface does not implement the given interface class a
ClassCastException. will be thrown
objectName - ObjectName of the MBeaninterfaceClass - Interface class to which the MBean has been exposed
public abstract long getLastUpdateTime(ObjectName objectName)
objectName - ObjectName of the MBean
public abstract ObjectName getMemberMBeanName(DistributedMember member)
member - distributed member
public abstract ObjectName getRegionMBeanName(DistributedMember member,
String regionPath)
member - distributed memberregionPath - full Path of the region
public abstract ObjectName getDiskStoreMBeanName(DistributedMember member,
String diskName)
member - distributed memberdiskName - name of the disk store
public abstract ObjectName getCacheServerMBeanName(int serverPort,
DistributedMember member)
serverPort - cache server port which acts as an unique identified for cache
servers in a given VMmember - distributed member
public abstract ObjectName getLockServiceMBeanName(DistributedMember member,
String lockServiceName)
member - distributed memberlockServiceName - lock service name
public abstract ObjectName getGatewayReceiverMBeanName(DistributedMember member)
member - distributed member
public abstract ObjectName getGatewaySenderMBeanName(DistributedMember member,
String gatwaySenderId)
member - distributed membergatwaySenderId - gateway sender id
public abstract ObjectName getAsyncEventQueueMBeanName(DistributedMember member,
String queueId)
member - distributed memberqueueId - Async Event Queue Id
public abstract ObjectName getDistributedRegionMBeanName(String regionName)
regionName - name of the region
public abstract ObjectName getDistributedLockServiceMBeanName(String lockService)
lockService - name of the lock service
public abstract ObjectName getDistributedSystemMBeanName()
public abstract ObjectName getManagerMBeanName()
public abstract ObjectName getLocatorMBeanName(DistributedMember member)
member - distributed member
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||