RMIAlgorithm
would not work
exactly in the same way as the original one@Deprecated public class RMIAlgorithmOriginal extends Algorithm implements java.lang.Cloneable
AlgorithmRMIServer
,
Serialized FormAlgorithm.AlgorithmConstructor
log, maximalConcurrentOperations
Constructor and Description |
---|
RMIAlgorithmOriginal(java.net.InetAddress host,
int port)
Deprecated.
Creates a new instance of RMI algorithm.
|
RMIAlgorithmOriginal(java.net.InetAddress host,
int port,
int connectionRetries)
Deprecated.
Creates a new instance of RMI algorithm.
|
RMIAlgorithmOriginal(java.lang.String host,
int port)
Deprecated.
Creates a new instance of RMI algorithm.
|
RMIAlgorithmOriginal(java.lang.String host,
int port,
int connectionRetries)
Deprecated.
Creates a new instance of RMI algorithm.
|
Modifier and Type | Method and Description |
---|---|
<T extends AbstractOperation> |
backgroundExecuteOperation(T operation)
Deprecated.
Execute algorithm operation on background.
|
void |
backgroundExecuteOperationIndependent(AbstractOperation operation)
Deprecated.
Execute algorithm operation on background independently, i.e. without the
possibility to wait for its finish.
|
<T extends AbstractOperation> |
backgroundExecuteOperationWithStatistics(T operation)
Deprecated.
Execute algorithm operation on background.
|
java.lang.Object |
clone()
Deprecated.
|
void |
connect()
Deprecated.
Connects this algorithm to the RMI service.
|
void |
disconnect()
Deprecated.
Disconnects this algorithm from the RMI service.
|
<T extends AbstractOperation> |
executeOperation(T operation)
Deprecated.
Execute operation on this algorithm.
|
void |
finalize()
Deprecated.
Finalize the algorithm.
|
java.util.Collection<AbstractOperation> |
getAllRunningOperations()
Deprecated.
Returns all operations currently executed by this algorithm.
|
java.net.InetAddress |
getHost()
Deprecated.
Returns the remote algorithm's IP address.
|
java.lang.String |
getName()
Deprecated.
Returns the name of this algorithm
|
java.lang.Class<? extends LocalAbstractObject> |
getObjectClass()
Deprecated.
Returns the class of objects indexed by this algorithm.
|
OperationStatistics |
getOperationStatistics()
Deprecated.
Returns the statistics of the executed operations.
|
int |
getPort()
Deprecated.
Returns the remote algorithm's RMI port.
|
AbstractOperation |
getRunningOperationById(java.util.UUID operationId)
Deprecated.
Returns the currently executed operation with the given identifier.
|
int |
getRunningOperationsCount()
Deprecated.
Returns the number of currently evaluated operations.
|
java.util.List<java.lang.Class<? extends AbstractOperation>> |
getSupportedOperations()
Deprecated.
Returns the list of operations this particular algorithm supports.
|
<T extends AbstractOperation> |
getSupportedOperations(java.lang.Class<? extends T> subclassToSearch)
Deprecated.
Returns the list of operations this particular algorithm supports.
|
boolean |
isConnected()
Deprecated.
Returns true if the algorithm is currently connected.
|
void |
resetOperationStatistics()
Deprecated.
Resets all the statistics of the executed operations gathered so far.
|
<T extends AbstractOperation> |
setupStatsAndExecuteOperation(T operation,
java.lang.String operationStatsRegexp)
Deprecated.
Reset
operation statistics ,
bind the operation statistics according to the given regular expression,
and execute operation on this algorithm. |
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 RMIAlgorithmOriginal(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 RMIAlgorithmOriginal(java.net.InetAddress host, int port)
host
- the remote algorithm's IP addressport
- the remote algorithm's RMI portpublic RMIAlgorithmOriginal(java.lang.String host, int port, int connectionRetries) throws java.net.UnknownHostException
host
- the remote algorithm's host nameport
- the remote algorithm's RMI portconnectionRetries
- the number of reconnection tries if the RMI connection failsjava.net.UnknownHostException
- if the host name cannot be resolved to IP addresspublic RMIAlgorithmOriginal(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
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.net.InetAddress getHost()
public int getPort()
public boolean isConnected()
public void connect() throws java.io.IOException
java.io.IOException
- if there was a problem connectingpublic void disconnect()
public java.lang.String getName()
Algorithm
public java.lang.Class<? extends LocalAbstractObject> getObjectClass()
Algorithm
LocalAbstractObject
class.getObjectClass
in class Algorithm
public int getRunningOperationsCount()
Algorithm
getRunningOperationsCount
in class Algorithm
public AbstractOperation getRunningOperationById(java.util.UUID operationId)
Algorithm
getRunningOperationById
in class Algorithm
operationId
- the identifier of the operation to getpublic java.util.Collection<AbstractOperation> getAllRunningOperations()
Algorithm
getAllRunningOperations
in class Algorithm
public OperationStatistics getOperationStatistics()
Algorithm
Algorithm.resetOperationStatistics()
, the cumulative statistics
for all operations run in this thread are returned.getOperationStatistics
in class Algorithm
public void resetOperationStatistics()
Algorithm
resetOperationStatistics
in class Algorithm
public java.util.List<java.lang.Class<? extends AbstractOperation>> getSupportedOperations()
Algorithm
getSupportedOperations
in class Algorithm
public <T extends AbstractOperation> java.util.List<java.lang.Class<? extends T>> getSupportedOperations(java.lang.Class<? extends T> subclassToSearch)
Algorithm
getSupportedOperations
in class Algorithm
T
- type of the returned operationssubclassToSearch
- ancestor class of the returned operations.public <T extends AbstractOperation> T executeOperation(T operation) throws AlgorithmMethodException, java.lang.NoSuchMethodException
Algorithm
executeOperation
in class Algorithm
T
- the type of executed operationoperation
- the operation to execute on this algorithmAlgorithmMethodException
- if the execution has thrown an exceptionjava.lang.NoSuchMethodException
- if the operation is unsupported (there is no method for the operation)public <T extends AbstractOperation> T setupStatsAndExecuteOperation(T operation, java.lang.String operationStatsRegexp) throws AlgorithmMethodException, java.lang.NoSuchMethodException
Algorithm
operation statistics
,
bind the operation statistics according to the given regular expression,
and execute operation on this algorithm.setupStatsAndExecuteOperation
in class Algorithm
T
- the type of executed operationoperation
- the operation to execute on this algorithmoperationStatsRegexp
- regular expression matching the statistics to bindAlgorithmMethodException
- if the execution has thrown an exceptionjava.lang.NoSuchMethodException
- if the operation is unsupported (there is no method for the operation)public <T extends AbstractOperation> java.util.concurrent.Future<T> backgroundExecuteOperation(T operation)
Algorithm
backgroundExecuteOperation
in class Algorithm
T
- the type of the executed operationoperation
- the operation to execute on this algorithmFuture
that can be used to wait for the execution to finish and retrieve the resulting executed operation;
note that a NoSuchMethodException
exception can be thrown if the operation is unsupported (there is no method for the operation)public <T extends AbstractOperation> FutureWithStatistics<T> backgroundExecuteOperationWithStatistics(T operation)
Algorithm
backgroundExecuteOperationWithStatistics
in class Algorithm
T
- the type of the executed operationoperation
- the operation to execute on this algorithmFuture
that can be used to wait for the execution to finish and retrieve the resulting executed operation;
note that a NoSuchMethodException
exception can be thrown if the operation is unsupported (there is no method for the operation)public void backgroundExecuteOperationIndependent(AbstractOperation operation)
Algorithm
Algorithm.getAllRunningOperations()
or Algorithm.getRunningOperationById(java.util.UUID)
to access the operation.
Method Algorithm.terminateOperation(java.util.UUID)
can be used to stop the operation.
After the operation is finished, there is no way to access it.backgroundExecuteOperationIndependent
in class Algorithm
operation
- the operation to execute on this algorithm