Interface RemoteProgressMonitor
-
public interface RemoteProgressMonitorThe interface providesProgressMonitors for clients executing activities proprietarily not usingExecutableComponent. Usually this interface is called remotely.Since this handles several progress monitors, each method requires the
sessionIDof the execution. If the designated session ID does not exist, anUnknownSessionExceptionwill be thrown for each method. This usually indicates that the execution has been terminated from server side but the executing client has not responded in time. Clients should check the state of the corresponding process step.
If the session token does not match the designated session ID, that is the session token has not the same credentials as the starting token, aServiceAccessControlExceptionwill be thrown.Besides the session token and the session ID the methods are identical to
ProgressMonitor.- Author:
- Ulrich Kreher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeginTask(SessionToken token, String sessionID)voidbeginTask(SessionToken token, String sessionID, int overallWorkUnits)voidendTask(SessionToken token, String sessionID)voidprogress(SessionToken token, String sessionID)voidsetTaskState(SessionToken token, String sessionID, TaskState taskState)
-
-
-
Method Detail
-
beginTask
void beginTask(SessionToken token, String sessionID) throws UnknownSessionException
- Parameters:
token- The session token which is used to check for access rights on this method. This has to be a session token having the same credentials (top-level session token) as the session token used for starting the corresponding activity.sessionID- The session ID of the execution. This is the same session ID provided to anExecutableComponent.- Throws:
UnknownSessionException- If the designated session is not known, anUnknownSessionExceptionwill be thrown. This usually indicates that the server has terminated the execution because the client did not respond in time.ServiceAccessControlException- If the designated token does not match the designated session ID, that is the session token has not the same credentials as the token starting the designated execution session, aServiceAccessControlExceptionwill be thrown.
-
beginTask
void beginTask(SessionToken token, String sessionID, int overallWorkUnits) throws UnknownSessionException
- Parameters:
token- The session token which is used to check for access rights on this method. This has to be a session token having the same credentials (top-level session token) as the session token used for starting the corresponding activity.sessionID- The session ID of the execution. This is the same session ID provided to anExecutableComponent.overallWorkUnits- The amount of work units to be done during the job.- Throws:
UnknownSessionException- If the designated session ID is not known, anUnknownSessionExceptionwill be thrown. This usually indicates that the server has terminated the execution because the client did not respond in time.ServiceAccessControlException- If the designated token does not match the designated session ID, that is the session token has not the same credentials as the token starting the designated execution session, aServiceAccessControlExceptionwill be thrown.
-
progress
void progress(SessionToken token, String sessionID) throws UnknownSessionException
- Parameters:
token- The session token which is used to check for access rights on this method. This has to be a session token having the same credentials (top-level session token) as the session token used for starting the corresponding activity.sessionID- The session ID of the execution. This is the same session ID provided to anExecutableComponent.- Throws:
UnknownSessionException- If the designated session ID is not known, anUnknownSessionExceptionwill be thrown. This usually indicates that the server has terminated the execution because the client did not respond in time.ServiceAccessControlException- If the designated token does not match the designated session ID, that is the session token has not the same credentials as the token starting the designated execution session, aServiceAccessControlExceptionwill be thrown.
-
endTask
void endTask(SessionToken token, String sessionID) throws UnknownSessionException
- Parameters:
token- The session token which is used to check for access rights on this method. This has to be a session token having the same credentials (top-level session token) as the session token used for starting the corresponding activity.sessionID- The session ID of the execution. This is the same session ID provided to anExecutableComponent.- Throws:
UnknownSessionException- If the designated session ID is not known, anUnknownSessionExceptionwill be thrown. This usually indicates that the server has terminated the execution because the client did not respond in time.ServiceAccessControlException- If the designated token does not match the designated session ID, that is the session token has not the same credentials as the token starting the designated execution session, aServiceAccessControlExceptionwill be thrown.
-
setTaskState
void setTaskState(SessionToken token, String sessionID, TaskState taskState) throws UnknownSessionException
- Parameters:
token- The session token which is used to check for access rights on this method. This has to be a session token having the same credentials (top-level session token) as the session token used for starting the corresponding activity.sessionID- The session ID of the execution. This is the same session ID provided to anExecutableComponent.taskState- the state of the task- Throws:
UnknownSessionException- If the designated session ID is not known, anUnknownSessionExceptionwill be thrown. This usually indicates that the server has terminated the execution because the client did not respond in time.ServiceAccessControlException- If the designated token does not match the designated session ID, that is the session token has not the same credentials as the token starting the designated execution session, aServiceAccessControlExceptionwill be thrown.
-
-