public class RemoteServerObject extends UnicastRemoteObject
UnicastRemoteObject to get the port and socket factories.ref| Constructor and Description |
|---|
RemoteServerObject()
Creates and exports a new UnicastRemoteObject object using an anonymous
port.
|
RemoteServerObject(int port)
Creates and exports a new UnicastRemoteObject object using the particular
supplied port.
|
RemoteServerObject(int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Creates and exports a new UnicastRemoteObject object using the particular
supplied port and socket factories.
|
| Modifier and Type | Method and Description |
|---|---|
RMIClientSocketFactory |
getRMICsf()
Gets the client socket factory.
|
int |
getRMIPort()
Gets the port.
|
RMIServerSocketFactory |
getRMISsf()
Gets the server socket factory.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic RemoteServerObject()
throws RemoteException
RemoteException - if failed to export objectpublic RemoteServerObject(int port)
throws RemoteException
port - the port number on which the remote object receives calls (if
port is zero, an anonymous port is chosen)RemoteException - if failed to export objectpublic RemoteServerObject(int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
throws RemoteException
port - the port number on which the remote object receives calls (if
port is zero, an anonymous port is chosen)csf - the client-side socket factory for making calls to the remote
objectssf - the server-side socket factory for receiving remote callsRemoteException - if failed to export objectpublic int getRMIPort()
public RMIClientSocketFactory getRMICsf()
public RMIServerSocketFactory getRMISsf()
Copyright © 2016 Krake Softwaretechnik. All rights reserved.