org.apache.felix.mosgi.jmx.rmiconnector.mx4j.remote.rmi
Class ClientInvoker
java.lang.Object
org.apache.felix.mosgi.jmx.rmiconnector.mx4j.remote.rmi.ClientInvoker
- All Implemented Interfaces:
- MBeanServerConnection
public class ClientInvoker
- extends Object
- implements MBeanServerConnection
An MBeanServerConnection that "converts" the MBeanServerConnection calls to RMIConnection
calls,
performing wrapping of parameters and/or the needed actions.
- Version:
- $Revision: 1.2 $
- Author:
- Simone Bordet, Brian Scully
- See Also:
mx4j.remote.rmi.RMIConnectionInvoker
Method Summary |
void |
addNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
addNotificationListener(ObjectName observed,
ObjectName listener,
NotificationFilter filter,
Object handback)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName,
Object[] args,
String[] parameters)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName,
ObjectName loaderName)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName,
ObjectName loaderName,
Object[] args,
String[] parameters)
|
Object |
getAttribute(ObjectName objectName,
String attribute)
|
AttributeList |
getAttributes(ObjectName objectName,
String[] attributes)
|
String |
getDefaultDomain()
|
String[] |
getDomains()
|
Integer |
getMBeanCount()
|
MBeanInfo |
getMBeanInfo(ObjectName objectName)
|
ObjectInstance |
getObjectInstance(ObjectName objectName)
|
Object |
invoke(ObjectName objectName,
String methodName,
Object[] args,
String[] parameters)
|
boolean |
isInstanceOf(ObjectName objectName,
String className)
|
boolean |
isRegistered(ObjectName objectName)
|
Set |
queryMBeans(ObjectName patternName,
QueryExp filter)
|
Set |
queryNames(ObjectName patternName,
QueryExp filter)
|
void |
removeNotificationListener(ObjectName observed,
NotificationListener listener)
|
void |
removeNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
removeNotificationListener(ObjectName observed,
ObjectName listener)
|
void |
removeNotificationListener(ObjectName observed,
ObjectName listener,
NotificationFilter filter,
Object handback)
|
void |
setAttribute(ObjectName objectName,
Attribute attribute)
|
AttributeList |
setAttributes(ObjectName objectName,
AttributeList attributes)
|
void |
unregisterMBean(ObjectName objectName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientInvoker
public ClientInvoker(RMIConnection rmiConnection,
RemoteNotificationClientHandler notificationHandler,
Subject delegate,
Map environment)
addNotificationListener
public void addNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
Object handback)
throws InstanceNotFoundException,
IOException
- Specified by:
addNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
IOException
removeNotificationListener
public void removeNotificationListener(ObjectName observed,
NotificationListener listener)
throws InstanceNotFoundException,
ListenerNotFoundException,
IOException
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException
removeNotificationListener
public void removeNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
Object handback)
throws InstanceNotFoundException,
ListenerNotFoundException,
IOException
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException
addNotificationListener
public void addNotificationListener(ObjectName observed,
ObjectName listener,
NotificationFilter filter,
Object handback)
throws InstanceNotFoundException,
IOException
- Specified by:
addNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
IOException
removeNotificationListener
public void removeNotificationListener(ObjectName observed,
ObjectName listener)
throws InstanceNotFoundException,
ListenerNotFoundException,
IOException
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException
removeNotificationListener
public void removeNotificationListener(ObjectName observed,
ObjectName listener,
NotificationFilter filter,
Object handback)
throws InstanceNotFoundException,
ListenerNotFoundException,
IOException
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException
getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName objectName)
throws InstanceNotFoundException,
IntrospectionException,
ReflectionException,
IOException
- Specified by:
getMBeanInfo
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
IntrospectionException
ReflectionException
IOException
isInstanceOf
public boolean isInstanceOf(ObjectName objectName,
String className)
throws InstanceNotFoundException,
IOException
- Specified by:
isInstanceOf
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
IOException
getDomains
public String[] getDomains()
throws IOException
- Specified by:
getDomains
in interface MBeanServerConnection
- Throws:
IOException
getDefaultDomain
public String getDefaultDomain()
throws IOException
- Specified by:
getDefaultDomain
in interface MBeanServerConnection
- Throws:
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
IOException
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName,
Object[] args,
String[] parameters)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
IOException
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName,
ObjectName loaderName)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
InstanceNotFoundException,
IOException
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName,
ObjectName loaderName,
Object[] args,
String[] parameters)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
InstanceNotFoundException,
IOException
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException
unregisterMBean
public void unregisterMBean(ObjectName objectName)
throws InstanceNotFoundException,
MBeanRegistrationException,
IOException
- Specified by:
unregisterMBean
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
MBeanRegistrationException
IOException
getAttribute
public Object getAttribute(ObjectName objectName,
String attribute)
throws MBeanException,
AttributeNotFoundException,
InstanceNotFoundException,
ReflectionException,
IOException
- Specified by:
getAttribute
in interface MBeanServerConnection
- Throws:
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
IOException
setAttribute
public void setAttribute(ObjectName objectName,
Attribute attribute)
throws InstanceNotFoundException,
AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException,
IOException
- Specified by:
setAttribute
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
IOException
getAttributes
public AttributeList getAttributes(ObjectName objectName,
String[] attributes)
throws InstanceNotFoundException,
ReflectionException,
IOException
- Specified by:
getAttributes
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ReflectionException
IOException
setAttributes
public AttributeList setAttributes(ObjectName objectName,
AttributeList attributes)
throws InstanceNotFoundException,
ReflectionException,
IOException
- Specified by:
setAttributes
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ReflectionException
IOException
invoke
public Object invoke(ObjectName objectName,
String methodName,
Object[] args,
String[] parameters)
throws InstanceNotFoundException,
MBeanException,
ReflectionException,
IOException
- Specified by:
invoke
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
MBeanException
ReflectionException
IOException
getMBeanCount
public Integer getMBeanCount()
throws IOException
- Specified by:
getMBeanCount
in interface MBeanServerConnection
- Throws:
IOException
isRegistered
public boolean isRegistered(ObjectName objectName)
throws IOException
- Specified by:
isRegistered
in interface MBeanServerConnection
- Throws:
IOException
getObjectInstance
public ObjectInstance getObjectInstance(ObjectName objectName)
throws InstanceNotFoundException,
IOException
- Specified by:
getObjectInstance
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
IOException
queryMBeans
public Set queryMBeans(ObjectName patternName,
QueryExp filter)
throws IOException
- Specified by:
queryMBeans
in interface MBeanServerConnection
- Throws:
IOException
queryNames
public Set queryNames(ObjectName patternName,
QueryExp filter)
throws IOException
- Specified by:
queryNames
in interface MBeanServerConnection
- Throws:
IOException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.