Package ome.services.blitz.fire
Interface Registry
-
- All Known Implementing Classes:
Registry.Impl
public interface Registry
Helper class which makes theRegistryPrx
available within OmeroBlitz. Responsible for properly authenticating to IceGrid.Registry.AdminPermissionsVerifier.- Since:
- 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Registry.Impl
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addObject(Ice.ObjectPrx obj)
IceGrid.AdminSessionPrx
getAdminSession()
Create a newAdminSessionPrx
with theRegistryPrx
.IceGrid.QueryPrx
getGridQuery()
Returns an activeQueryPrx
or null if none is available.ServiceFactoryPrx
getInternalServiceFactory(java.lang.String user, java.lang.Long groupId, int retries, int interval, java.lang.String client_uuid)
Try to return a ServiceFactory from the grid.ClusterNodePrx[]
lookupClusterNodes()
Returns all found cluster nodes or null if something goes wrong during lookup (nullQueryPrx
for example)MonitorServerPrx[]
lookupMonitorServers()
ProcessorPrx[]
lookupProcessors()
InternalRepositoryPrx[]
lookupRepositories()
TablesPrx[]
lookupTables()
void
removeObject(Ice.Identity id)
boolean
removeObjectSafely(Ice.Identity id)
-
-
-
Method Detail
-
getInternalServiceFactory
ServiceFactoryPrx getInternalServiceFactory(java.lang.String user, java.lang.Long groupId, int retries, int interval, java.lang.String client_uuid) throws java.lang.Exception
Try to return a ServiceFactory from the grid. Try a number of times then give up and raise the last exception returned. This method will only work internally to the grid, i.e. behind the Glacier2 firewall. It is intended for internal servers to be able to create sessions for accessing the database.user := Username which should have a session created groupId := Group into which the session should be logged retries := Number of session creation retries before throwing interval := Seconds between retries client_uuid := Uuid of the client which should be used
- Throws:
java.lang.Exception
-
getGridQuery
IceGrid.QueryPrx getGridQuery()
Returns an activeQueryPrx
or null if none is available.
-
getAdminSession
IceGrid.AdminSessionPrx getAdminSession() throws IceGrid.PermissionDeniedException
Create a newAdminSessionPrx
with theRegistryPrx
. Consumers are required to properlySessionPrx.destroy()
the returned session.- Returns:
- See above.
- Throws:
IceGrid.PermissionDeniedException
-
addObject
void addObject(Ice.ObjectPrx obj) throws java.lang.Exception
- Throws:
java.lang.Exception
-
removeObject
void removeObject(Ice.Identity id) throws java.lang.Exception
- Throws:
java.lang.Exception
-
removeObjectSafely
boolean removeObjectSafely(Ice.Identity id)
-
lookupClusterNodes
ClusterNodePrx[] lookupClusterNodes()
Returns all found cluster nodes or null if something goes wrong during lookup (nullQueryPrx
for example)
-
lookupProcessors
ProcessorPrx[] lookupProcessors()
-
lookupRepositories
InternalRepositoryPrx[] lookupRepositories()
-
lookupTables
TablesPrx[] lookupTables()
-
lookupMonitorServers
MonitorServerPrx[] lookupMonitorServers()
-
-