mx4j.tools.remote

Class JMXConnectionMBeanServerConnection

public abstract class JMXConnectionMBeanServerConnection extends Object implements MBeanServerConnection

Abstract implementation of an adapter that converts MBeanServerConnection calls to JMXConnection calls. It does not handle nor marshalling nor remote notifications, which are left to subclasses. This is the client side counterpart of AbstractServerInvoker

Version: $Revision: 1.3 $

Constructor Summary
protected JMXConnectionMBeanServerConnection(JMXConnection connection, Subject delegate)
Method Summary
voidaddNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
ObjectInstancecreateMBean(String className, ObjectName objectName)
ObjectInstancecreateMBean(String className, ObjectName objectName, Object[] args, String[] parameters)
ObjectInstancecreateMBean(String className, ObjectName objectName, ObjectName loaderName)
ObjectInstancecreateMBean(String className, ObjectName objectName, ObjectName loaderName, Object[] args, String[] parameters)
ObjectgetAttribute(ObjectName objectName, String attribute)
AttributeListgetAttributes(ObjectName objectName, String[] attributes)
protected JMXConnectiongetConnection()
StringgetDefaultDomain()
protected SubjectgetDelegateSubject()
String[]getDomains()
IntegergetMBeanCount()
MBeanInfogetMBeanInfo(ObjectName objectName)
ObjectInstancegetObjectInstance(ObjectName objectName)
Objectinvoke(ObjectName objectName, String methodName, Object[] args, String[] parameters)
booleanisInstanceOf(ObjectName objectName, String className)
booleanisRegistered(ObjectName objectName)
SetqueryMBeans(ObjectName patternName, QueryExp filter)
SetqueryNames(ObjectName patternName, QueryExp filter)
voidremoveNotificationListener(ObjectName observed, ObjectName listener)
voidremoveNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
voidsetAttribute(ObjectName objectName, Attribute attribute)
AttributeListsetAttributes(ObjectName objectName, AttributeList attributes)
voidunregisterMBean(ObjectName objectName)

Constructor Detail

JMXConnectionMBeanServerConnection

protected JMXConnectionMBeanServerConnection(JMXConnection connection, Subject delegate)

Method Detail

addNotificationListener

public void addNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)

createMBean

public ObjectInstance createMBean(String className, ObjectName objectName)

createMBean

public ObjectInstance createMBean(String className, ObjectName objectName, Object[] args, String[] parameters)

createMBean

public ObjectInstance createMBean(String className, ObjectName objectName, ObjectName loaderName)

createMBean

public ObjectInstance createMBean(String className, ObjectName objectName, ObjectName loaderName, Object[] args, String[] parameters)

getAttribute

public Object getAttribute(ObjectName objectName, String attribute)

getAttributes

public AttributeList getAttributes(ObjectName objectName, String[] attributes)

getConnection

protected JMXConnection getConnection()

getDefaultDomain

public String getDefaultDomain()

getDelegateSubject

protected Subject getDelegateSubject()

getDomains

public String[] getDomains()

getMBeanCount

public Integer getMBeanCount()

getMBeanInfo

public MBeanInfo getMBeanInfo(ObjectName objectName)

getObjectInstance

public ObjectInstance getObjectInstance(ObjectName objectName)

invoke

public Object invoke(ObjectName objectName, String methodName, Object[] args, String[] parameters)

isInstanceOf

public boolean isInstanceOf(ObjectName objectName, String className)

isRegistered

public boolean isRegistered(ObjectName objectName)

queryMBeans

public Set queryMBeans(ObjectName patternName, QueryExp filter)

queryNames

public Set queryNames(ObjectName patternName, QueryExp filter)

removeNotificationListener

public void removeNotificationListener(ObjectName observed, ObjectName listener)

removeNotificationListener

public void removeNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)

setAttribute

public void setAttribute(ObjectName objectName, Attribute attribute)

setAttributes

public AttributeList setAttributes(ObjectName objectName, AttributeList attributes)

unregisterMBean

public void unregisterMBean(ObjectName objectName)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.