public final class ServiceFactoryI extends SessionI implements _ServiceFactoryOperations
Current and
Util objects.| Constructor and Description |
|---|
ServiceFactoryI(boolean reusedSession,
Ice.Current current,
ServantHolder holder,
Glacier2.SessionControlPrx control,
ome.system.OmeroContext context,
ome.services.sessions.SessionManager manager,
ome.services.util.Executor executor,
ome.system.Principal p,
java.util.List<ome.logic.HardWiredInterceptor> interceptors,
TopicManager topicManager,
Registry registry,
java.lang.String token) |
ServiceFactoryI(Ice.Current current,
ServantHolder holder,
Glacier2.SessionControlPrx control,
ome.system.OmeroContext context,
ome.services.sessions.SessionManager manager,
ome.services.util.Executor executor,
ome.system.Principal p,
java.util.List<ome.logic.HardWiredInterceptor> interceptors,
TopicManager topicManager,
Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
activeServices(Ice.Current __current)
Returns a list of string ids for currently active services.
|
void |
closeOnDestroy(Ice.Current current)
Marks the session for closure rather than detachment, which will
be triggered by the destruction of the Glacier2 connection via
router.destroySession()
Closing the session rather the detaching is more secure, since all
resources are removed from the server and can safely be set once
it is clear that a client is finished with those resources.
|
StatefulServiceInterfacePrx |
createByName(java.lang.String name,
Ice.Current current)
Allows looking up any stateful service by name.
|
StatefulServiceInterfacePrx |
createByName(java.lang.String name,
Ice.Current current,
boolean allowGuest) |
ExporterPrx |
createExporter(Ice.Current current) |
JobHandlePrx |
createJobHandle(Ice.Current current) |
RawFileStorePrx |
createRawFileStore(Ice.Current current) |
RawPixelsStorePrx |
createRawPixelsStore(Ice.Current current) |
RenderingEnginePrx |
createRenderingEngine(Ice.Current current) |
SearchPrx |
createSearchService(Ice.Current current) |
ThumbnailStorePrx |
createThumbnailStore(Ice.Current current) |
void |
detachOnDestroy(Ice.Current current)
Marks the session for detachment rather than closure, which will
be triggered by the destruction of the Glacier2 connection via
router.destroySession()
This is the default and allows a lost session to be reconnected,
at a slight security cost since the session will persist longer
and can be used by others if the UUID is intercepted.
|
IAdminPrx |
getAdminService(Ice.Current current) |
ServiceInterfacePrx |
getByName(java.lang.String blankname,
Ice.Current dontUse)
Allows looking up any stateless service by name.
|
ServiceInterfacePrx |
getByName(java.lang.String blankname,
Ice.Current dontUse,
boolean allowGuest) |
IConfigPrx |
getConfigService(Ice.Current current) |
IContainerPrx |
getContainerService(Ice.Current current) |
ome.system.EventContext |
getEventContext()
Doesn't take current into account
|
ome.system.EventContext |
getEventContext(Ice.Current current)
Takes current into account
|
ILdapPrx |
getLdapService(Ice.Current current) |
IMetadataPrx |
getMetadataService(Ice.Current current) |
IPixelsPrx |
getPixelsService(Ice.Current current) |
IProjectionPrx |
getProjectionService(Ice.Current current) |
IQueryPrx |
getQueryService(Ice.Current current) |
IRenderingSettingsPrx |
getRenderingSettingsService(Ice.Current current) |
IRepositoryInfoPrx |
getRepositoryInfoService(Ice.Current current) |
IRoiPrx |
getRoiService(Ice.Current current) |
IScriptPrx |
getScriptService(Ice.Current current) |
java.util.List<IObject> |
getSecurityContexts(Ice.Current __current)
Provides a list of all valid security contexts for this session.
|
java.lang.Object |
getServant(Ice.Identity id) |
ISessionPrx |
getSessionService(Ice.Current current) |
ISharePrx |
getShareService(Ice.Current current) |
java.lang.String |
getStatefulServiceCount()
NB: Much of the logic here is similar to
SessionI.doClose and should be
pushed down. |
Ice.TieBase |
getTie(Ice.Identity id) |
ITimelinePrx |
getTimelineService(Ice.Current current) |
ITypesPrx |
getTypesService(Ice.Current current) |
IUpdatePrx |
getUpdateService(Ice.Current current) |
protected ServerError |
handleException(java.lang.Throwable t) |
protected void |
internalServantConfig(java.lang.Object obj) |
boolean |
keepAlive(ServiceInterfacePrx proxy,
Ice.Current __current)
Currently ignoring the individual proxies
|
long |
keepAllAlive(ServiceInterfacePrx[] proxies,
Ice.Current __current)
Requests that the given services be marked as alive.
|
ServiceFactoryPrx |
proxy() |
void |
setCallback(ClientCallbackPrx callback,
Ice.Current current)
Sets the single callback used by the ServiceFactory
to communicate with the client application.
|
IObject |
setSecurityContext(IObject obj,
Ice.Current __current)
Changes the security context for the current session.
|
void |
setSecurityPassword(java.lang.String password,
Ice.Current __current)
Re-validates the password for the current session.
|
SharedResourcesPrx |
sharedResources(Ice.Current current)
Returns a reference to a back-end manager.
|
void |
subscribe(java.lang.String topicName,
Ice.ObjectPrx prx,
Ice.Current __current)
Subscribe to a given topic.
|
allow, callContextWrapper, cleanServants, cleanServants, cleanupSelf, clientId, configureServant, createServantDelegate, destroy, doDestroy, getAdapter, getExecutor, getIdentity, getPrincipal, handleCallbackException, newCurrent, newCurrent, registerServant, registerServant, sessionId, sessionId, submit_async, submit_async, toString, unregisterServant, unregisterServantclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsubmit_asyncpublic ServiceFactoryI(Ice.Current current,
ServantHolder holder,
Glacier2.SessionControlPrx control,
ome.system.OmeroContext context,
ome.services.sessions.SessionManager manager,
ome.services.util.Executor executor,
ome.system.Principal p,
java.util.List<ome.logic.HardWiredInterceptor> interceptors,
TopicManager topicManager,
Registry registry)
throws ApiUsageException
ApiUsageExceptionpublic ServiceFactoryI(boolean reusedSession,
Ice.Current current,
ServantHolder holder,
Glacier2.SessionControlPrx control,
ome.system.OmeroContext context,
ome.services.sessions.SessionManager manager,
ome.services.util.Executor executor,
ome.system.Principal p,
java.util.List<ome.logic.HardWiredInterceptor> interceptors,
TopicManager topicManager,
Registry registry,
java.lang.String token)
throws ApiUsageException
ApiUsageExceptionpublic ServiceFactoryPrx proxy()
public java.util.List<IObject> getSecurityContexts(Ice.Current __current) throws ServerError
_ServiceFactoryOperationsIObject instances can
be passed to setSecurityContext.getSecurityContexts in interface _ServiceFactoryOperations__current - The Current object for the invocation.ServerErrorpublic IObject setSecurityContext(IObject obj, Ice.Current __current) throws ServerError
_ServiceFactoryOperationsA security context limits the set of objects which will be returned by all queries and restricts what updates can be made.
Current valid values for security context:
ExperimenterGroup - logs into a
specific groupShare - uses IShare to activate a
share Passing an unloaded version of either object type will change
the way the current session operates. Note: only objects which
are returned by the getSecurityContext method are
considered valid. Any other instance will cause an exception to
be thrown.
sf = client.createSession() objs = sf.getSecurityContexts() old = sf.setSecurityContext(objs\[-1])
setSecurityContext in interface _ServiceFactoryOperations__current - The Current object for the invocation.ServerErrorpublic void setSecurityPassword(java.lang.String password,
Ice.Current __current)
throws ServerError
_ServiceFactoryOperationssetSecurityPassword in interface _ServiceFactoryOperations__current - The Current object for the invocation.ServerErrorprotected ServerError handleException(java.lang.Throwable t)
public IAdminPrx getAdminService(Ice.Current current) throws ServerError
getAdminService in interface _ServiceFactoryOperationsServerErrorpublic IConfigPrx getConfigService(Ice.Current current) throws ServerError
getConfigService in interface _ServiceFactoryOperationsServerErrorpublic ILdapPrx getLdapService(Ice.Current current) throws ServerError
getLdapService in interface _ServiceFactoryOperationsServerErrorpublic IPixelsPrx getPixelsService(Ice.Current current) throws ServerError
getPixelsService in interface _ServiceFactoryOperationsServerErrorpublic IContainerPrx getContainerService(Ice.Current current) throws ServerError
getContainerService in interface _ServiceFactoryOperationsServerErrorpublic IProjectionPrx getProjectionService(Ice.Current current) throws ServerError
getProjectionService in interface _ServiceFactoryOperationsServerErrorpublic IQueryPrx getQueryService(Ice.Current current) throws ServerError
getQueryService in interface _ServiceFactoryOperationsServerErrorpublic IRoiPrx getRoiService(Ice.Current current) throws ServerError
getRoiService in interface _ServiceFactoryOperationsServerErrorpublic IScriptPrx getScriptService(Ice.Current current) throws ServerError
getScriptService in interface _ServiceFactoryOperationsServerErrorpublic ISessionPrx getSessionService(Ice.Current current) throws ServerError
getSessionService in interface _ServiceFactoryOperationsServerErrorpublic ISharePrx getShareService(Ice.Current current) throws ServerError
getShareService in interface _ServiceFactoryOperationsServerErrorpublic ITimelinePrx getTimelineService(Ice.Current current) throws ServerError
getTimelineService in interface _ServiceFactoryOperationsServerErrorpublic ITypesPrx getTypesService(Ice.Current current) throws ServerError
getTypesService in interface _ServiceFactoryOperationsServerErrorpublic IUpdatePrx getUpdateService(Ice.Current current) throws ServerError
getUpdateService in interface _ServiceFactoryOperationsServerErrorpublic IRenderingSettingsPrx getRenderingSettingsService(Ice.Current current) throws ServerError
getRenderingSettingsService in interface _ServiceFactoryOperationsServerErrorpublic IRepositoryInfoPrx getRepositoryInfoService(Ice.Current current) throws ServerError
getRepositoryInfoService in interface _ServiceFactoryOperationsServerErrorpublic IMetadataPrx getMetadataService(Ice.Current current) throws ServerError
getMetadataService in interface _ServiceFactoryOperationsServerErrorpublic ExporterPrx createExporter(Ice.Current current) throws ServerError
createExporter in interface _ServiceFactoryOperationsServerErrorpublic JobHandlePrx createJobHandle(Ice.Current current) throws ServerError
createJobHandle in interface _ServiceFactoryOperationsServerErrorpublic RenderingEnginePrx createRenderingEngine(Ice.Current current) throws ServerError
createRenderingEngine in interface _ServiceFactoryOperationsServerErrorpublic RawFileStorePrx createRawFileStore(Ice.Current current) throws ServerError
createRawFileStore in interface _ServiceFactoryOperationsServerErrorpublic RawPixelsStorePrx createRawPixelsStore(Ice.Current current) throws ServerError
createRawPixelsStore in interface _ServiceFactoryOperationsServerErrorpublic SearchPrx createSearchService(Ice.Current current) throws ServerError
createSearchService in interface _ServiceFactoryOperationsServerErrorpublic ThumbnailStorePrx createThumbnailStore(Ice.Current current) throws ServerError
createThumbnailStore in interface _ServiceFactoryOperationsServerErrorpublic SharedResourcesPrx sharedResources(Ice.Current current) throws ServerError
_ServiceFactoryOperationsSharedResources service provides look ups
for various facilities offered by OMERO:
These facilities may or may not be available on first request.sharedResources in interface _ServiceFactoryOperationscurrent - The Current object for the invocation.ServerErrorSharedResourcespublic Ice.TieBase getTie(Ice.Identity id)
public java.lang.Object getServant(Ice.Identity id)
public ServiceInterfacePrx getByName(java.lang.String blankname, Ice.Current dontUse) throws ServerError
_ServiceFactoryOperationsgetByName in interface _ServiceFactoryOperationsdontUse - The Current object for the invocation.ServerErrorpublic ServiceInterfacePrx getByName(java.lang.String blankname, Ice.Current dontUse, boolean allowGuest) throws ServerError
ServerErrorpublic StatefulServiceInterfacePrx createByName(java.lang.String name, Ice.Current current) throws ServerError
_ServiceFactoryOperationscreateByName in interface _ServiceFactoryOperationscurrent - The Current object for the invocation.ServerErrorpublic StatefulServiceInterfacePrx createByName(java.lang.String name, Ice.Current current, boolean allowGuest) throws ServerError
ServerErrorpublic void subscribe(java.lang.String topicName,
Ice.ObjectPrx prx,
Ice.Current __current)
throws ServerError
_ServiceFactoryOperationssubscribe in interface _ServiceFactoryOperations__current - The Current object for the invocation.ServerErrorpublic void setCallback(ClientCallbackPrx callback, Ice.Current current) throws ServerError
_ServiceFactoryOperationssetCallback in interface _ServiceFactoryOperationscurrent - The Current object for the invocation.ServerErrorpublic void detachOnDestroy(Ice.Current current)
_ServiceFactoryOperationsdetachOnDestroy in interface _ServiceFactoryOperationscurrent - The Current object for the invocation.public void closeOnDestroy(Ice.Current current)
_ServiceFactoryOperationscloseOnDestroy in interface _ServiceFactoryOperationscurrent - The Current object for the invocation.public java.lang.String getStatefulServiceCount()
SessionI.doClose and should be
pushed down.public java.util.List<java.lang.String> activeServices(Ice.Current __current)
_ServiceFactoryOperationsactiveServices in interface _ServiceFactoryOperations__current - The Current object for the invocation.public ome.system.EventContext getEventContext()
public ome.system.EventContext getEventContext(Ice.Current current)
public long keepAllAlive(ServiceInterfacePrx[] proxies, Ice.Current __current) throws ServerError
_ServiceFactoryOperationsif (retval & 1<<idx == 1<<idx) { // not alive }
Except for fatal server or session errors, this method should never
throw an exception.keepAllAlive in interface _ServiceFactoryOperations__current - The Current object for the invocation.ServerErrorpublic boolean keepAlive(ServiceInterfacePrx proxy, Ice.Current __current) throws ServerError
keepAlive in interface _ServiceFactoryOperations__current - The Current object for the invocation.ServerErrorprotected void internalServantConfig(java.lang.Object obj)
throws ServerError
internalServantConfig in class SessionIServerError