mx4j.tools.remote
Class AbstractServerInvoker

java.lang.Object
  extended bymx4j.tools.remote.AbstractServerInvoker
All Implemented Interfaces:
JMXConnection
Direct Known Subclasses:
HTTPServerInvoker

public abstract class AbstractServerInvoker
extends java.lang.Object
implements JMXConnection

This class implements partially the JMXConnection interface to forward the calls to an MBeanServerConnection object (hence the name 'invoker'). It does not handle nor unmarshalling of arguments (and all related classloading problems), nor remote notification mechanisms of any sort, which are left to subclasses, which will implement them in a protocol specific way. This class is the server-side counterpart of JMXConnectionMBeanServerConnection

Version:
$Revision: 1.3 $

Constructor Summary
protected AbstractServerInvoker(javax.management.MBeanServerConnection server)
           
 
Method Summary
 void addNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, java.lang.Object filter, java.lang.Object handback, javax.security.auth.Subject delegate)
           
 javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name, javax.management.ObjectName loaderName, java.lang.Object params, java.lang.String[] signature, javax.security.auth.Subject delegate)
           
 javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name, java.lang.Object params, java.lang.String[] signature, javax.security.auth.Subject delegate)
           
 java.lang.Object getAttribute(javax.management.ObjectName name, java.lang.String attribute, javax.security.auth.Subject delegate)
           
 javax.management.AttributeList getAttributes(javax.management.ObjectName name, java.lang.String[] attributes, javax.security.auth.Subject delegate)
           
 java.lang.String getDefaultDomain(javax.security.auth.Subject delegate)
           
 java.lang.String[] getDomains(javax.security.auth.Subject delegate)
           
 java.lang.Integer getMBeanCount(javax.security.auth.Subject delegate)
           
 javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name, javax.security.auth.Subject delegate)
           
 javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName name, javax.security.auth.Subject delegate)
           
 javax.management.MBeanServerConnection getServer()
           
 java.lang.Object invoke(javax.management.ObjectName name, java.lang.String operationName, java.lang.Object params, java.lang.String[] signature, javax.security.auth.Subject delegate)
           
 boolean isInstanceOf(javax.management.ObjectName name, java.lang.String className, javax.security.auth.Subject delegate)
           
 boolean isRegistered(javax.management.ObjectName name, javax.security.auth.Subject delegate)
           
 java.util.Set queryMBeans(javax.management.ObjectName name, java.lang.Object query, javax.security.auth.Subject delegate)
           
 java.util.Set queryNames(javax.management.ObjectName name, java.lang.Object query, javax.security.auth.Subject delegate)
           
 void removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, java.lang.Object filter, java.lang.Object handback, javax.security.auth.Subject delegate)
           
 void removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, javax.security.auth.Subject delegate)
           
 void setAttribute(javax.management.ObjectName name, java.lang.Object attribute, javax.security.auth.Subject delegate)
           
 javax.management.AttributeList setAttributes(javax.management.ObjectName name, java.lang.Object attributes, javax.security.auth.Subject delegate)
           
 void unregisterMBean(javax.management.ObjectName name, javax.security.auth.Subject delegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mx4j.tools.remote.JMXConnection
close
 

Constructor Detail

AbstractServerInvoker

protected AbstractServerInvoker(javax.management.MBeanServerConnection server)
Method Detail

getServer

public javax.management.MBeanServerConnection getServer()

createMBean

public javax.management.ObjectInstance createMBean(java.lang.String className,
                                                   javax.management.ObjectName name,
                                                   java.lang.Object params,
                                                   java.lang.String[] signature,
                                                   javax.security.auth.Subject delegate)
                                            throws javax.management.ReflectionException,
                                                   javax.management.InstanceAlreadyExistsException,
                                                   javax.management.MBeanRegistrationException,
                                                   javax.management.MBeanException,
                                                   javax.management.NotCompliantMBeanException,
                                                   java.io.IOException
Specified by:
createMBean in interface JMXConnection
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,
                                                   javax.security.auth.Subject delegate)
                                            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 JMXConnection
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,
                            javax.security.auth.Subject delegate)
                     throws javax.management.InstanceNotFoundException,
                            javax.management.MBeanRegistrationException,
                            java.io.IOException
Specified by:
unregisterMBean in interface JMXConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
java.io.IOException

getObjectInstance

public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName name,
                                                         javax.security.auth.Subject delegate)
                                                  throws javax.management.InstanceNotFoundException,
                                                         java.io.IOException
