public class ROServerImpl extends Object implements Serializable
A remote object representing a connector server. Remote clients can make
connections using the newClient(Object)
method. This method returns
a Remote Object representing the connection.
User code does not usually reference this class directly. Remote Object
connection servers are usually created with the class
ROConnectorServer
. Remote clients usually create connections either
with JMXConnectorFactory
or by instantiating
ROConnector
.
Constructor and Description |
---|
ROServerImpl()
Empty constructor without arguments.
|
ROServerImpl(MBeanServer mbs,
Map<String,?> env)
Constructs a new
ROServerImpl . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this server.
|
protected void |
closeConnectionById(String connectionId) |
MBeanServer |
getMBeanServer()
Returns the MBean server bound with the connector.
|
protected org.objectweb.proactive.core.remoteobject.RemoteObjectExposer<ROServerImpl> |
getRemoteObjectExposer()
Returns the remote object exposer of this server.
|
ROConnection |
newClient(Object credentials)
Returns a new ROConnection.
|
void |
setMBeanServer(MBeanServer mbs)
Sets the MBean server attached to this connector.
|
public ROServerImpl()
public ROServerImpl(MBeanServer mbs, Map<String,?> env)
ROServerImpl
.mbs
- the MBean serverenv
- the environment containing attributes for the new
ROServerImpl
public ROConnection newClient(Object credentials) throws IOException
IOException
public void setMBeanServer(MBeanServer mbs)
mbs
- The MBean server bound to this connectorpublic MBeanServer getMBeanServer()
public void close() throws IOException
IOException
- if the close operation failedprotected void closeConnectionById(String connectionId) throws IOException
IOException
protected org.objectweb.proactive.core.remoteobject.RemoteObjectExposer<ROServerImpl> getRemoteObjectExposer()