edu.harvard.econcs.jopt.solver.server
Class SolverLoadBalancer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by edu.harvard.econcs.jopt.solver.server.SolverLoadBalancer
All Implemented Interfaces:
ISolverServer, java.io.Serializable, java.rmi.Remote

public class SolverLoadBalancer
extends java.rmi.server.UnicastRemoteObject
implements ISolverServer

A special kind of SolverServer that knows about a bunch of other Solver servers and can load balance among them.

Since:
Apr 30, 2004
Version:
$Revision: 1.4 $ on $Date: 2005/10/17 18:49:44 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface edu.harvard.econcs.jopt.solver.server.ISolverServer
NAME
 
Method Summary
static void createServer(int port, java.util.Properties props)
          Create a new Server
 IRemoteMIPSolver getSolver()
           
static void main(java.lang.String[] argv)
           
 
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
 

Method Detail

createServer

public static void createServer(int port,
                                java.util.Properties props)
                         throws MIPException
Create a new Server

Parameters:
port -
solverClass -
Throws:
MIPException

getSolver

public IRemoteMIPSolver getSolver()
                           throws java.rmi.RemoteException
Specified by:
getSolver in interface ISolverServer
Throws:
java.rmi.RemoteException
See Also:
ISolverServer.getSolver()

main

public static void main(java.lang.String[] argv)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException