|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBean interface definition for the RemoteServerPool, contains methods
to add, get and remove MBeanServerConnection
s from the pool.
The ObjectName
of this MBean includes the following attributes, in addition to the SIF
attribute of DeviceID
:
This management interface includes the following attributes. These attributes are described in more detail in the accessor methods.
The following operations are included in this management interface. These are described in more detail in the corresponding method documentation.
This MBean emits no Notification
s.
Field Summary | |
---|---|
static java.lang.String |
OBJECT_NAME
|
Method Summary | |
---|---|
void |
addRemoteServer(com.ibm.retail.si.mgmt.MgmtDeviceInfo devInfo,
javax.management.remote.JMXConnector connector,
javax.management.MBeanServerConnection server)
Adds a MBeanServerConnection reference to the pool. |
com.ibm.retail.si.mgmt.MgmtDeviceInfo[] |
getAllDevInfo()
|
com.ibm.retail.si.mgmt.MgmtDeviceInfo |
getDevInfo(java.lang.String jndiName)
Returns the MgmtDeviceInfo object for a remote agent |
com.ibm.retail.si.mgmt.MgmtDeviceInfo[] |
getDevInfoByDevice(java.lang.String deviceId)
Returns an array of currently known MgmtDeviceInfo running the supplied device |
com.ibm.retail.si.mgmt.MgmtDeviceInfo[] |
getDevInfoByType(java.lang.Integer deviceType)
Returns a List of currently known MgmtDeviceInfo that are of the supplied device type |
javax.management.MBeanServerConnection |
getServer(java.lang.String jndiName)
Returns a reference to a MBeanServerConnection that has been stored in the pool, which is associated by the JNDI name of the remote agent |
javax.management.MBeanServerConnection[] |
getServers()
Returns references to all MBeanServerConnections that have been stored in the pool |
javax.management.MBeanServerConnection[] |
getServers(java.lang.Integer deviceType)
Returns references to all MBeanServerConnections that have been stored in the pool that are associated to devices with the supplied deviceType |
java.lang.Integer |
getSize()
|
void |
removeRemoteServer(com.ibm.retail.si.mgmt.MgmtDeviceInfo devInfo)
Removes a MBeanServerConnection reference from the pool, usually in response to an agent being lost or disconnected from the monitoring agent. |
void |
shutdown()
Shuts down the server pool, closing all remote JMXConnectors |
Field Detail |
public static final java.lang.String OBJECT_NAME
Method Detail |
public void addRemoteServer(com.ibm.retail.si.mgmt.MgmtDeviceInfo devInfo, javax.management.remote.JMXConnector connector, javax.management.MBeanServerConnection server) throws java.io.IOException
devInfo
- MgmtDeviceInfo object corresponding to the remote agent.connector
- JMXConnector used to obtain this MBeanServerConnectionserver
- MBeanServerConnection reference
java.io.IOException
- if there is a problem communicating with the remote
reference.public void removeRemoteServer(com.ibm.retail.si.mgmt.MgmtDeviceInfo devInfo) throws java.io.IOException
devInfo
- MgmtDeviceInfo corresponding to the remote agent.
java.io.IOException
- if there is a problem communicating with the remote
reference.public javax.management.MBeanServerConnection getServer(java.lang.String jndiName)
jndiName
- JNDI name associated to a remote agent
public javax.management.MBeanServerConnection[] getServers()
public javax.management.MBeanServerConnection[] getServers(java.lang.Integer deviceType)
deviceType
- Device type associated with the connections
public com.ibm.retail.si.mgmt.MgmtDeviceInfo[] getAllDevInfo()
MgmtDeviceInfo
corresponding to each
stored MBeanServerConnection
.public com.ibm.retail.si.mgmt.MgmtDeviceInfo getDevInfo(java.lang.String jndiName)
jndiName
- JNDI Name of the remote agent connection
public com.ibm.retail.si.mgmt.MgmtDeviceInfo[] getDevInfoByDevice(java.lang.String deviceId)
deviceId
- Device to search for
public com.ibm.retail.si.mgmt.MgmtDeviceInfo[] getDevInfoByType(java.lang.Integer deviceType)
deviceType
- Integer device type to search for
public java.lang.Integer getSize()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |