com.ontimize.util.operation
Class AbstractRemoteOperationManager
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.ontimize.util.operation.AbstractRemoteOperationManager
- All Implemented Interfaces:
- java.rmi.Remote, RemoteOperationManager, java.io.Serializable
- Direct Known Subclasses:
- DefaultRemoteOperationManager
- public class AbstractRemoteOperationManager
- extends java.rmi.server.UnicastRemoteObject
- implements RemoteOperationManager
- Since:
- 5.2008
- Author:
- Imatia Innovation S.L
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Method Summary |
void |
cancel(java.lang.String token,
int sessionId)
|
protected boolean |
checkSessionId(int sessionId)
|
protected void |
executeRemoteOperation()
|
protected void |
executeRemoteOperation(java.lang.String token)
|
protected void |
executeRemoteOperation(java.lang.String token,
RemoteOperation rOperation)
|
java.util.Hashtable |
getCurrentExecutionInformation(java.lang.String token,
int sessionId)
|
java.util.HashMap |
getRequired(java.lang.String token,
int sessionId)
|
java.util.Hashtable |
getResult(java.lang.String token,
int sessionId)
|
int |
getStatus(java.lang.String token,
int sessionId)
|
boolean |
hasRequired(java.lang.String token,
int sessionId)
|
boolean |
isFinished(java.lang.String token,
int sessionId)
|
java.lang.String |
run(java.lang.String className,
java.util.HashMap parameters,
int sessionId)
|
void |
setRequired(java.lang.String token,
java.util.HashMap required,
int sessionId)
|
| 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 |
finalize, getClass, notify, notifyAll, wait, wait, wait |
runningThreadNumber
public static int runningThreadNumber
remoteOperationCheckedTime
public static long remoteOperationCheckedTime
DEBUG
public static boolean DEBUG
parametersClass
protected static java.lang.Class[] parametersClass
waitingList
protected java.util.ArrayList waitingList
waitingThreads
protected java.util.HashMap waitingThreads
runningThreads
protected java.util.HashMap runningThreads
finishedThreads
protected java.util.HashMap finishedThreads
locator
protected EntityReferenceLocator locator
generator
protected AbstractRemoteOperationManager.IdentifiedGenerator generator
thread
protected AbstractRemoteOperationManager.RemoteOperationCheckedThread thread
AbstractRemoteOperationManager
protected AbstractRemoteOperationManager(int port,
EntityReferenceLocator locator)
throws java.rmi.RemoteException
cancel
public void cancel(java.lang.String token,
int sessionId)
throws java.lang.Exception
- Specified by:
cancel in interface RemoteOperationManager
- Throws:
java.lang.Exception
checkSessionId
protected boolean checkSessionId(int sessionId)
getResult
public java.util.Hashtable getResult(java.lang.String token,
int sessionId)
throws java.lang.Exception
- Specified by:
getResult in interface RemoteOperationManager
- Throws:
java.lang.Exception
getCurrentExecutionInformation
public java.util.Hashtable getCurrentExecutionInformation(java.lang.String token,
int sessionId)
throws java.lang.Exception
- Specified by:
getCurrentExecutionInformation in interface RemoteOperationManager
- Throws:
java.lang.Exception
isFinished
public boolean isFinished(java.lang.String token,
int sessionId)
throws java.lang.Exception
- Specified by:
isFinished in interface RemoteOperationManager
- Throws:
java.lang.Exception
executeRemoteOperation
protected void executeRemoteOperation()
executeRemoteOperation
protected void executeRemoteOperation(java.lang.String token)
executeRemoteOperation
protected void executeRemoteOperation(java.lang.String token,
RemoteOperation rOperation)
run
public java.lang.String run(java.lang.String className,
java.util.HashMap parameters,
int sessionId)
throws java.lang.Exception
- Specified by:
run in interface RemoteOperationManager
- Throws:
java.lang.Exception
setRequired
public void setRequired(java.lang.String token,
java.util.HashMap required,
int sessionId)
throws java.lang.Exception
- Specified by:
setRequired in interface RemoteOperationManager
- Throws:
java.lang.Exception
getRequired
public java.util.HashMap getRequired(java.lang.String token,
int sessionId)
throws java.lang.Exception
- Specified by:
getRequired in interface RemoteOperationManager
- Throws:
java.lang.Exception
hasRequired
public boolean hasRequired(java.lang.String token,
int sessionId)
throws java.lang.Exception
- Specified by:
hasRequired in interface RemoteOperationManager
- Throws:
java.lang.Exception
getStatus
public int getStatus(java.lang.String token,
int sessionId)
throws java.lang.Exception
- Specified by:
getStatus in interface RemoteOperationManager
- Throws:
java.lang.Exception