public class ProcessorCallbackI extends AbstractAmdServant implements _ProcessorCallbackOperations
be, ctx, invoker, service| Constructor and Description |
|---|
ProcessorCallbackI(ServiceFactoryI sf)
Simplified constructor used to see if any usermode processor is active
for either the current group or the current user.
|
ProcessorCallbackI(ServiceFactoryI sf,
ResultHolder<ProcessorPrx> holder,
Job job)
Primary constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ProcessorPrx |
activateAndWait(Ice.Current current)
Generates a UUID-based
Identity with the category of
PROCESSORCALLBACK.value and then calls
activateAndWait(Current, Ice.Identity). |
ProcessorPrx |
activateAndWait(Ice.Current current,
Ice.Identity acceptId)
Primary method which adds this instance to IceStorm, waits for a response
from any active processor services, and finally unregister itself before
returning the first processor instance which responded.
|
int |
getResponses()
Return the number of times this instance has been called in a thread
safe manner.
|
void |
isAccepted(boolean accepted,
java.lang.String sessionUuid,
java.lang.String procConn,
Ice.Current __current)
Deprecated.
|
void |
isProxyAccepted(boolean accepted,
java.lang.String sessionUuid,
ProcessorPrx procProxy,
Ice.Current __current)
Callback method called by the remote processor instance.
|
void |
responseRunning(java.util.List<java.lang.Long> jobIds,
Ice.Current __current)
Callback method which should not be called for this instance.
|
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolderpublic ProcessorCallbackI(ServiceFactoryI sf)
ResultHolder instance.public ProcessorCallbackI(ServiceFactoryI sf, ResultHolder<ProcessorPrx> holder, Job job)
sf - Cannot be null.holder - Cannot be null.job - Can be null.public int getResponses()
public ProcessorPrx activateAndWait(Ice.Current current) throws ServerError
Identity with the category of
PROCESSORCALLBACK.value and then calls
activateAndWait(Current, Ice.Identity).ServerErrorpublic ProcessorPrx activateAndWait(Ice.Current current, Ice.Identity acceptId) throws ServerError
current - acceptId - ServerError@Deprecated
public void isAccepted(boolean accepted,
java.lang.String sessionUuid,
java.lang.String procConn,
Ice.Current __current)
isAccepted in interface _ProcessorCallbackOperationspublic void isProxyAccepted(boolean accepted,
java.lang.String sessionUuid,
ProcessorPrx procProxy,
Ice.Current __current)
isProxyAccepted in interface _ProcessorCallbackOperationspublic void responseRunning(java.util.List<java.lang.Long> jobIds,
Ice.Current __current)
responseRunning in interface _ProcessorCallbackOperations