public class ROConnector extends Object implements JMXConnector, NotificationListener, Serializable
CREDENTIALS
Constructor and Description |
---|
ROConnector()
Empty constructor without arguments (needed by ProActive).
|
ROConnector(JMXServiceURL url,
Map<String,?> environment)
Constructs an
ROConnector that will connect the RO
connector server with the given address. |
ROConnector(ROServerImpl roServer,
Map<String,?> environment)
Constructs an
ROConnector using the given RO server stub. |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
void |
close() |
void |
connect() |
void |
connect(Map<String,?> env) |
JMXServiceURL |
getAddress()
The address of this connector.
|
String |
getConnectionId() |
MBeanServerConnection |
getMBeanServerConnection() |
MBeanServerConnection |
getMBeanServerConnection(Subject delegationSubject) |
void |
handleNotification(Notification notification,
Object handback) |
void |
removeConnectionNotificationListener(NotificationListener listener) |
void |
removeConnectionNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
String |
toString() |
public ROConnector()
public ROConnector(JMXServiceURL url, Map<String,?> environment)
Constructs an ROConnector
that will connect the RO
connector server with the given address.
url
- the address of the RO connector server.environment
- additional attributes specifying how to make the connection.
This parameter can be null, which is equivalent to an empty Map.IllegalArgumentException
- if url
is null.public ROConnector(ROServerImpl roServer, Map<String,?> environment)
Constructs an ROConnector
using the given RO server stub.
roServer
- a RO stub representing the RO connector server.environment
- additional attributes specifying how to make
the connection. This parameter can be null, which is equivalent to an empty Map.IllegalArgumentException
- if roServer
is null.public void connect() throws IOException
connect
in interface JMXConnector
IOException
JMXConnector.connect()
public void connect(Map<String,?> env) throws IOException
connect
in interface JMXConnector
IOException
JMXConnector.connect(Map)
public MBeanServerConnection getMBeanServerConnection() throws IOException
getMBeanServerConnection
in interface JMXConnector
IOException
JMXConnector.getMBeanServerConnection()
public MBeanServerConnection getMBeanServerConnection(Subject delegationSubject) throws IOException
getMBeanServerConnection
in interface JMXConnector
IOException
JMXConnector.getMBeanServerConnection(javax.security.auth.Subject)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface JMXConnector
IOException
JMXConnector.close()
public void addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
public void removeConnectionNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeConnectionNotificationListener
in interface JMXConnector
ListenerNotFoundException
JMXConnector.removeConnectionNotificationListener(javax.management.NotificationListener)
public void removeConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
public String getConnectionId() throws IOException
getConnectionId
in interface JMXConnector
IOException
JMXConnector.getConnectionId()
public void handleNotification(Notification notification, Object handback)
handleNotification
in interface NotificationListener
NotificationListener.handleNotification(Notification, Object)
public JMXServiceURL getAddress()
The address of this connector.
public String toString()
toString
in class Object
Object.toString()