mx4j.tools.connector.rmi

Class RMIConnector

Implemented Interfaces:
JMXConnector, Serializable
Known Direct Subclasses:
JRMPConnector

public abstract class RMIConnector
extends java.lang.Object
implements JMXConnector, Serializable

Client-side connector for Remote Method Invocation.

This is a base class for RMI/JRMP and RMI/IIOP connectors.

Version:
$Revision: 1.3 $

Method Summary

void
close()
void
connect(String jndiName, Hashtable properties)
Connect to a server-side adaptor using the given JNDI name and JNDI properties.
protected javax.management.NotificationFilter
createRemoteNotificationFilter(javax.management.NotificationFilter listener)
protected javax.management.NotificationListener
createRemoteNotificationListener(javax.management.NotificationListener listener)
String
getRemoteHostAddress()
String
getRemoteHostName()
RemoteMBeanServer
getRemoteMBeanServer()
protected Object
invoke(String key, javax.management.ObjectName objectName, String methodName, String[] signature, Object[] arguments)
protected RemoteAdaptor
narrow(Object object)
void
setInvocationContext(InvocationContext context)

Method Details

close

public void close()
Specified by:
close in interface JMXConnector


connect

public void connect(String jndiName,
                    Hashtable properties)
            throws NamingException
Connect to a server-side adaptor using the given JNDI name and JNDI properties.


createRemoteNotificationFilter

protected javax.management.NotificationFilter createRemoteNotificationFilter(javax.management.NotificationFilter listener)
            throws RemoteException


createRemoteNotificationListener

protected javax.management.NotificationListener createRemoteNotificationListener(javax.management.NotificationListener listener)
            throws RemoteException


getRemoteHostAddress

public String getRemoteHostAddress()
            throws RemoteException


getRemoteHostName

public String getRemoteHostName()
            throws RemoteException


getRemoteMBeanServer

public RemoteMBeanServer getRemoteMBeanServer()
Specified by:
getRemoteMBeanServer in interface JMXConnector


invoke

protected Object invoke(String key,
                        javax.management.ObjectName objectName,
                        String methodName,
                        String[] signature,
                        Object[] arguments)
            throws Exception


narrow

protected RemoteAdaptor narrow(Object object)


setInvocationContext

public void setInvocationContext(InvocationContext context)


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