|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jboss.jmx.client.RMIClientConnectorImpl
Implementation of the JMX Connector over the RMI protocol
| Inner Class Summary | |
class |
RMIClientConnectorImpl.Listener
Listener wrapper around the remote RMI Notification Listener |
| Constructor Summary | |
RMIClientConnectorImpl(java.lang.String pServerName)
|
|
| Method Summary | |
void |
addNotificationListener(javax.management.ObjectName pName,
javax.management.NotificationListener pListener,
javax.management.NotificationFilter pFilter,
java.lang.Object pHandback)
Adds the given Notification Listener in a way that the Notification Events are send back to the listener Please asume that the listening is terminated when the instance of these interface goes down. |
void |
addNotificationListener(javax.management.ObjectName pName,
javax.management.ObjectName pListener,
javax.management.NotificationFilter pFilter,
java.lang.Object pHandback)
|
javax.management.ObjectInstance |
createMBean(java.lang.String pClassName,
javax.management.ObjectName pName)
|
javax.management.ObjectInstance |
createMBean(java.lang.String pClassName,
javax.management.ObjectName pName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
Instantiates the given class and registers it on the remote MBeanServer and returns an Object Instance of the MBean. |
javax.management.ObjectInstance |
createMBean(java.lang.String pClassName,
javax.management.ObjectName pName,
javax.management.ObjectName pLoaderName)
|
javax.management.ObjectInstance |
createMBean(java.lang.String pClassName,
javax.management.ObjectName pName,
javax.management.ObjectName pLoaderName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
|
java.io.ObjectInputStream |
deserialize(javax.management.ObjectName pName,
byte[] pData)
|
java.io.ObjectInputStream |
deserialize(java.lang.String pClassName,
byte[] pData)
|
java.io.ObjectInputStream |
deserialize(java.lang.String pClassName,
javax.management.ObjectName pLoaderName,
byte[] pData)
|
java.lang.Object |
getAttribute(javax.management.ObjectName pName,
java.lang.String pAttribute)
|
javax.management.AttributeList |
getAttributes(javax.management.ObjectName pName,
java.lang.String[] pAttributes)
|
java.lang.String |
getDefaultDomain()
|
java.lang.Integer |
getMBeanCount()
|
javax.management.MBeanInfo |
getMBeanInfo(javax.management.ObjectName pName)
|
javax.management.ObjectInstance |
getObjectInstance(javax.management.ObjectName pName)
|
java.lang.String |
getServerDescription()
Delivers the actual server description to which the client is connected to |
java.lang.Object |
instantiate(java.lang.String pClassName)
Instantiate the given class on the remote MBeanServer and returns a Object Handler you can use to register it as a MBean with registerMBean() or as a parameter to createMBean() or instantiate()
method which takes it as a parameter. |
java.lang.Object |
instantiate(java.lang.String pClassName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
Instantiate the given class on the remote MBeanServer and returns a Object Handler you can use to register it as a MBean with registerMBean() |
java.lang.Object |
instantiate(java.lang.String pClassName,
javax.management.ObjectName pLoaderName)
|
java.lang.Object |
instantiate(java.lang.String pClassName,
javax.management.ObjectName pLoaderName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
|
java.lang.Object |
invoke(javax.management.ObjectName pName,
java.lang.String pActionName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
|
boolean |
isAlive()
Indicates if the connection is alive and ready to serve |
boolean |
isInstanceOf(javax.management.ObjectName pName,
java.lang.String pClassName)
|
boolean |
isRegistered(javax.management.ObjectName pName)
|
java.util.Set |
queryMBeans(javax.management.ObjectName pName,
javax.management.QueryExp pQuery)
|
java.util.Set |
queryNames(javax.management.ObjectName pName,
javax.management.QueryExp pQuery)
|
javax.management.ObjectInstance |
registerMBean(java.lang.Object pObject,
javax.management.ObjectName pName)
Register the given Object (already instantiated) as a MBean on the remote MBeanServer |
void |
removeNotificationListener(javax.management.ObjectName pName,
javax.management.NotificationListener pListener)
Remoes the given Notification Listener in a way that all involved instances are removed and the remote listener is removed from the broadcaster. |
void |
removeNotificationListener(javax.management.ObjectName pName,
javax.management.ObjectName pListener)
|
void |
setAttribute(javax.management.ObjectName pName,
javax.management.Attribute pAttribute)
|
javax.management.AttributeList |
setAttributes(javax.management.ObjectName pName,
javax.management.AttributeList pAttributes)
|
void |
start(java.lang.Object pServer)
Initialize the client connector to a given server side JMX Connector |
void |
stop()
Stops the client connector, remove the remote connection and frees the resources. |
void |
unregisterMBean(javax.management.ObjectName pName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RMIClientConnectorImpl(java.lang.String pServerName)
| Method Detail |
public void start(java.lang.Object pServer)
throws java.lang.IllegalArgumentException
JMXConnectorMBeanstart in interface JMXConnectorMBeanorg.jboss.jmx.interfaces.JMXConnectorMBeanpServer - Server indentification (because
I do not know the necessary type
for a general server ident. I
choose Object)java.lang.IllegalArgumentException - If the given server is not valid
or not recognized by the connector
implementationpublic void stop()
JMXConnectorMBeanstop in interface JMXConnectorMBeanpublic boolean isAlive()
JMXConnectorMBeanisAlive in interface JMXConnectorMBeanorg.jboss.jmx.interfaces.JMXConnectorMBeanpublic java.lang.String getServerDescription()
JMXConnectorMBeangetServerDescription in interface JMXConnectorMBeanorg.jboss.jmx.interfaces.JMXConnectorMBean
public java.lang.Object instantiate(java.lang.String pClassName)
throws javax.management.ReflectionException,
javax.management.MBeanException
JMXConnectorregisterMBean() or as a parameter to createMBean() or instantiate()
method which takes it as a parameter.instantiate in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorpClassName - Class name of the class to be loaded
and instantiated
public java.lang.Object instantiate(java.lang.String pClassName,
javax.management.ObjectName pLoaderName)
throws javax.management.ReflectionException,
javax.management.MBeanException,
javax.management.InstanceNotFoundException
instantiate in interface JMXConnector
public java.lang.Object instantiate(java.lang.String pClassName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
throws javax.management.ReflectionException,
javax.management.MBeanException
JMXConnectorregisterMBean()instantiate in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorpClassName - Class name of the class to be loaded
and instantiatedpParams - Array of parameter passed to the creator
of the class. If one is of data type
Object handler it will be replaced on
the server-side by its effective
object.pSignature - Array of Class Names (full qualified)
to find the right parameter. When there
is an ObjectHandler as a parameter type
then it will be replaced on the server-
side by the class name of the effective
object) otherwise it will be kept.
public java.lang.Object instantiate(java.lang.String pClassName,
javax.management.ObjectName pLoaderName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
throws javax.management.ReflectionException,
javax.management.MBeanException,
javax.management.InstanceNotFoundException
instantiate in interface JMXConnector
public javax.management.ObjectInstance createMBean(java.lang.String pClassName,
javax.management.ObjectName pName)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException
createMBean in interface JMXConnector
public javax.management.ObjectInstance createMBean(java.lang.String pClassName,
javax.management.ObjectName pName,
javax.management.ObjectName pLoaderName)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException,
javax.management.InstanceNotFoundException
createMBean in interface JMXConnector
public javax.management.ObjectInstance createMBean(java.lang.String pClassName,
javax.management.ObjectName pName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException
JMXConnectorcreateMBean in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorpClassName - Class name of the class to be loaded
and instantiatedpNameToAssign - Object Name the new MBean should be
assigned topParams - Array of parameter passed to the creator
of the class. If one is of data type
Object handler it will be replaced on
the server-side by its effective
object.pSignature - Array of Class Names (full qualified)
to find the right parameter. When there
is an ObjectHandler as a parameter type
then it will be replaced on the server-
side by the class name of the effective
object) otherwise it will be kept.
public javax.management.ObjectInstance createMBean(java.lang.String pClassName,
javax.management.ObjectName pName,
javax.management.ObjectName pLoaderName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException,
javax.management.InstanceNotFoundException
createMBean in interface JMXConnector
public javax.management.ObjectInstance registerMBean(java.lang.Object pObject,
javax.management.ObjectName pName)
throws javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.NotCompliantMBeanException
JMXConnectorregisterMBean in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorpObjectHandler - Object Handler of th given object
to register as MBeanpNaemToAssign - Object Name to MBean is assigned to
public void unregisterMBean(javax.management.ObjectName pName)
throws javax.management.InstanceNotFoundException,
javax.management.MBeanRegistrationException
unregisterMBean in interface JMXConnector
public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName pName)
throws javax.management.InstanceNotFoundException
getObjectInstance in interface JMXConnector
public java.util.Set queryMBeans(javax.management.ObjectName pName,
javax.management.QueryExp pQuery)
queryMBeans in interface JMXConnector
public java.util.Set queryNames(javax.management.ObjectName pName,
javax.management.QueryExp pQuery)
queryNames in interface JMXConnectorpublic boolean isRegistered(javax.management.ObjectName pName)
isRegistered in interface JMXConnector
public boolean isInstanceOf(javax.management.ObjectName pName,
java.lang.String pClassName)
throws javax.management.InstanceNotFoundException
isInstanceOf in interface JMXConnectorpublic java.lang.Integer getMBeanCount()
getMBeanCount in interface JMXConnector
public java.lang.Object getAttribute(javax.management.ObjectName pName,
java.lang.String pAttribute)
throws javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.InstanceNotFoundException,
javax.management.ReflectionException
getAttribute in interface JMXConnector
public javax.management.AttributeList getAttributes(javax.management.ObjectName pName,
java.lang.String[] pAttributes)
throws javax.management.InstanceNotFoundException,
javax.management.ReflectionException
getAttributes in interface JMXConnector
public void setAttribute(javax.management.ObjectName pName,
javax.management.Attribute pAttribute)
throws javax.management.InstanceNotFoundException,
javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute in interface JMXConnector
public javax.management.AttributeList setAttributes(javax.management.ObjectName pName,
javax.management.AttributeList pAttributes)
throws javax.management.InstanceNotFoundException,
javax.management.ReflectionException
setAttributes in interface JMXConnector
public java.lang.Object invoke(javax.management.ObjectName pName,
java.lang.String pActionName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
throws javax.management.InstanceNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
invoke in interface JMXConnectorpublic java.lang.String getDefaultDomain()
getDefaultDomain in interface JMXConnector
public void addNotificationListener(javax.management.ObjectName pName,
javax.management.NotificationListener pListener,
javax.management.NotificationFilter pFilter,
java.lang.Object pHandback)
throws javax.management.InstanceNotFoundException
JMXConnectoraddNotificationListener in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorpBroadcasterName - Name of the Broadcaster MBean on
the remote sidepListener - Local notification listenerpFilter - In general there are three ways this
could work:
1) A copy of the filter is send to the
server but then the Filter cannot interact
with the client. This is default.
2) Wrapper around the filter therefore
the server sends the filter call to the
client to be performed. This filter must be
a subclass of RemoteNotificationListener.
3) All Notification events are sent to the
client and the client performs the filtering.
This filter must be a subclass of
LocalNotificationListener.pHandback - Object to be send back to the listener. To
make it complete transparent to the client
an Object Handler is sent to the Server and
and when a Notification comes back it will
be looked up and send to the client. Therefore
it must not be serializable.
public void addNotificationListener(javax.management.ObjectName pName,
javax.management.ObjectName pListener,
javax.management.NotificationFilter pFilter,
java.lang.Object pHandback)
throws javax.management.InstanceNotFoundException,
java.lang.UnsupportedOperationException
addNotificationListener in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorjava.lang.UnsupportedOperationException - The MBean related to the given object
cannot be wrapped by the transport
layer implementation and therefore it
makes no sense (no callback could be
instantiated) and therefore this exception
is always thrown
public void removeNotificationListener(javax.management.ObjectName pName,
javax.management.NotificationListener pListener)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException
JMXConnectorremoveNotificationListener in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorpBroadcasterName - Name of the Broadcaster MBean on
the remote sidepListener - Local notification listener
public void removeNotificationListener(javax.management.ObjectName pName,
javax.management.ObjectName pListener)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException,
java.lang.UnsupportedOperationException
removeNotificationListener in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorjava.lang.UnsupportedOperationException - The MBean related to the given object
cannot be wrapped by the transport
layer which prevents the remove of the
the wrapper and therefore it
makes no sense (no callback could be
instantiated) and therefore this exception
is always thrown
public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName pName)
throws javax.management.InstanceNotFoundException,
javax.management.IntrospectionException,
javax.management.ReflectionException
getMBeanInfo in interface JMXConnector
public java.io.ObjectInputStream deserialize(javax.management.ObjectName pName,
byte[] pData)
throws javax.management.InstanceNotFoundException,
javax.management.OperationsException,
java.lang.UnsupportedOperationException
deserialize in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorjava.lang.UnsupportedOperationException - Return value is not serializable and
the operation makes really no sense
on a connector therefore this exception
is always thrown
public java.io.ObjectInputStream deserialize(java.lang.String pClassName,
byte[] pData)
throws javax.management.OperationsException,
javax.management.ReflectionException,
java.lang.UnsupportedOperationException
deserialize in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorjava.lang.UnsupportedOperationException - Return value is not serializable and
the operation makes really no sense
on a connector therefore this exception
is always thrown
public java.io.ObjectInputStream deserialize(java.lang.String pClassName,
javax.management.ObjectName pLoaderName,
byte[] pData)
throws javax.management.InstanceNotFoundException,
javax.management.OperationsException,
javax.management.ReflectionException,
java.lang.UnsupportedOperationException
deserialize in interface JMXConnectororg.jboss.jmx.interfaces.JMXConnectorjava.lang.UnsupportedOperationException - Return value is not serializable and
the operation makes really no sense
on a connector therefore this exception
is always thrown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||