Save This Page
Home » openjdk-7 » javax » management » remote » rmi » [javadoc | source]
javax.management.remote.rmi
public class: RMIJRMPServerImpl [javadoc | source]
java.lang.Object
   javax.management.remote.rmi.RMIServerImpl
      javax.management.remote.rmi.RMIJRMPServerImpl

All Implemented Interfaces:
    RMIServer, Closeable

An RMIServer object that is exported through JRMP and that creates client connections as RMI objects exported through JRMP. User code does not usually reference this class directly.

Constructor:
 public RMIJRMPServerImpl(int port,
    RMIClientSocketFactory csf,
    RMIServerSocketFactory ssf,
    Map env) throws IOException 

    Creates a new RMIServer object that will be exported on the given port using the given socket factories.

    Parameters:
    port - the port on which this object and the RMIConnectionImpl objects it creates will be exported. Can be zero, to indicate any available port.
    csf - the client socket factory for the created RMI objects. Can be null.
    ssf - the server socket factory for the created RMI objects. Can be null.
    env - the environment map. Can be null.
    Throws:
    IOException - if the RMIServer object cannot be created.
    IllegalArgumentException - if port is negative.
    exception: IOException - if the RMIServer object cannot be created.
    exception: IllegalArgumentException - if port is negative.
Method from javax.management.remote.rmi.RMIJRMPServerImpl Summary:
closeClient,   closeServer,   export,   getProtocol,   makeClient,   toStub
Methods from javax.management.remote.rmi.RMIServerImpl:
clientClosed,   close,   closeClient,   closeServer,   doNewClient,   export,   getDefaultClassLoader,   getMBeanServer,   getNotifBuffer,   getProtocol,   getVersion,   makeClient,   newClient,   setDefaultClassLoader,   setMBeanServer,   setRMIConnectorServer,   toStub
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.management.remote.rmi.RMIJRMPServerImpl Detail:
 protected  void closeClient(RMIConnection client) throws IOException 
 protected  void closeServer() throws IOException 

    Called by #close() to close the connector server by unexporting this object. After returning from this method, the connector server must not accept any new connections.

 protected  void export() throws IOException 
 protected String getProtocol() 
 protected RMIConnection makeClient(String connectionId,
    Subject subject) throws IOException 

    Creates a new client connection as an RMI object exported through JRMP. The port and socket factories for the new RMIConnection object are the ones supplied to the RMIJRMPServerImpl constructor.

 public Remote toStub() throws IOException 

    Returns a serializable stub for this RMIServer object.