Package omero.api
Class _JobHandleDisp
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.api._JobHandleDisp
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,_JobHandleOperations,_JobHandleOperationsNC,_ServiceInterfaceOperations,_ServiceInterfaceOperationsNC,_StatefulServiceInterfaceOperations,_StatefulServiceInterfaceOperationsNC,JobHandle,ServiceInterface,StatefulServiceInterface
- Direct Known Subclasses:
_JobHandleTie
public abstract class _JobHandleDisp extends Ice.ObjectImpl implements JobHandle
Allows submission of asynchronous jobs.NOTE: The calling order for the service is as follows:
submitorattach- any of the other methods
close
closedoes not cancel or otherwise change the Job state. SeecancelJob.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsstatic longserialVersionUID-
Fields inherited from interface omero.api.JobHandle
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _JobHandleDisp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ice.DispatchStatus___attach(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___cancelJob(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getJob(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___jobError(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___jobFinished(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___jobMessage(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___jobRunning(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___jobStatus(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___setMessage(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___setStatus(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___setStatusAndMessage(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___submit(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)Ice.DispatchStatus__dispatch(IceInternal.Incoming in, Ice.Current __current)protected void__readImpl(IceInternal.BasicStream __is)protected void__writeImpl(IceInternal.BasicStream __os)voidactivate_async(AMD_StatefulServiceInterface_activate __cb)Load a service implementation from disk if it was previously passivated.voidattach_async(AMD_JobHandle_attach __cb, long jobId)Returns the currentJobStatusfor the Job id.voidcancelJob_async(AMD_JobHandle_cancelJob __cb)Marks a job for cancellation.voidclose_async(AMD_StatefulServiceInterface_close __cb)Frees all resources -- passivated or active -- for the given stateful service and removes its name from the object adapter.voidgetCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb)To free clients from tracking the mapping from session to stateful service, each stateful service can returns its own context information.voidgetJob_async(AMD_JobHandle_getJob __cb)Returns the currentJobprotected voidice_copyStateFrom(Ice.Object __obj)java.lang.Stringice_id()java.lang.Stringice_id(Ice.Current __current)java.lang.String[]ice_ids()java.lang.String[]ice_ids(Ice.Current __current)booleanice_isA(java.lang.String s)booleanice_isA(java.lang.String s, Ice.Current __current)static java.lang.Stringice_staticId()voidjobError_async(AMD_JobHandle_jobError __cb)Returnstrueif theJobhas thrown an error.voidjobFinished_async(AMD_JobHandle_jobFinished __cb)voidjobMessage_async(AMD_JobHandle_jobMessage __cb)Returns the current message for job.voidjobRunning_async(AMD_JobHandle_jobRunning __cb)Returnstrueif theJobis running, i.e.voidjobStatus_async(AMD_JobHandle_jobStatus __cb)Returns the currentJobStatus.voidpassivate_async(AMD_StatefulServiceInterface_passivate __cb)Causes the blitz server to store the service implementation to disk to free memory.voidsetMessage_async(AMD_JobHandle_setMessage __cb, java.lang.String message)Sets the job's message string, and returns the previous value.voidsetStatus_async(AMD_JobHandle_setStatus __cb, java.lang.String status)Updates theJobStatusfor the current job.voidsetStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb, java.lang.String status, RString message)LikesetStatusbut also sets the message.voidsubmit_async(AMD_JobHandle_submit __cb, Job job)Submits aJoband returns its database id.-
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.api._JobHandleOperations
attach_async, cancelJob_async, getJob_async, jobError_async, jobFinished_async, jobMessage_async, jobRunning_async, jobStatus_async, setMessage_async, setStatus_async, setStatusAndMessage_async, submit_async
-
Methods inherited from interface omero.api._StatefulServiceInterfaceOperations
activate_async, close_async, getCurrentEventContext_async, passivate_async
-
-
-
-
Field Detail
-
__ids
public static final java.lang.String[] __ids
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
ice_copyStateFrom
protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException- Throws:
java.lang.CloneNotSupportedException
-
ice_isA
public boolean ice_isA(java.lang.String s)
- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_staticId
public static java.lang.String ice_staticId()
-
attach_async
public final void attach_async(AMD_JobHandle_attach __cb, long jobId) throws ServerError
Returns the currentJobStatusfor the Job id.- Specified by:
attach_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ApiUsageException- if theJobdoes not exist.ServerError
-
cancelJob_async
public final void cancelJob_async(AMD_JobHandle_cancelJob __cb) throws ServerError
Marks a job for cancellation. Not every processor will check for the cancelled flag for a running job, but no non-running job will start if it has been cancelled.- Specified by:
cancelJob_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
getJob_async
public final void getJob_async(AMD_JobHandle_getJob __cb) throws ServerError
Returns the currentJob- Specified by:
getJob_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
jobError_async
public final void jobError_async(AMD_JobHandle_jobError __cb) throws ServerError
Returnstrueif theJobhas thrown an error.- Specified by:
jobError_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
jobFinished_async
public final void jobFinished_async(AMD_JobHandle_jobFinished __cb) throws ServerError
- Specified by:
jobFinished_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
jobMessage_async
public final void jobMessage_async(AMD_JobHandle_jobMessage __cb) throws ServerError
Returns the current message for job. May be set during processing.- Specified by:
jobMessage_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
jobRunning_async
public final void jobRunning_async(AMD_JobHandle_jobRunning __cb) throws ServerError
Returnstrueif theJobis running, i.e. has an attached process.- Specified by:
jobRunning_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
jobStatus_async
public final void jobStatus_async(AMD_JobHandle_jobStatus __cb) throws ServerError
Returns the currentJobStatus. Will never return null.- Specified by:
jobStatus_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
setMessage_async
public final void setMessage_async(AMD_JobHandle_setMessage __cb, java.lang.String message) throws ServerError
Sets the job's message string, and returns the previous value.- Specified by:
setMessage_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
setStatus_async
public final void setStatus_async(AMD_JobHandle_setStatus __cb, java.lang.String status) throws ServerError
Updates theJobStatusfor the current job. The previous status is returned as a string. If the status isCANCELLED, this method is equivalent tocancelJob.- Specified by:
setStatus_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
setStatusAndMessage_async
public final void setStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb, java.lang.String status, RString message) throws ServerError
LikesetStatusbut also sets the message.- Specified by:
setStatusAndMessage_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
submit_async
public final void submit_async(AMD_JobHandle_submit __cb, Job job) throws ServerError
Submits aJoband returns its database id. The only fields directly on status which are editable are message, scheduledFor and status. The latter two must be sensible.- Specified by:
submit_asyncin interface_JobHandleOperationsNC- Parameters:
__cb- The callback object for the operation.job- Not null- Throws:
ServerError
-
activate_async
public final void activate_async(AMD_StatefulServiceInterface_activate __cb) throws ServerError
Load a service implementation from disk if it was previously passivated. It is unnecessary to call this method since activation happens automatically, but calling this may prevent a short lapse when the service is first accessed after passivation. It is safe to call this method at any time, even when the service is not passivated.- Specified by:
activate_asyncin interface_StatefulServiceInterfaceOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
close_async
public final void close_async(AMD_StatefulServiceInterface_close __cb) throws ServerError
Frees all resources -- passivated or active -- for the given stateful service and removes its name from the object adapter. Any further method calls will fail with a Ice::NoSuchObjectException. Note: with JavaEE, the close method was called publicly, and internally this called destroy(). As of the OmeroBlitz migration, this functionality has been combined.- Specified by:
close_asyncin interface_StatefulServiceInterfaceOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
getCurrentEventContext_async
public final void getCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb) throws ServerError
To free clients from tracking the mapping from session to stateful service, each stateful service can returns its own context information.- Specified by:
getCurrentEventContext_asyncin interface_StatefulServiceInterfaceOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
passivate_async
public final void passivate_async(AMD_StatefulServiceInterface_passivate __cb) throws ServerError
Causes the blitz server to store the service implementation to disk to free memory. This is typically done automatically by the server when a pre-defined memory limit is reached, but can be used by the client if it clear that a stateful service will not be used for some time. Activation will happen automatically whether passivation was done manually or automatically.- Specified by:
passivate_asyncin interface_StatefulServiceInterfaceOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
___submit
public static Ice.DispatchStatus ___submit(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___attach
public static Ice.DispatchStatus ___attach(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getJob
public static Ice.DispatchStatus ___getJob(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___jobStatus
public static Ice.DispatchStatus ___jobStatus(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___jobFinished
public static Ice.DispatchStatus ___jobFinished(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___jobMessage
public static Ice.DispatchStatus ___jobMessage(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___jobRunning
public static Ice.DispatchStatus ___jobRunning(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___jobError
public static Ice.DispatchStatus ___jobError(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___cancelJob
public static Ice.DispatchStatus ___cancelJob(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setStatus
public static Ice.DispatchStatus ___setStatus(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setMessage
public static Ice.DispatchStatus ___setMessage(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setStatusAndMessage
public static Ice.DispatchStatus ___setStatusAndMessage(JobHandle __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
__dispatch
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)- Specified by:
__dispatchin interfaceIce.Object- Overrides:
__dispatchin classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImplin classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImplin classIce.ObjectImpl
-
-