public class SolverLoadBalancer extends UnicastRemoteObject implements ISolverServer
Modifier and Type | Field and Description |
---|---|
protected static Log |
log |
ref
NAME
Modifier | Constructor and Description |
---|---|
protected |
SolverLoadBalancer(int port,
Properties props) |
Modifier and Type | Method and Description |
---|---|
static void |
createServer(int port,
Properties props)
Create a new Server
|
protected SolverClient |
getClient(int idx) |
protected int |
getNumClients() |
protected int |
getRand(int range)
returns a value between 0 and range -1 or -1 if range==0
|
IRemoteMIPSolver |
getSolver() |
static void |
main(String[] argv) |
protected void |
removeClient(SolverClient cl) |
protected boolean |
retryDeadDrones()
Try to move the contents of the tryLater list back to the
clients list
|
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
protected static Log log
protected SolverLoadBalancer(int port, Properties props) throws RemoteException
solverClass
- -- what class to use to create new instances
of the solver.RemoteException
public static void createServer(int port, Properties props) throws MIPException
port
- solverClass
- MIPException
protected int getNumClients()
protected SolverClient getClient(int idx)
protected void removeClient(SolverClient cl)
protected boolean retryDeadDrones()
public IRemoteMIPSolver getSolver() throws RemoteException
getSolver
in interface ISolverServer
RemoteException
ISolverServer.getSolver()
protected int getRand(int range)
public static void main(String[] argv) throws IOException
IOException
Copyright © 2017. All rights reserved.