mx4j.connector
Interface RemoteMBeanServer
- All Superinterfaces:
- MBeanServerConnection
- public interface RemoteMBeanServer
- extends MBeanServerConnection
A restricted MBeanServer interface to be used by RMI clients.
For now is exactly equal to MBeanServer, but
- instantiate returns the MBean without registering it, has no sense remotely
- deserialize makes no sense used remotely and should be removed
- Version:
- $Revision: 1.4 $
- Author:
- Simone Bordet
Method Summary |
void |
addNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
|
ObjectInstance |
createMBean(java.lang.String className,
ObjectName objectName)
|
ObjectInstance |
createMBean(java.lang.String className,
ObjectName objectName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
ObjectInstance |
createMBean(java.lang.String className,
ObjectName objectName,
ObjectName loaderName)
|
ObjectInstance |
createMBean(java.lang.String className,
ObjectName objectName,
ObjectName loaderName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
java.lang.Object |
getAttribute(ObjectName objectName,
java.lang.String attribute)
|
AttributeList |
getAttributes(ObjectName objectName,
java.lang.String[] attributes)
|
java.lang.String |
getDefaultDomain()
|
java.lang.Integer |
getMBeanCount()
|
MBeanInfo |
getMBeanInfo(ObjectName objectName)
|
ObjectInstance |
getObjectInstance(ObjectName objectName)
|
java.lang.Object |
invoke(ObjectName objectName,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
boolean |
isInstanceOf(ObjectName objectName,
java.lang.String className)
|
boolean |
isRegistered(ObjectName objectname)
|
java.util.Set |
queryMBeans(ObjectName patternName,
QueryExp filter)
|
java.util.Set |
queryNames(ObjectName patternName,
QueryExp filter)
|
void |
removeNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
|
void |
setAttribute(ObjectName objectName,
Attribute attribute)
|
AttributeList |
setAttributes(ObjectName objectName,
AttributeList attributes)
|
void |
unregisterMBean(ObjectName objectName)
|
addNotificationListener
public void addNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
throws InstanceNotFoundException,
java.rmi.RemoteException
- Specified by:
addNotificationListener
in interface MBeanServerConnection
InstanceNotFoundException
java.rmi.RemoteException
removeNotificationListener
public void removeNotificationListener(ObjectName observed,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
throws InstanceNotFoundException,
ListenerNotFoundException,
java.rmi.RemoteException
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
InstanceNotFoundException
ListenerNotFoundException
java.rmi.RemoteException
createMBean
public ObjectInstance createMBean(java.lang.String className,
ObjectName objectName)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
java.rmi.RemoteException
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
java.rmi.RemoteException
createMBean
public ObjectInstance createMBean(java.lang.String className,
ObjectName objectName,
ObjectName loaderName)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
InstanceNotFoundException,
java.rmi.RemoteException
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
java.rmi.RemoteException
createMBean
public ObjectInstance createMBean(java.lang.String className,
ObjectName objectName,
java.lang.Object[] args,
java.lang.String[] parameters)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
java.rmi.RemoteException
- Specified by:
createMBean
in interface MBeanServerConnection
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
java.rmi.RemoteException
createMBean
public ObjectInstance createMBean(java.lang.String className,
ObjectName objectName,
ObjectName loaderName,
java.lang.Object[] args,
java.lang.String[] parameters)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
InstanceNotFoundException,
java.rmi.RemoteException
- Specified by:
createMBean
in interface MBeanServerConnection
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
java.rmi.RemoteException
unregisterMBean
public void unregisterMBean(ObjectName objectName)
throws InstanceNotFoundException,
MBeanRegistrationException,
java.rmi.RemoteException
- Specified by:
unregisterMBean
in interface MBeanServerConnection
InstanceNotFoundException
MBeanRegistrationException
java.rmi.RemoteException
getAttribute
public java.lang.Object getAttribute(ObjectName objectName,
java.lang.String attribute)
throws MBeanException,
AttributeNotFoundException,
InstanceNotFoundException,
ReflectionException,
java.rmi.RemoteException
- Specified by:
getAttribute
in interface MBeanServerConnection
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
java.rmi.RemoteException
setAttribute
public void setAttribute(ObjectName objectName,
Attribute attribute)
throws InstanceNotFoundException,
AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException,
java.rmi.RemoteException
- Specified by:
setAttribute
in interface MBeanServerConnection
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
java.rmi.RemoteException
getAttributes
public AttributeList getAttributes(ObjectName objectName,
java.lang.String[] attributes)
throws InstanceNotFoundException,
ReflectionException,
java.rmi.RemoteException
- Specified by:
getAttributes
in interface MBeanServerConnection
InstanceNotFoundException
ReflectionException
java.rmi.RemoteException
setAttributes
public AttributeList setAttributes(ObjectName objectName,
AttributeList attributes)
throws InstanceNotFoundException,
ReflectionException,
java.rmi.RemoteException
- Specified by:
setAttributes
in interface MBeanServerConnection
InstanceNotFoundException
ReflectionException
java.rmi.RemoteException
invoke
public java.lang.Object invoke(ObjectName objectName,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.String[] parameters)
throws InstanceNotFoundException,
MBeanException,
ReflectionException,
java.rmi.RemoteException
- Specified by:
invoke
in interface MBeanServerConnection
InstanceNotFoundException
MBeanException
ReflectionException
java.rmi.RemoteException
getDefaultDomain
public java.lang.String getDefaultDomain()
throws java.rmi.RemoteException
- Specified by:
getDefaultDomain
in interface MBeanServerConnection
java.rmi.RemoteException
getMBeanCount
public java.lang.Integer getMBeanCount()
throws java.rmi.RemoteException
- Specified by:
getMBeanCount
in interface MBeanServerConnection
java.rmi.RemoteException
isRegistered
public boolean isRegistered(ObjectName objectname)
throws java.rmi.RemoteException
- Specified by:
isRegistered
in interface MBeanServerConnection
java.rmi.RemoteException
getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName objectName)
throws InstanceNotFoundException,
IntrospectionException,
ReflectionException,
java.rmi.RemoteException
- Specified by:
getMBeanInfo
in interface MBeanServerConnection
InstanceNotFoundException
IntrospectionException
ReflectionException
java.rmi.RemoteException
getObjectInstance
public ObjectInstance getObjectInstance(ObjectName objectName)
throws InstanceNotFoundException,
java.rmi.RemoteException
- Specified by:
getObjectInstance
in interface MBeanServerConnection
InstanceNotFoundException
java.rmi.RemoteException
isInstanceOf
public boolean isInstanceOf(ObjectName objectName,
java.lang.String className)
throws InstanceNotFoundException,
java.rmi.RemoteException
- Specified by:
isInstanceOf
in interface MBeanServerConnection
InstanceNotFoundException
java.rmi.RemoteException
queryMBeans
public java.util.Set queryMBeans(ObjectName patternName,
QueryExp filter)
throws java.rmi.RemoteException
- Specified by:
queryMBeans
in interface MBeanServerConnection
java.rmi.RemoteException
queryNames
public java.util.Set queryNames(ObjectName patternName,
QueryExp filter)
throws java.rmi.RemoteException
- Specified by:
queryNames
in interface MBeanServerConnection
java.rmi.RemoteException
Copyright © 2001-2002 MX4J Team. All Rights Reserved.