public interface _ServiceFactoryOperationsNC extends _SessionOperationsNC
A ServiceFactory once acquired can be used to create any number
of service proxies to the server. Most services implement
ServiceInterface
or its subinterface
StatefulServiceInterface
.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
activeServices()
Returns a list of string ids for currently active services.
|
void |
closeOnDestroy()
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)
Allows looking up any stateful service by name.
|
ExporterPrx |
createExporter() |
JobHandlePrx |
createJobHandle() |
RawFileStorePrx |
createRawFileStore() |
RawPixelsStorePrx |
createRawPixelsStore() |
RenderingEnginePrx |
createRenderingEngine() |
SearchPrx |
createSearchService() |
ThumbnailStorePrx |
createThumbnailStore() |
void |
detachOnDestroy()
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() |
ServiceInterfacePrx |
getByName(java.lang.String name)
Allows looking up any stateless service by name.
|
IConfigPrx |
getConfigService() |
IContainerPrx |
getContainerService() |
ILdapPrx |
getLdapService() |
IMetadataPrx |
getMetadataService() |
IPixelsPrx |
getPixelsService() |
IProjectionPrx |
getProjectionService() |
IQueryPrx |
getQueryService() |
IRenderingSettingsPrx |
getRenderingSettingsService() |
IRepositoryInfoPrx |
getRepositoryInfoService() |
IRoiPrx |
getRoiService() |
IScriptPrx |
getScriptService() |
java.util.List<IObject> |
getSecurityContexts()
Provides a list of all valid security contexts for this session.
|
ISessionPrx |
getSessionService() |
ISharePrx |
getShareService() |
ITimelinePrx |
getTimelineService() |
ITypesPrx |
getTypesService() |
IUpdatePrx |
getUpdateService() |
boolean |
keepAlive(ServiceInterfacePrx proxy)
Returns true if the given service is alive.
|
long |
keepAllAlive(ServiceInterfacePrx[] proxies)
Requests that the given services be marked as alive.
|
void |
setCallback(ClientCallbackPrx callback)
Sets the single callback used by the ServiceFactory
to communicate with the client application.
|
IObject |
setSecurityContext(IObject obj)
Changes the security context for the current session.
|
void |
setSecurityPassword(java.lang.String password)
Re-validates the password for the current session.
|
SharedResourcesPrx |
sharedResources()
Returns a reference to a back-end manager.
|
void |
subscribe(java.lang.String topicName,
Ice.ObjectPrx prx)
Subscribe to a given topic.
|
submit_async
java.util.List<IObject> getSecurityContexts() throws ServerError
IObject
instances can
be passed to setSecurityContext
.ServerError
IObject setSecurityContext(IObject obj) throws ServerError
A 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])
ServerError
void setSecurityPassword(java.lang.String password) throws ServerError
ServerError
IAdminPrx getAdminService() throws ServerError
ServerError
IConfigPrx getConfigService() throws ServerError
ServerError
IContainerPrx getContainerService() throws ServerError
ServerError
ILdapPrx getLdapService() throws ServerError
ServerError
IPixelsPrx getPixelsService() throws ServerError
ServerError
IProjectionPrx getProjectionService() throws ServerError
ServerError
IQueryPrx getQueryService() throws ServerError
ServerError
IRenderingSettingsPrx getRenderingSettingsService() throws ServerError
ServerError
IRepositoryInfoPrx getRepositoryInfoService() throws ServerError
ServerError
IRoiPrx getRoiService() throws ServerError
ServerError
IScriptPrx getScriptService() throws ServerError
ServerError
ISessionPrx getSessionService() throws ServerError
ServerError
ISharePrx getShareService() throws ServerError
ServerError
ITimelinePrx getTimelineService() throws ServerError
ServerError
ITypesPrx getTypesService() throws ServerError
ServerError
IUpdatePrx getUpdateService() throws ServerError
ServerError
IMetadataPrx getMetadataService() throws ServerError
ServerError
ExporterPrx createExporter() throws ServerError
ServerError
JobHandlePrx createJobHandle() throws ServerError
ServerError
RawFileStorePrx createRawFileStore() throws ServerError
ServerError
RawPixelsStorePrx createRawPixelsStore() throws ServerError
ServerError
RenderingEnginePrx createRenderingEngine() throws ServerError
ServerError
SearchPrx createSearchService() throws ServerError
ServerError
ThumbnailStorePrx createThumbnailStore() throws ServerError
ServerError
SharedResourcesPrx sharedResources() throws ServerError
SharedResources
service provides look ups
for various facilities offered by OMERO:
These facilities may or may not be available on first request.ServerError
SharedResources
ServiceInterfacePrx getByName(java.lang.String name) throws ServerError
ServerError
StatefulServiceInterfacePrx createByName(java.lang.String name) throws ServerError
ServerError
void subscribe(java.lang.String topicName, Ice.ObjectPrx prx) throws ServerError
ServerError
void setCallback(ClientCallbackPrx callback) throws ServerError
ServerError
void closeOnDestroy() throws ServerError
ServerError
void detachOnDestroy() throws ServerError
ServerError
java.util.List<java.lang.String> activeServices() throws ServerError
ServerError
long keepAllAlive(ServiceInterfacePrx[] proxies) throws ServerError
if (retval & 1<<idx == 1<<idx) { // not alive }
Except for fatal server or session errors, this method should never
throw an exception.ServerError
boolean keepAlive(ServiceInterfacePrx proxy) throws ServerError
ServerError