public class JMXAdminDistributedSystem extends Object implements com.gemstone.gemfire.admin.AdminDistributedSystem
AdminDistributedSystem that
communicates via JMX.| Modifier and Type | Field and Description |
|---|---|
protected MBeanServerConnection |
mbs
The MBean server used to operate on beans
|
protected ObjectName |
objectName
The name of the JMX Bean we delegate to
|
| Constructor and Description |
|---|
JMXAdminDistributedSystem(com.gemstone.gemfire.admin.DistributedSystemConfig config,
MBeanServerConnection mbs,
JMXConnector conn,
ObjectName agentName)
Creates a new
JMXDistributedSystem with the given
DistributedSystemConfig. |
JMXAdminDistributedSystem(String mcastAddress,
int mcastPort,
String locators,
String bindAddress,
String remoteCommand,
MBeanServerConnection mbs,
JMXConnector conn,
ObjectName agentName)
Creates a new
JXMDistributedSystem with the given
configuration. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlertListener(com.gemstone.gemfire.admin.AlertListener listener) |
void |
addCacheListener(com.gemstone.gemfire.admin.SystemMemberCacheListener listener) |
com.gemstone.gemfire.admin.CacheServer |
addCacheServer() |
com.gemstone.gemfire.admin.CacheVm |
addCacheVm() |
com.gemstone.gemfire.admin.DistributionLocator |
addDistributionLocator() |
void |
addMembershipListener(com.gemstone.gemfire.admin.SystemMembershipListener listener) |
com.gemstone.gemfire.admin.BackupStatus |
backupAllMembers(File targetDir) |
com.gemstone.gemfire.admin.BackupStatus |
backupAllMembers(File targetDir,
File baselineDir) |
protected void |
checkForRmiConnection() |
void |
closeRmiConnection() |
Map<com.gemstone.gemfire.distributed.DistributedMember,Set<com.gemstone.gemfire.cache.persistence.PersistentID>> |
compactAllDiskStores() |
void |
connect() |
void |
disconnect() |
String |
displayMergedLogs() |
com.gemstone.gemfire.admin.AlertLevel |
getAlertLevel() |
String |
getAlertLevelAsString() |
com.gemstone.gemfire.admin.CacheServer[] |
getCacheServers() |
com.gemstone.gemfire.admin.CacheServer[] |
getCacheServers(String durableClientId)
Not implemented yet.
|
com.gemstone.gemfire.admin.CacheVm[] |
getCacheVms() |
com.gemstone.gemfire.admin.DistributedSystemConfig |
getConfig() |
com.gemstone.gemfire.admin.DistributionLocator[] |
getDistributionLocators() |
com.gemstone.gemfire.admin.GemFireHealth |
getGemFireHealth() |
String |
getId() |
String |
getLatestAlert() |
String |
getLocators() |
com.gemstone.gemfire.LogWriter |
getLogWriter() |
String |
getMcastAddress() |
int |
getMcastPort() |
Set<com.gemstone.gemfire.cache.persistence.PersistentID> |
getMissingPersistentMembers() |
String |
getName() |
String |
getRemoteCommand() |
com.gemstone.gemfire.admin.SystemMember[] |
getSystemMemberApplications() |
boolean |
isConnected() |
boolean |
isMcastDiscovery() |
boolean |
isMcastEnabled() |
boolean |
isRunning() |
com.gemstone.gemfire.admin.SystemMember |
lookupSystemMember(com.gemstone.gemfire.distributed.DistributedMember distributedMember) |
ObjectName |
monitorGemFireHealth() |
void |
removeAlertListener(com.gemstone.gemfire.admin.AlertListener listener) |
void |
removeCacheListener(com.gemstone.gemfire.admin.SystemMemberCacheListener listener) |
void |
removeMembershipListener(com.gemstone.gemfire.admin.SystemMembershipListener listener) |
void |
revokePersistentMember(InetAddress host,
String directory) |
void |
revokePersistentMember(UUID diskStoreID) |
void |
setAlertLevel(com.gemstone.gemfire.admin.AlertLevel level) |
void |
setAlertLevelAsString(String level) |
void |
setRemoteCommand(String remoteCommand) |
Set |
shutDownAllMembers() |
Set<com.gemstone.gemfire.distributed.DistributedMember> |
shutDownAllMembers(long timeout) |
void |
start() |
void |
stop() |
String |
toString() |
boolean |
waitToBeConnected(long timeout) |
protected MBeanServerConnection mbs
protected ObjectName objectName
public JMXAdminDistributedSystem(String mcastAddress, int mcastPort, String locators, String bindAddress, String remoteCommand, MBeanServerConnection mbs, JMXConnector conn, ObjectName agentName)
JXMDistributedSystem with the given
configuration.public JMXAdminDistributedSystem(com.gemstone.gemfire.admin.DistributedSystemConfig config,
MBeanServerConnection mbs,
JMXConnector conn,
ObjectName agentName)
JMXDistributedSystem with the given
DistributedSystemConfig.config - The configuration for connecting to the distributed systemmbs - The connection JMX MBean server through which operations
are invoked, etc.agentName - The name of the JMX agent MBeanpublic boolean isMcastDiscovery()
isMcastDiscovery in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic boolean isMcastEnabled()
isMcastEnabled in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic String getId()
getId in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic com.gemstone.gemfire.LogWriter getLogWriter()
getLogWriter in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic String getName()
getName in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic com.gemstone.gemfire.admin.DistributionLocator[] getDistributionLocators()
getDistributionLocators in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic String getRemoteCommand()
getRemoteCommand in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void setRemoteCommand(String remoteCommand)
setRemoteCommand in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic String getAlertLevelAsString()
getAlertLevelAsString in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void setAlertLevelAsString(String level)
setAlertLevelAsString in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic com.gemstone.gemfire.admin.AlertLevel getAlertLevel()
getAlertLevel in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void setAlertLevel(com.gemstone.gemfire.admin.AlertLevel level)
setAlertLevel in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic String getMcastAddress()
getMcastAddress in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic int getMcastPort()
getMcastPort in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic String getLocators()
getLocators in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void start()
start in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void stop()
stop in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic String displayMergedLogs()
displayMergedLogs in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void addAlertListener(com.gemstone.gemfire.admin.AlertListener listener)
addAlertListener in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void removeAlertListener(com.gemstone.gemfire.admin.AlertListener listener)
removeAlertListener in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void addMembershipListener(com.gemstone.gemfire.admin.SystemMembershipListener listener)
addMembershipListener in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void removeMembershipListener(com.gemstone.gemfire.admin.SystemMembershipListener listener)
removeMembershipListener in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void addCacheListener(com.gemstone.gemfire.admin.SystemMemberCacheListener listener)
addCacheListener in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void removeCacheListener(com.gemstone.gemfire.admin.SystemMemberCacheListener listener)
removeCacheListener in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic com.gemstone.gemfire.admin.SystemMember[] getSystemMemberApplications()
throws com.gemstone.gemfire.admin.AdminException
getSystemMemberApplications in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic String getLatestAlert()
getLatestAlert in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic com.gemstone.gemfire.admin.GemFireHealth getGemFireHealth()
getGemFireHealth in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic ObjectName monitorGemFireHealth()
public com.gemstone.gemfire.admin.DistributedSystemConfig getConfig()
getConfig in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic boolean isConnected()
isConnected in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic boolean isRunning()
isRunning in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void connect()
connect in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic void disconnect()
disconnect in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic boolean waitToBeConnected(long timeout)
waitToBeConnected in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic com.gemstone.gemfire.admin.DistributionLocator addDistributionLocator()
addDistributionLocator in interface com.gemstone.gemfire.admin.AdminDistributedSystempublic com.gemstone.gemfire.admin.CacheVm addCacheVm()
throws com.gemstone.gemfire.admin.AdminException
addCacheVm in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic com.gemstone.gemfire.admin.CacheServer addCacheServer()
throws com.gemstone.gemfire.admin.AdminException
addCacheServer in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic com.gemstone.gemfire.admin.CacheVm[] getCacheVms()
throws com.gemstone.gemfire.admin.AdminException
getCacheVms in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic com.gemstone.gemfire.admin.CacheServer[] getCacheServers()
throws com.gemstone.gemfire.admin.AdminException
getCacheServers in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic com.gemstone.gemfire.admin.CacheServer[] getCacheServers(String durableClientId) throws com.gemstone.gemfire.admin.AdminException
getCacheServers in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic com.gemstone.gemfire.admin.SystemMember lookupSystemMember(com.gemstone.gemfire.distributed.DistributedMember distributedMember)
throws com.gemstone.gemfire.admin.AdminException
lookupSystemMember in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic void closeRmiConnection()
protected void checkForRmiConnection()
public Set<com.gemstone.gemfire.cache.persistence.PersistentID> getMissingPersistentMembers() throws com.gemstone.gemfire.admin.AdminException
getMissingPersistentMembers in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic void revokePersistentMember(InetAddress host, String directory) throws com.gemstone.gemfire.admin.AdminException
revokePersistentMember in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic void revokePersistentMember(UUID diskStoreID) throws com.gemstone.gemfire.admin.AdminException
revokePersistentMember in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic Set shutDownAllMembers() throws com.gemstone.gemfire.admin.AdminException
shutDownAllMembers in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic Set<com.gemstone.gemfire.distributed.DistributedMember> shutDownAllMembers(long timeout) throws com.gemstone.gemfire.admin.AdminException
shutDownAllMembers in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic com.gemstone.gemfire.admin.BackupStatus backupAllMembers(File targetDir) throws com.gemstone.gemfire.admin.AdminException
backupAllMembers in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic com.gemstone.gemfire.admin.BackupStatus backupAllMembers(File targetDir, File baselineDir) throws com.gemstone.gemfire.admin.AdminException
backupAllMembers in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionpublic Map<com.gemstone.gemfire.distributed.DistributedMember,Set<com.gemstone.gemfire.cache.persistence.PersistentID>> compactAllDiskStores() throws com.gemstone.gemfire.admin.AdminException
compactAllDiskStores in interface com.gemstone.gemfire.admin.AdminDistributedSystemcom.gemstone.gemfire.admin.AdminExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.