net.rmi
Class ComputeServer

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.ComputeServer
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Computable

public class ComputeServer
extends java.rmi.server.UnicastRemoteObject
implements Computable

See Also:
Serialized Form

Constructor Summary
ComputeServer()
           
 
Method Summary
static java.net.InetAddress getLocalHost()
           
static void main(java.lang.String[] args)
           
 void println(java.io.Serializable o)
           
static void testGetLocalHost()
           
 
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

ComputeServer

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

println

public void println(java.io.Serializable o)
             throws java.rmi.RemoteException
Specified by:
println in interface Computable
Throws:
java.rmi.RemoteException

main

public static void main(java.lang.String[] args)
                 throws java.rmi.RemoteException,
                        java.net.UnknownHostException
Throws:
java.rmi.RemoteException
java.net.UnknownHostException

testGetLocalHost

public static void testGetLocalHost()

getLocalHost

public static java.net.InetAddress getLocalHost()
                                         throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException