| |
|
| java.lang.Object org.objectweb.jonas.management.monitoring.JMXProxy
All known Subclasses: org.objectweb.jonas.management.monitoring.ServerProxy, org.objectweb.jonas.management.monitoring.ClusterDaemonProxy,
JMXProxy | abstract public class JMXProxy (Code) | | Abstract class acting as a JMXConnector client
It is implemented by ServerProxy or ClusterDaemonProxy
author: durieuxp |
FAILED | final public static int FAILED(Code) | | Server which can't be reached after a several number
of retries
|
INITIAL | final public static int INITIAL(Code) | | This is the initial state
|
RUNNING | final public static int RUNNING(Code) | | Server is RUNNING and its reacheable
|
STARTING | final public static int STARTING(Code) | | Server is starting (temporary state)
|
STOPPED | final public static int STOPPED(Code) | | Server is stopped
|
STOPPING | final public static int STOPPING(Code) | | Server is stopping (temporary state)
|
UNKNOWN | final public static int UNKNOWN(Code) | | Server which started without the discovery and can't be reached after
a several number of retries
|
UNREACHABLE | final public static int UNREACHABLE(Code) | | This state is corresponding to the situation when the
JMX connection is broken - maybe temporary.
|
env | protected Map env(Code) | | Environment used to get the connection
|
logger | protected static Logger logger(Code) | | logger for traces.
|
name | protected String name(Code) | | Unique name of the remote object
|
objectName | protected String objectName(Code) | | The OBJECT_NAME of this Proxy MBean
Must be initialized before checking connection.
|
serverOn | protected ObjectName serverOn(Code) | | The server's ObjectName (this corresponds to the J2EEServer MBean registered
in the represented server's MBean server)
|
state | protected int state(Code) | | State of the remote object (as seen from the proxy)
|
JMXProxy | public JMXProxy(DomainMonitor dm, String name, Collection urls)(Code) | | Constructor
Parameters: name - the proxy name Parameters: urls - the urls that can be used to establish connection Parameters: dm - reference to the domain monitor |
checkConnection | protected boolean checkConnection()(Code) | | Check the established connection to the remote object, or try to establish
a connection if the connection object is null.
true if connection is ok. |
connect | public boolean connect(Collection urls)(Code) | | Try to connect this Proxy to its Server
Parameters: urls - the urls that can be used to establish connection True if connected |
disconnect | public void disconnect()(Code) | | Disconnect the proxy
|
getAttribute | public Object getAttribute(ObjectName on, String attribute)(Code) | | Get an MBean Attribute on the remote server
Parameters: on - the MBean's ObjectName Parameters: attribute - the attribute name the attribute value |
getAttributes | public AttributeList getAttributes(ObjectName on, String[] attributes)(Code) | | Get a group of MBean Attributes on the remote server
Parameters: on - the MBean's ObjectName Parameters: attributes - the attributes names a list of Attribute objects containing for each attributeits name and value |
getConnectionUrl | public String getConnectionUrl()(Code) | | the URL of the current connection |
getDomain | public String getDomain()(Code) | | the current domain name |
getName | public String getName()(Code) | | The name of the remote object |
getObjectName | public String getObjectName()(Code) | | Return this MBean's name
The name of the MBean (see OBJECT_NAME in the JSR77) |
getServerState | public int getServerState()(Code) | | Return the int giving the server state
the state value as an int |
getState | public String getState()(Code) | | MBean method returning the state as a String
Return the String form of the server state
the state value |
getUrls | public ArrayList getUrls()(Code) | | the list of urls that can be used for connection |
isRegistered | public boolean isRegistered(ObjectName on)(Code) | | Check if an ObjectName is registered on the remote server
Parameters: on - the ObjectName to be checked true if registered |
queryNames | public Set queryNames(ObjectName on)(Code) | | Parameters: on - the MBean's ObjectName A set containing the ObjectNames for the MBeans selected. |
setObjectName | public void setObjectName(String on)(Code) | | Set its OBJECT_NAME and register the MBean
Parameters: on - OBJECT_NAME |
|
|
|