org.jminor.common.server.loadtest
Class RemoteLoadTestServer
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.jminor.common.server.AbstractRemoteServer<RemoteLoadTest>
org.jminor.common.server.loadtest.RemoteLoadTestServer
- All Implemented Interfaces:
- Serializable, Remote, RemoteServer<RemoteLoadTest>
public final class RemoteLoadTestServer
- extends AbstractRemoteServer<RemoteLoadTest>
A server for running load tests remotely.
- See Also:
LoadTestModel
,
Serialized Form
Constructor Summary |
RemoteLoadTestServer(int serverPort,
int loadTestPort,
String serverName)
Instantiates and exports a new LoadTestServer. |
Methods inherited from class org.jminor.common.server.AbstractRemoteServer |
connect, connect, connectionsAvailable, containsConnection, disconnect, getConnection, getConnectionCount, getConnectionLimit, getConnections, getServerName, getServerPort, handleShutdown, isShuttingDown, setConnectionLimit, setLoginProxy, shutdown |
SERVER_NAME
public static final String SERVER_NAME
- See Also:
- Constant Field Values
RemoteLoadTestServer
public RemoteLoadTestServer(int serverPort,
int loadTestPort,
String serverName)
throws RemoteException
- Instantiates and exports a new LoadTestServer.
- Parameters:
serverPort
- the port on which to serve clientsloadTestPort
- the port on which to export the load testsserverName
- the name of this server
- Throws:
RemoteException
- in case of a remote exception
doConnect
protected RemoteLoadTest doConnect(ClientInfo clientInfo)
throws RemoteException
- Establishes the actual client connection.
- Specified by:
doConnect
in class AbstractRemoteServer<RemoteLoadTest>
- Parameters:
clientInfo
- the client info
- Returns:
- a connection servicing the given client
- Throws:
RemoteException
- in case of an exception
doDisconnect
protected void doDisconnect(RemoteLoadTest connection)
throws RemoteException
- Disconnects the given connection.
- Specified by:
doDisconnect
in class AbstractRemoteServer<RemoteLoadTest>
- Parameters:
connection
- the connection to disconnect
- Throws:
RemoteException
- in case of an exception
getServerLoad
public int getServerLoad()
throws RemoteException
- Not implemented!
- Returns:
- 0
- Throws:
UnsupportedOperationException
- consistently
RemoteException
- in case of a remote exception
main
public static void main(String[] arguments)
throws Exception
- Runs a new LoadTestServer server.
- Parameters:
arguments
- no arguments required
- Throws:
Exception
- in case of an exception