Specified by:
getObjectInstance in interface JMXConnection
Throws:
javax.management.InstanceNotFoundException
java.io.IOException

queryMBeans

public java.util.Set queryMBeans(javax.management.ObjectName name,
                                 java.lang.Object query,
                                 javax.security.auth.Subject delegate)
                          throws java.io.IOException
Specified by:
queryMBeans in interface JMXConnection
Throws:
java.io.IOException

queryNames

public java.util.Set queryNames(javax.management.ObjectName name,
                                java.lang.Object query,
                                javax.security.auth.Subject delegate)
                         throws java.io.IOException
Specified by:
queryNames in interface JMXConnection
Throws:
java.io.IOException

isRegistered

public boolean isRegistered(javax.management.ObjectName name,
                            javax.security.auth.Subject delegate)
                     throws java.io.IOException
Specified by:
isRegistered in interface JMXConnection
Throws:
java.io.IOException

getMBeanCount

public java.lang.Integer getMBeanCount(javax.security.auth.Subject delegate)
                                throws java.io.IOException
Specified by:
getMBeanCount in interface JMXConnection
Throws:
java.io.IOException

getAttribute

public java.lang.Object getAttribute(javax.management.ObjectName name,
                                     java.lang.String attribute,
                                     javax.security.auth.Subject delegate)
                              throws javax.management.MBeanException,
                                     javax.management.AttributeNotFoundException,
                                     javax.management.InstanceNotFoundException,
                                     javax.management.ReflectionException,
                                     java.io.IOException
Specified by:
getAttribute in interface JMXConnection
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,
                                                    javax.security.auth.Subject delegate)
                                             throws javax.management.InstanceNotFoundException,
                                                    javax.management.ReflectionException,
                                                    java.io.IOException
Specified by:
getAttributes in interface JMXConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.io.IOException

setAttribute

public void setAttribute(javax.management.ObjectName name,
                         java.lang.Object attribute,
                         javax.security.auth.Subject delegate)
                  throws javax.management.InstanceNotFoundException,
                         javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException,
                         java.io.IOException
Specified by:
setAttribute in interface JMXConnection
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,
                                                    java.lang.Object attributes,
                                                    javax.security.auth.Subject delegate)
                                             throws javax.management.InstanceNotFoundException,
                                                    javax.management.ReflectionException,
                                                    java.io.IOException
Specified by:
setAttributes in interface JMXConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.io.IOException

invoke

public java.lang.Object invoke(javax.management.ObjectName name,
                               java.lang.String operationName,
                               java.lang.Object params,
                               java.lang.String[] signature,
                               javax.security.auth.Subject delegate)
                        throws javax.management.InstanceNotFoundException,
                               javax.management.MBeanException,
                               javax.management.ReflectionException,
                               java.io.IOException
Specified by:
invoke in interface JMXConnection
Throws:
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
java.io.IOException

getDefaultDomain

public java.lang.String getDefaultDomain(javax.security.auth.Subject delegate)
                                  throws java.io.IOException
Specified by:
getDefaultDomain in interface JMXConnection
Throws:
java.io.IOException

getDomains

public java.lang.String[] getDomains(javax.security.auth.Subject delegate)
                              throws java.io.IOException
Specified by:
getDomains in interface JMXConnection
Throws:
java.io.IOException

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name,
                                               javax.security.auth.Subject delegate)
                                        throws javax.management.InstanceNotFoundException,
                                               javax.management.IntrospectionException,
                                               javax.management.ReflectionException,
                                               java.io.IOException
Specified by:
getMBeanInfo in interface JMXConnection
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,
                            javax.security.auth.Subject delegate)
                     throws javax.management.InstanceNotFoundException,
                            java.io.IOException
Specified by:
isInstanceOf in interface JMXConnection
Throws:
javax.management.InstanceNotFoundException
java.io.IOException

addNotificationListener

public void addNotificationListener(javax.management.ObjectName name,
                                    javax.management.ObjectName listener,
                                    java.lang.Object filter,
                                    java.lang.Object handback,
                                    javax.security.auth.Subject delegate)
                             throws javax.management.InstanceNotFoundException,
                                    java.io.IOException
Specified by:
addNotificationListener in interface JMXConnection
Throws:
javax.management.InstanceNotFoundException
java.io.IOException

removeNotificationListener

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

removeNotificationListener

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


Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.