mx4j.remote.rmi

Class ClientInvoker

public class ClientInvoker extends Object implements MBeanServerConnection

An MBeanServerConnection that "converts" the MBeanServerConnection calls to RMIConnection calls, performing wrapping of parameters and/or the needed actions.

Version: $Revision: 1.9 $

See Also: RMIConnectionInvoker

Constructor Summary
ClientInvoker(RMIConnection rmiConnection, RemoteNotificationClientHandler notificationHandler, Subject delegate)
Method Summary
voidaddNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback)
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)
StringgetDefaultDomain()
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, NotificationListener listener)
voidremoveNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback)
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

ClientInvoker

public ClientInvoker(RMIConnection rmiConnection, RemoteNotificationClientHandler notificationHandler, Subject delegate)

Method Detail

addNotificationListener

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

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)

getDefaultDomain

public String getDefaultDomain()

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, NotificationListener listener)

removeNotificationListener

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

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.