mx4j.tools.remote.proxy

Class RemoteMBeanProxy

Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationEmitter

public class RemoteMBeanProxy
extends java.lang.Object
implements javax.management.DynamicMBean, javax.management.NotificationEmitter, javax.management.MBeanRegistration

Version:
$Revision: 1.4 $

Constructor Summary

RemoteMBeanProxy(javax.management.ObjectName remoteObjectName, javax.management.MBeanServerConnection connection)
RemoteMBeanProxy(javax.management.ObjectName remoteObjectName, javax.management.remote.JMXConnector connector, Map environment, Subject delegate)
RemoteMBeanProxy(javax.management.ObjectName remoteObjectName, javax.management.remote.JMXServiceURL url, Map environment, Subject delegate)

Method Summary

void
addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
Object
getAttribute(String attribute)
javax.management.AttributeList
getAttributes(String[] attributes)
protected javax.management.remote.JMXConnector
getJMXConnector()
javax.management.MBeanInfo
getMBeanInfo()
protected javax.management.MBeanServerConnection
getMBeanServerConnection()
javax.management.MBeanNotificationInfo[]
getNotificationInfo()
protected javax.management.ObjectName
getRemoteObjectName()
Object
invoke(String method, Object[] arguments, String[] params)
void
postDeregister()
void
postRegister(Boolean registrationDone)
void
preDeregister()
javax.management.ObjectName
preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
void
removeNotificationListener(javax.management.NotificationListener listener)
void
removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
void
setAttribute(javax.management.Attribute attribute)
javax.management.AttributeList
setAttributes(javax.management.AttributeList attributes)

Constructor Details

RemoteMBeanProxy

public RemoteMBeanProxy(javax.management.ObjectName remoteObjectName,
                        javax.management.MBeanServerConnection connection)


RemoteMBeanProxy

public RemoteMBeanProxy(javax.management.ObjectName remoteObjectName,
                        javax.management.remote.JMXConnector connector,
                        Map environment,
                        Subject delegate)
            throws IOException


RemoteMBeanProxy

public RemoteMBeanProxy(javax.management.ObjectName remoteObjectName,
                        javax.management.remote.JMXServiceURL url,
                        Map environment,
                        Subject delegate)
            throws IOException

Method Details

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    Object handback)
            throws IllegalArgumentException
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster


getAttribute

public Object getAttribute(String attribute)
            throws javax.management.AttributeNotFoundException,
                   javax.management.MBeanException,
                   javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean


getAttributes

public javax.management.AttributeList getAttributes(String[] attributes)
Specified by:
getAttributes in interface javax.management.DynamicMBean


getJMXConnector

protected javax.management.remote.JMXConnector getJMXConnector()


getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface javax.management.DynamicMBean


getMBeanServerConnection

protected javax.management.MBeanServerConnection getMBeanServerConnection()


getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster


getRemoteObjectName

protected javax.management.ObjectName getRemoteObjectName()


invoke

public Object invoke(String method,
                     Object[] arguments,
                     String[] params)
            throws javax.management.MBeanException,
                   javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean


postDeregister

public void postDeregister()
Specified by:
postDeregister in interface javax.management.MBeanRegistration


postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface javax.management.MBeanRegistration


preDeregister

public void preDeregister()
            throws Exception
Specified by:
preDeregister in interface javax.management.MBeanRegistration


preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
            throws Exception
Specified by:
preRegister in interface javax.management.MBeanRegistration


removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
            throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster


removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       Object handback)
            throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter


setAttribute

public void setAttribute(javax.management.Attribute attribute)
            throws javax.management.AttributeNotFoundException,
                   javax.management.InvalidAttributeValueException,
                   javax.management.MBeanException,
                   javax.management.ReflectionException
Specified by:
setAttribute in interface javax.management.DynamicMBean


setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
Specified by:
setAttributes in interface javax.management.DynamicMBean


Copyright © 2001-2003 MX4J Team. All Rights Reserved.