|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AdminDistributedSystem
Administrative interface for managing an entire GemFire distributed
system. This interface should not be confused with DistributedSystem that represents a connection to a GemFire
distributed system.
AdminDistributedSystemFactory| Method Summary | |
|---|---|
void |
addAlertListener(AlertListener listener)
Registers an AlertListener that will receive all
alerts that are at or above the alert
level. |
void |
addCacheListener(SystemMemberCacheListener listener)
Registers a cache event listener. |
CacheServer |
addCacheServer()
Creates a new cache server that is ready to configure and start. |
DistributionLocator |
addDistributionLocator()
Creates a new DistributionLocator that is ready to
configure and
start. |
void |
addMembershipListener(SystemMembershipListener listener)
Registers a listener that receives callbacks when a member joins or leaves the distributed system. |
void |
connect()
Connects to the distributed system. |
void |
disconnect()
Disconnects from the distributed system. |
String |
displayMergedLogs()
Merges and returns all system logs as a single formatted log. |
AlertLevel |
getAlertLevel()
Returns the lowest level of alerts that should be delivered to the AlertListeners registered on this
AdminDistributedSystem. |
CacheServer[] |
getCacheServers()
Returns all of the dedicated cache server members of the distributed system. |
DistributedSystemConfig |
getConfig()
Returns this system's configuration . |
DistributionLocator[] |
getDistributionLocators()
Returns array of DistributionLocators administered
by this AdminDistributedSystem. |
GemFireHealth |
getGemFireHealth()
Returns an object for monitoring the health of GemFire. |
String |
getId()
Retrieves the unique id for this system. |
String |
getLatestAlert()
Display in readable format the latest Alert in this distributed system. |
Properties |
getLicense()
Retrieves the license information for this installation of GemFire. |
String |
getLocators()
Retrieves comma-delimited list locators to be used if multi-cast port is zero. |
LogWriter |
getLogWriter()
Returns this connection's LogWriter; null if not connected. |
String |
getMcastAddress()
Retrieves the multicast address in use by this system. |
int |
getMcastPort()
Retrieves the multicast port in use by this system. |
String |
getName()
Retrieves display friendly name for this system. |
String |
getRemoteCommand()
Retrieves the remote command and formatting this system should use to access and/or manipulate resources on remote machines. |
SystemMember[] |
getSystemMemberApplications()
Retrieves SystemMember instances for every application that is running and currently connection to this system. |
boolean |
isConnected()
Returns true if this is currently connected to the
system. |
boolean |
isMcastDiscovery()
Returns true if this system is using multicast instead of locators for discovery |
boolean |
isMcastEnabled()
Returns true if this system has enabled the use of multicast for communications |
boolean |
isRunning()
Returns true if any members of this system are currently running. |
SystemMember |
lookupSystemMember(DistributedMember distributedMember)
Returns the administrative SystemMember specified by the DistributedMember. |
void |
removeAlertListener(AlertListener listener)
Unregisters an AlertListener |
void |
removeCacheListener(SystemMemberCacheListener listener)
Unregisters a cache listener. |
void |
removeMembershipListener(SystemMembershipListener listener)
Unregisters a membership listener |
void |
setAlertLevel(AlertLevel level)
Sets the lowest level of alert that should be delivered to the AlertListeners registered on this
AdminDistributedSystem. |
void |
setRemoteCommand(String remoteCommand)
Sets the remote command and formatting this system should use to access and/or manipulate resources on remote machines. |
void |
start()
Starts all managed entities that are not currently running. |
void |
stop()
Stops all managed entities that are currently running. |
boolean |
waitToBeConnected(long timeout)
Wait for up to a given number of milliseconds for the connection to the distributed system to be made. |
| Method Detail |
|---|
String getId()
String getName()
getId().
String getRemoteCommand()
void setRemoteCommand(String remoteCommand)
void setAlertLevel(AlertLevel level)
AlertListeners registered on this
AdminDistributedSystem. The default level is AlertLevel.WARNING.
AlertLevel getAlertLevel()
AlertListeners registered on this
AdminDistributedSystem.
setAlertLevel(com.gemstone.gemfire.admin.AlertLevel)void addAlertListener(AlertListener listener)
AlertListener that will receive all
alerts that are at or above the alert
level.
void removeAlertListener(AlertListener listener)
AlertListener
String getMcastAddress()
int getMcastPort()
String getLocators()
boolean isMcastDiscovery()
boolean isMcastEnabled()
boolean isRunning()
boolean isConnected()
true if this is currently connected to the
system.
void start()
throws AdminException
AdminException - If a problem is encountered while starting the managed
entities.
void stop()
throws AdminException
AdminException - If a problem is encountered while starting the managed
entities.String displayMergedLogs()
Properties getLicense()
DistributionLocator addDistributionLocator()
DistributionLocator that is ready to
configure and
start.
It is presumed that the newly-added locator is used to discover
members of the distributed system. That is, the host/port of the
new locator is appended to the locators
attribute of this AdminDistributedSystem.
DistributionLocator[] getDistributionLocators()
DistributionLocators administered
by this AdminDistributedSystem.
SystemMember[] getSystemMemberApplications()
throws AdminException
AdminExceptionString getLatestAlert()
GemFireHealth getGemFireHealth()
void connect()
AdminDistributedSystem can be "connected" to before
any members of the system have been started or have been seen.
The waitToBeConnected(long) method will wait for the
connection to be made.
isConnected(),
isRunning(),
waitToBeConnected(long)
boolean waitToBeConnected(long timeout)
throws InterruptedException
timeout - The number of milliseconds to wait for the connection to
to be made.
false, if the method times out
InterruptedException - If the thread invoking this method is interrupted while
waiting.
IllegalStateException - If connect() has not yet been called.void disconnect()
DistributedSystemConfig getConfig()
LogWriter getLogWriter()
void addMembershipListener(SystemMembershipListener listener)
void removeMembershipListener(SystemMembershipListener listener)
addMembershipListener(com.gemstone.gemfire.admin.SystemMembershipListener)void addCacheListener(SystemMemberCacheListener listener)
listener - the listener to register.void removeCacheListener(SystemMemberCacheListener listener)
listener - the listener to unregister.
CacheServer addCacheServer()
throws AdminException
AdminException
CacheServer[] getCacheServers()
throws AdminException
AdminException
SystemMember lookupSystemMember(DistributedMember distributedMember)
throws AdminException
DistributedMember.
distributedMember - the distributed member to lookup
AdminException
|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||