de.tu_darmstadt.sp.example
Class RMIServerImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--de.tu_darmstadt.sp.example.RMIServerImpl
- public class RMIServerImpl
- extends java.rmi.server.UnicastRemoteObject
- implements RMIServer
Remote class RMIServerImpl provides services for RMIServer.
- Version:
- $Revision: 1.4 $
- Author:
- Andrei Popovici
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
RMIServerImpl()
Create a server object. |
RMIServerImpl(int port,
java.rmi.server.RMIClientSocketFactory csf,
java.rmi.server.RMIServerSocketFactory ssf)
Create a server object using the specified sockets factory
to comunicate with the clients and listening for calls
on the given port; if port is 0, the server
will listen an an anonymous port. |
Method Summary |
static void |
main(java.lang.String[] args)
Create amd start a server object. |
void |
message(java.lang.String msg)
Display message msg . |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
RMIServerImpl
public RMIServerImpl()
throws java.rmi.RemoteException
- Create a server object.
RMIServerImpl
public RMIServerImpl(int port,
java.rmi.server.RMIClientSocketFactory csf,
java.rmi.server.RMIServerSocketFactory ssf)
throws java.rmi.RemoteException
- Create a server object using the specified sockets factory
to comunicate with the clients and listening for calls
on the given port; if
port
is 0, the server
will listen an an anonymous port.
message
public void message(java.lang.String msg)
throws java.rmi.RemoteException,
java.lang.Exception
- Display message
msg
.
- Specified by:
- message in interface RMIServer
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Create amd start a server object.
The program expects the specification of the ca , cert and key files, either
in system properties or via environment variables
This information is needed to create and istall a
RMISecureSocketFactory
. For the incomming calls, the connection
information (peer,cryptographic information is displayed).
The command expects one argument, server-name
. The sever will be
bound to the given name at the local naming service.
rmiserver server-name