com.caucho.server.admin
Class RemoteMBeanServerConnection

java.lang.Object
  extended by com.caucho.server.admin.RemoteMBeanServerConnection
All Implemented Interfaces:
javax.management.MBeanServerConnection

public class RemoteMBeanServerConnection
extends java.lang.Object
implements javax.management.MBeanServerConnection

Remote administration API


Constructor Summary
RemoteMBeanServerConnection(java.lang.String serverId)
          Creates the MBeanClient.
RemoteMBeanServerConnection(java.lang.String host, int port, java.lang.String user, java.lang.String password)
          Creates the MBeanClient.
 
Method Summary
 void addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void addNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name)
           
 javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name, java.lang.Object[] params, java.lang.String[] signature)
           
 javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name, javax.management.ObjectName loaderName)
           
 javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name, javax.management.ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature)
           
 java.lang.Object getAttribute(javax.management.ObjectName objectName, java.lang.String attrName)
          Gets an attribute.
 javax.management.AttributeList getAttributes(javax.management.ObjectName name, java.lang.String[] attributes)
           
 java.lang.String getDefaultDomain()
           
 java.lang.String[] getDomains()
           
 java.lang.Integer getMBeanCount()
           
 javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName objectName)
          Returns the mbean info
 javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName objectName)
          Returns the object instance
 java.lang.Object invoke(javax.management.ObjectName objectName, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] sig)
           
 boolean isInstanceOf(javax.management.ObjectName name, java.lang.String className)
           
 boolean isRegistered(javax.management.ObjectName objectName)
          Return true if registered.
 java.util.Set queryMBeans(javax.management.ObjectName name, javax.management.QueryExp query)
           
 java.util.Set<javax.management.ObjectName> queryNames(javax.management.ObjectName name, javax.management.QueryExp query)
           
 void removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener)
           
 void removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void setAttribute(javax.management.ObjectName name, javax.management.Attribute attribute)
           
 javax.management.AttributeList setAttributes(javax.management.ObjectName name, javax.management.AttributeList attributes)
           
 java.lang.String toString()
           
 void unregisterMBean(javax.management.ObjectName name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteMBeanServerConnection

public RemoteMBeanServerConnection(java.lang.String serverId)
Creates the MBeanClient.


RemoteMBeanServerConnection

public RemoteMBeanServerConnection(java.lang.String host,
                                   int port,
                                   java.lang.String user,
                                   java.lang.String password)
Creates the MBeanClient.

Method Detail

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName objectName)
                                        throws javax.management.InstanceNotFoundException,
                                               javax.management.IntrospectionException,
                                               javax.management.ReflectionException,
                                               java.io.IOException
Returns the mbean info

Specified by:
getMBeanInfo in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.IntrospectionException
javax.management.ReflectionException
java.io.IOException

isInstanceOf

public boolean isInstanceOf(javax.management.ObjectName name,
                            java.lang.String className)
                     throws javax.management.InstanceNotFoundException,
                            java.io.IOException
Specified by:
isInstanceOf in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
java.io.IOException

getAttribute

public java.lang.Object getAttribute(javax.management.ObjectName objectName,
                                     java.lang.String attrName)
                              throws javax.management.MBeanException,
                                     javax.management.AttributeNotFoundException,
                                     javax.management.InstanceNotFoundException,
                                     javax.management.ReflectionException,
                                     java.io.IOException
Gets an attribute.

Specified by:
getAttribute in interface javax.management.MBeanServerConnection
Throws:
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.io.IOException

getAttributes

public javax.management.AttributeList getAttributes(javax.management.ObjectName name,
                                                    java.lang.String[] attributes)
                                             throws javax.management.InstanceNotFoundException,
                                                    javax.management.ReflectionException,
                                                    java.io.IOException
Specified by:
getAttributes in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.io.IOException

setAttribute

public void setAttribute(javax.management.ObjectName name,
                         javax.management.Attribute attribute)
                  throws javax.management.InstanceNotFoundException,
                         javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException,
                         java.io.IOException
Specified by:
setAttribute in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
java.io.IOException

setAttributes

public javax.management.AttributeList setAttributes(javax.management.ObjectName name,
                                                    javax.management.AttributeList attributes)
                                             throws javax.management.InstanceNotFoundException,
                                                    javax.management.ReflectionException,
                                                    java.io.IOException
Specified by:
setAttributes in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.io.IOException

invoke

public java.lang.Object invoke(javax.management.ObjectName objectName,
                               java.lang.String operationName,
                               java.lang.Object[] params,
                               java.lang.String[] sig)
                        throws javax.management.InstanceNotFoundException,
                               javax.management.MBeanException,
                               javax.management.ReflectionException,
                               java.io.IOException
Specified by:
invoke in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
java.io.IOException

getDefaultDomain

public java.lang.String getDefaultDomain()
                                  throws java.io.IOException
Specified by:
getDefaultDomain in interface javax.management.MBeanServerConnection
Throws:
java.io.IOException

getDomains

public java.lang.String[] getDomains()
                              throws java.io.IOException
Specified by:
getDomains in interface javax.management.MBeanServerConnection
Throws:
java.io.IOException

addNotificationListener

