public class ROConnection extends Object implements MBeanServerConnection, Serializable
Constructor and Description |
---|
ROConnection()
Empty constructor without arguments.
|
ROConnection(MBeanServer mbs,
String connectionId,
ROServerImpl server,
Subject subject,
AccessControlContext acc)
Creates a new
ROConnection that forwards remote calls to the attached MBean server. |
public ROConnection()
public ROConnection(MBeanServer mbs, String connectionId, ROServerImpl server, Subject subject, AccessControlContext acc)
ROConnection
that forwards remote calls to the attached MBean server.mbs
- the MBean server the connection is attached toconnectionId
- the MBean server the connection is attached toserver
- the MBean server the connection is attached tosubject
- the MBean server the connection is attached toacc
- the MBean server the connection is attached topublic ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException
createMBean
in interface MBeanServerConnection
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException
MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName)
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException
createMBean
in interface MBeanServerConnection
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException
MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, java.lang.Object[], java.lang.String[])
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException, IOException
createMBean
in interface MBeanServerConnection
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException
MBeanServerConnection.createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.lang.Object[], java.lang.String[])
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException, IOException
unregisterMBean
in interface MBeanServerConnection
InstanceNotFoundException
MBeanRegistrationException
IOException
MBeanServerConnection.unregisterMBean(javax.management.ObjectName)
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException, IOException
getObjectInstance
in interface MBeanServerConnection
InstanceNotFoundException
IOException
MBeanServerConnection.getObjectInstance(javax.management.ObjectName)
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query) throws IOException
queryMBeans
in interface MBeanServerConnection
IOException
MBeanServerConnection.queryMBeans(javax.management.ObjectName, javax.management.QueryExp)
public Set<ObjectName> queryNames(ObjectName name, QueryExp query) throws IOException
queryNames
in interface MBeanServerConnection
IOException
MBeanServerConnection.queryNames(javax.management.ObjectName, javax.management.QueryExp)
public boolean isRegistered(ObjectName name) throws IOException
isRegistered
in interface MBeanServerConnection
IOException
MBeanServerConnection.isRegistered(javax.management.ObjectName)
public Integer getMBeanCount() throws IOException
getMBeanCount
in interface MBeanServerConnection
IOException
MBeanServerConnection.getMBeanCount()
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, IOException
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, IOException
getAttributes
in interface MBeanServerConnection
InstanceNotFoundException
ReflectionException
IOException
MBeanServerConnection.getAttributes(javax.management.ObjectName, java.lang.String[])
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException
setAttribute
in interface MBeanServerConnection
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
IOException
MBeanServerConnection.setAttribute(javax.management.ObjectName, javax.management.Attribute)
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, IOException
setAttributes
in interface MBeanServerConnection
InstanceNotFoundException
ReflectionException
IOException
MBeanServerConnection.setAttributes(javax.management.ObjectName, javax.management.AttributeList)
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException
public String getDefaultDomain() throws IOException
getDefaultDomain
in interface MBeanServerConnection
IOException
MBeanServerConnection.getDefaultDomain()
public String[] getDomains() throws IOException
getDomains
in interface MBeanServerConnection
IOException
MBeanServerConnection.getDomains()
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException
public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException, IOException
removeNotificationListener
in interface MBeanServerConnection
InstanceNotFoundException
ListenerNotFoundException
IOException
MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.ObjectName, javax.management.NotificationFilter, java.lang.Object)
public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException, IOException
removeNotificationListener
in interface MBeanServerConnection
InstanceNotFoundException
ListenerNotFoundException
IOException
MBeanServerConnection.removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException
getMBeanInfo
in interface MBeanServerConnection
InstanceNotFoundException
IntrospectionException
ReflectionException
IOException
MBeanServerConnection.getMBeanInfo(javax.management.ObjectName)
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException, IOException
isInstanceOf
in interface MBeanServerConnection
InstanceNotFoundException
IOException
MBeanServerConnection.isInstanceOf(javax.management.ObjectName, java.lang.String)
public void close() throws IOException
IOException
public String getConnectionId()