net.rmi.rmiSynth
Class RMIServer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by net.rmi.rmiSynth.RMIServer
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RMIInterface

public class RMIServer
extends java.rmi.server.UnicastRemoteObject
implements RMIInterface

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.rmi.rmiSynth.RMIInterface
SERVER_NAME
 
Constructor Summary
RMIServer()
           
RMIServer(LocalServer _ls)
           
 
Method Summary
 long getBenchMark()
           
 java.lang.String getHello()
           
 void hello()
           
static void main(java.lang.String[] args)
           
 void multiplyBench(long p0)
           
static void serverFactory(LocalServer ls, java.lang.String serverName)
          Use the serverFactor to start the RMIServer with an arbitrary LocalServer instance.
 
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
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMIServer

public RMIServer(LocalServer _ls)
          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

RMIServer

public RMIServer()
          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getBenchMark

public long getBenchMark()
                  throws java.rmi.RemoteException
Specified by:
getBenchMark in interface RMIInterface
Throws:
java.rmi.RemoteException

hello

public void hello()
           throws java.rmi.RemoteException
Specified by:
hello in interface RMIInterface
Throws:
java.rmi.RemoteException

getHello

public java.lang.String getHello()
                          throws java.rmi.RemoteException
Specified by:
getHello in interface RMIInterface
Throws:
java.rmi.RemoteException

multiplyBench

public void multiplyBench(long p0)
                   throws java.rmi.RemoteException
Specified by:
multiplyBench in interface RMIInterface
Throws:
java.rmi.RemoteException

main

public static void main(java.lang.String[] args)

serverFactory

public static void serverFactory(LocalServer ls,
                                 java.lang.String serverName)
                          throws java.rmi.RemoteException,
                                 java.rmi.AlreadyBoundException
Use the serverFactor to start the RMIServer with an arbitrary LocalServer instance.

Throws:
java.rmi.RemoteException
java.rmi.AlreadyBoundException