|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.management.domain.proxy.JMXProxy
public class JMXProxy
Abstract class acting as a JMXConnector client. It is implemented by ServerProxy or ClusterDaemonProxy.
Field Summary | |
---|---|
protected static org.objectweb.util.monolog.api.Logger |
logger
logger for traces. |
Constructor Summary | |
---|---|
JMXProxy(DomainMonitor dm,
String name,
Collection urls)
Constructor. |
Method Summary | |
---|---|
protected boolean |
checkConnection()
Check the established connection to the remote server, or try to establish a connection if the connection object is null. |
boolean |
connect(Collection urls)
Try to connect this Proxy to its Server. |
void |
disconnect()
Disconnect the proxy. |
Object |
getAttribute(ObjectName on,
String attribute)
Get an MBean Attribute on the remote server. |
AttributeList |
getAttributes(ObjectName on,
String[] attributes)
Get a group of MBean Attributes on the remote server. |
MBeanServerConnection |
getConnection()
|
String |
getConnectionUrl()
|
DomainMonitor |
getDm()
|
String |
getDomain()
|
J2EEServerState |
getJ2EEServerState()
Only used by ServerProxy. |
String |
getName()
|
String |
getObjectName()
Return this MBean's name. |
String |
getState()
MBean method returning the state. |
ArrayList |
getUrls()
|
boolean |
isRegistered(ObjectName on)
Check if an ObjectName is registered on the remote server. |
Set |
queryNames(ObjectName on)
|
void |
setAttribute(ObjectName on,
String attribute,
Object value)
Set an MBean Attribute on the remote server. |
void |
setConnection(MBeanServerConnection connection)
Set connection to the managed server's MBeanServer. |
void |
setObjectName(String on)
Set its OBJECT_NAME and register the MBean. |
protected void |
setState(J2EEServerState state)
Change state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
---|
public JMXProxy(DomainMonitor dm, String name, Collection urls)
name
- the proxy nameurls
- the urls that can be used to establish connectiondm
- reference to the domain monitorMethod Detail |
---|
public String getState()
public J2EEServerState getJ2EEServerState()
protected void setState(J2EEServerState state)
state
- new statepublic void disconnect()
public boolean connect(Collection urls)
urls
- the urls that can be used to establish connection
protected boolean checkConnection()
public String getName()
public String getObjectName()
public void setObjectName(String on)
on
- OBJECT_NAMEpublic MBeanServerConnection getConnection()
public String getDomain()
public String getConnectionUrl()
public ArrayList getUrls()
public void setConnection(MBeanServerConnection connection)
connection
- connection to the managed MBeanServer.public DomainMonitor getDm()
public boolean isRegistered(ObjectName on)
on
- the ObjectName to be checked
public Object getAttribute(ObjectName on, String attribute)
on
- the MBean's ObjectNameattribute
- the attribute name
public void setAttribute(ObjectName on, String attribute, Object value)
on
- the MBean's ObjectNameattribute
- the attribute namepublic AttributeList getAttributes(ObjectName on, String[] attributes)
on
- the MBean's ObjectNameattributes
- the attributes names
public Set queryNames(ObjectName on)
on
- the MBean's ObjectName
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |