edu.harvard.econcs.jopt.solver.server
Class SolverLoadBalancer
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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.3 $ on $Date: 2005/01/04 22:33:21 $
- See Also:
- Serialized Form
Fields inherited from interface edu.harvard.econcs.jopt.solver.server.ISolverServer |
NAME |
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 |
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