public class SharedResourcesI extends AbstractCloseableAmdServant implements _SharedResourcesOperations, BlitzOnly, ServiceFactoryAware, ParamsHelper.Acquirer
SharedResources| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT
If no value is passed to this instance, this is the time (1 hour)
which will be used for a script session.
|
| Constructor and Description |
|---|
SharedResourcesI(BlitzExecutor be,
TopicManager topicManager,
Registry registry,
ome.services.scripts.ScriptRepoHelper helper,
ParamsCache cache) |
SharedResourcesI(BlitzExecutor be,
TopicManager topicManager,
Registry registry,
ome.services.scripts.ScriptRepoHelper helper,
ParamsCache cache,
long waitMillis) |
SharedResourcesI(BlitzExecutor be,
TopicManager topicManager,
Registry registry,
ome.services.scripts.ScriptRepoHelper helper,
ParamsCache cache,
long waitMillis,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
InteractiveProcessorPrx |
acquireProcessor(Job submittedJob,
int seconds,
Ice.Current current)
Waits up to seconds to acquire a slot in a processor
which can handle the given job.
|
void |
addProcessor(ProcessorPrx proc,
Ice.Current __current)
Registers a
Processor for Storm notifications
so that other sessions can query whether or not a given
processor would accept a given task. |
boolean |
areTablesEnabled(Ice.Current __current)
Returns true if a
Tables service is active in the grid. |
RepositoryPrx |
getScriptRepository(Ice.Current __current)
Returns the single (possibly mirrored) script repository which makes
all official scripts available.
|
TablePrx |
newTable(long repo,
java.lang.String path,
Ice.Current __current)
Creates a new Format(""OMERO.tables"") file at the given path
on the given repository.
|
TablePrx |
openTable(OriginalFile file,
Ice.Current __current)
Returns a Table instance or null.
|
protected void |
postClose(Ice.Current current)
Should not throw any exceptions which should be detected by clients
since it is called in a finally block after the client thread has been
released.
|
protected void |
preClose(Ice.Current current) |
void |
removeProcessor(ProcessorPrx proc,
Ice.Current __current)
Unregisters a
Processor from Storm
notifications. |
RepositoryMap |
repositories(Ice.Current current)
Returns a map between Repository descriptions (omero::model::OriginalFile
instances) and RepositoryPrx instances (possibly null).
|
void |
setServiceFactory(ServiceFactoryI sf) |
close_async, closeactivate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolderpublic static final long DEFAULT_TIMEOUT
public SharedResourcesI(BlitzExecutor be, TopicManager topicManager, Registry registry, ome.services.scripts.ScriptRepoHelper helper, ParamsCache cache)
public SharedResourcesI(BlitzExecutor be, TopicManager topicManager, Registry registry, ome.services.scripts.ScriptRepoHelper helper, ParamsCache cache, long waitMillis)
public SharedResourcesI(BlitzExecutor be, TopicManager topicManager, Registry registry, ome.services.scripts.ScriptRepoHelper helper, ParamsCache cache, long waitMillis, long timeout)
public void setServiceFactory(ServiceFactoryI sf) throws ServerError
setServiceFactory in interface ServiceFactoryAwareServerErrorprotected void preClose(Ice.Current current)
preClose in class AbstractCloseableAmdServantprotected void postClose(Ice.Current current)
AbstractCloseableAmdServantpostClose in class AbstractCloseableAmdServantpublic RepositoryPrx getScriptRepository(Ice.Current __current) throws ServerError
_SharedResourcesOperationsgetScriptRepository in interface _SharedResourcesOperations__current - The Current object for the invocation.ServerErrorpublic RepositoryMap repositories(Ice.Current current) throws ServerError
_SharedResourcesOperationsrepositories in interface _SharedResourcesOperationscurrent - The Current object for the invocation.ServerErrorpublic boolean areTablesEnabled(Ice.Current __current)
throws ServerError
_SharedResourcesOperationsTables service is active in the grid.
If this value is false, then all calls to #ewTable
or openTable will either fail or return null (possibly
blocking while waiting for a service to startup)areTablesEnabled in interface _SharedResourcesOperations__current - The Current object for the invocation.ServerErrorpublic TablePrx newTable(long repo, java.lang.String path, Ice.Current __current) throws ServerError
_SharedResourcesOperationsnewTable in interface _SharedResourcesOperations__current - The Current object for the invocation.ServerErrorpublic TablePrx openTable(OriginalFile file, Ice.Current __current) throws ServerError
_SharedResourcesOperationsopenTable in interface _SharedResourcesOperations__current - The Current object for the invocation.ServerErrorpublic InteractiveProcessorPrx acquireProcessor(Job submittedJob, int seconds, Ice.Current current) throws ServerError
_SharedResourcesOperationsacquireProcessor in interface _SharedResourcesOperationsacquireProcessor in interface ParamsHelper.Acquirercurrent - The Current object for the invocation.ServerErrorpublic void addProcessor(ProcessorPrx proc, Ice.Current __current) throws ServerError
_SharedResourcesOperationsProcessor for Storm notifications
so that other sessions can query whether or not a given
processor would accept a given task.addProcessor in interface _SharedResourcesOperations__current - The Current object for the invocation.ServerErrorpublic void removeProcessor(ProcessorPrx proc, Ice.Current __current) throws ServerError
_SharedResourcesOperationsProcessor from Storm
notifications. If the processor was not already registered via
addProcessor this is a no-op.removeProcessor in interface _SharedResourcesOperations__current - The Current object for the invocation.ServerError