public class RMIAlgorithmMultiThread extends RMIAlgorithm
RMIMethodExecutor
) to remote algorithm to simulate local algorithm.
The connections are used in a round robin manner.Algorithm.AlgorithmConstructor
Modifier and Type | Field and Description |
---|---|
static int |
NUMBER_OF_CONNECTIONS
Default number of connections to the RMI server to be used.
|
protected int |
numberOfConnections
Number of connections to be used by this this algorithm for multi-thread processing.
|
log, maximalConcurrentOperations
Constructor and Description |
---|
RMIAlgorithmMultiThread(java.net.InetAddress host,
int port)
Creates a new instance of RMI algorithm.
|
RMIAlgorithmMultiThread(java.net.InetAddress host,
int port,
int connectionRetries)
Creates a new instance of RMI algorithm.
|
RMIAlgorithmMultiThread(java.net.InetAddress host,
int port,
int connectionRetries,
int numberOfConnections)
Creates a new instance of RMI algorithm.
|
RMIAlgorithmMultiThread(java.lang.String host,
int port)
Creates a new instance of RMI algorithm.
|
RMIAlgorithmMultiThread(java.lang.String host,
int port,
int numberOfConnections)
Creates a new instance of RMI algorithm.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
finalize()
Finalize the algorithm.
|
int |
getNumberOfConnections()
The number connections to the RMI server to be held and used.
|
backgroundExecuteOperation, backgroundExecuteOperationIndependent, backgroundExecuteOperationWithStatistics, connect, disconnect, executeOperation, getAllRunningOperations, getConnectionRetries, getHost, getName, getObjectClass, getOperationStatistics, getPort, getRunningOperationById, getRunningOperationsCount, getSupportedOperations, getSupportedOperations, isConnected, methodExecute, resetOperationStatistics, setupStatsAndExecuteOperation
afterStoreToFile, beforeStoreToFile, createBackgroundExecutionCallable, destroy, execute, executeMethodWithStringArguments, executeUsingNavDir, getAnnotatedConstructors, getAnnotatedConstructorsArray, getConstructorArgumentDescriptions, getConstructorDescription, getConstructorDescriptionSimple, getExecutorParamClasses, getFirstSupportedOperation, getObjectCount, getOperationsThreadPool, getOperationSubClasses, getQueryAnswer, getQueryAnswer, methodExecute, restoreFromFile, restoreFromFile, setExecutedOperationsLogVerbosity, setOperationsThreadPool, statisticsAfterOperation, statisticsBeforeOperation, storeToFile, terminateOperation, terminateOperation, waitBackgroundExecution
public static final int NUMBER_OF_CONNECTIONS
protected int numberOfConnections
public RMIAlgorithmMultiThread(java.net.InetAddress host, int port, int connectionRetries, int numberOfConnections)
host
- the remote algorithm's IP addressport
- the remote algorithm's RMI portconnectionRetries
- the number of reconnection tries if the RMI connection failsnumberOfConnections
- number of actual connections to the RMI server to be held and usedpublic RMIAlgorithmMultiThread(java.net.InetAddress host, int port, int connectionRetries)
host
- the remote algorithm's IP addressport
- the remote algorithm's RMI portconnectionRetries
- the number of reconnection tries if the RMI connection failspublic RMIAlgorithmMultiThread(java.net.InetAddress host, int port)
host
- the remote algorithm's IP addressport
- the remote algorithm's RMI portpublic RMIAlgorithmMultiThread(java.lang.String host, int port, int numberOfConnections) throws java.net.UnknownHostException
host
- the remote algorithm's host nameport
- the remote algorithm's RMI portnumberOfConnections
- number of actual connections to the RMI server to be held and usedjava.net.UnknownHostException
- if the host name cannot be resolved to IP addresspublic RMIAlgorithmMultiThread(java.lang.String host, int port) throws java.net.UnknownHostException
host
- the remote algorithm's host nameport
- the remote algorithm's RMI portjava.net.UnknownHostException
- if the host name cannot be resolved to IP addresspublic void finalize() throws java.lang.Throwable
Algorithm
finalize
in class RMIAlgorithm
java.lang.Throwable
- if there was an error finalizingpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class RMIAlgorithm
java.lang.CloneNotSupportedException
public int getNumberOfConnections()
getNumberOfConnections
in class RMIAlgorithm