public void addNotificationListener(javax.management.ObjectName name,
                                    javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws javax.management.InstanceNotFoundException,
                                    java.io.IOException
Specified by:
addNotificationListener in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
java.io.IOException

addNotificationListener

public void addNotificationListener(javax.management.ObjectName name,
                                    javax.management.ObjectName listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws javax.management.InstanceNotFoundException,
                                    java.io.IOException
Specified by:
addNotificationListener in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
java.io.IOException

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName name,
                                       javax.management.ObjectName listener)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException,
                                       java.io.IOException
Specified by:
removeNotificationListener in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
java.io.IOException

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName name,
                                       javax.management.ObjectName listener,
                                       javax.management.NotificationFilter filter,
                                       java.lang.Object handback)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException,
                                       java.io.IOException
Specified by:
removeNotificationListener in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
java.io.IOException

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName name,
                                       javax.management.NotificationListener listener)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException,
                                       java.io.IOException
Specified by:
removeNotificationListener in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
java.io.IOException

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName name,
                                       javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       java.lang.Object handback)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException,
                                       java.io.IOException
Specified by:
removeNotificationListener in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
java.io.IOException

createMBean

public javax.management.ObjectInstance createMBean(java.lang.String className,
                                                   javax.management.ObjectName name)
                                            throws javax.management.ReflectionException,
                                                   javax.management.InstanceAlreadyExistsException,
                                                   javax.management.MBeanRegistrationException,
                                                   javax.management.MBeanException,
                                                   javax.management.NotCompliantMBeanException,
                                                   java.io.IOException
Specified by:
createMBean in interface javax.management.MBeanServerConnection
Throws:
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
java.io.IOException

createMBean

public javax.management.ObjectInstance createMBean(java.lang.String className,
                                                   javax.management.ObjectName name,
                                                   javax.management.ObjectName loaderName)
                                            throws javax.management.ReflectionException,
                                                   javax.management.InstanceAlreadyExistsException,
                                                   javax.management.MBeanRegistrationException,
                                                   javax.management.MBeanException,
                                                   javax.management.NotCompliantMBeanException,
                                                   javax.management.InstanceNotFoundException,
                                                   java.io.IOException
Specified by:
createMBean in interface javax.management.MBeanServerConnection
Throws:
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
javax.management.InstanceNotFoundException
java.io.IOException

createMBean

public javax.management.ObjectInstance createMBean(java.lang.String className,
                                                   javax.management.ObjectName name,
                                                   java.lang.Object[] params,
                                                   java.lang.String[] signature)
                                            throws javax.management.ReflectionException,
                                                   javax.management.InstanceAlreadyExistsException,
                                                   javax.management.MBeanRegistrationException,
                                                   javax.management.MBeanException,
                                                   javax.management.NotCompliantMBeanException,
                                                   java.io.IOException
Specified by:
createMBean in interface javax.management.MBeanServerConnection
Throws:
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
java.io.IOException

createMBean

public javax.management.ObjectInstance createMBean(java.lang.String className,
                                                   javax.management.ObjectName name,
                                                   javax.management.ObjectName loaderName,
                                                   java.lang.Object[] params,
                                                   java.lang.String[] signature)
                                            throws javax.management.ReflectionException,
                                                   javax.management.InstanceAlreadyExistsException,
                                                   javax.management.MBeanRegistrationException,
                                                   javax.management.MBeanException,
                                                   javax.management.NotCompliantMBeanException,
                                                   javax.management.InstanceNotFoundException,
                                                   java.io.IOException
Specified by:
createMBean in interface javax.management.MBeanServerConnection
Throws:
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
javax.management.InstanceNotFoundException
java.io.IOException

unregisterMBean

public void unregisterMBean(javax.management.ObjectName name)
                     throws javax.management.InstanceNotFoundException,
                            javax.management.MBeanRegistrationException,
                            java.io.IOException
Specified by:
unregisterMBean in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
java.io.IOException

getObjectInstance

public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName objectName)
                                                  throws javax.management.InstanceNotFoundException,
                                                         java.io.IOException
Returns the object instance

Specified by:
getObjectInstance in interface javax.management.MBeanServerConnection
Throws:
javax.management.InstanceNotFoundException
java.io.IOException

queryMBeans

public java.util.Set queryMBeans(javax.management.ObjectName name,
                                 javax.management.QueryExp query)
                          throws java.io.IOException
Specified by:
queryMBeans in interface javax.management.MBeanServerConnection
Throws:
java.io.IOException

queryNames

public java.util.Set<javax.management.ObjectName> queryNames(javax.management.ObjectName name,
                                                             javax.management.QueryExp query)
                                                      throws java.io.IOException
Specified by:
queryNames in interface javax.management.MBeanServerConnection
Throws:
java.io.IOException

isRegistered

public boolean isRegistered(javax.management.ObjectName objectName)
                     throws java.io.IOException
Return true if registered.

Specified by:
isRegistered in interface javax.management.MBeanServerConnection
Throws:
java.io.IOException

getMBeanCount

public java.lang.Integer getMBeanCount()
                                throws java.io.IOException
Specified by:
getMBeanCount in interface javax.management.MBeanServerConnection
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object