Package ome.services.blitz.fire
Class Registry.Impl
- java.lang.Object
-
- ome.services.blitz.fire.Registry.Impl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ome.services.blitz.fire.Registry
Registry.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(Ice.Communicator ic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObject(Ice.ObjectPrx obj)IceGrid.AdminSessionPrxgetAdminSession()Create a newAdminSessionPrxwith theRegistryPrx.IceGrid.QueryPrxgetGridQuery()Returns an activeQueryPrxor null if none is available.ServiceFactoryPrxgetInternalServiceFactory(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 (nullQueryPrxfor example)MonitorServerPrx[]lookupMonitorServers()ProcessorPrx[]lookupProcessors()InternalRepositoryPrx[]lookupRepositories()TablesPrx[]lookupTables()voidremoveObject(Ice.Identity id)booleanremoveObjectSafely(Ice.Identity id)
-
-
-
Method Detail
-
getInternalServiceFactory
public ServiceFactoryPrx getInternalServiceFactory(java.lang.String user, java.lang.Long groupId, int retries, int interval, java.lang.String client_uuid) throws java.lang.Exception
Description copied from interface:RegistryTry 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
- Specified by:
getInternalServiceFactoryin interfaceRegistry- Throws:
java.lang.Exception
-
getGridQuery
public IceGrid.QueryPrx getGridQuery()
Description copied from interface:RegistryReturns an activeQueryPrxor null if none is available.- Specified by:
getGridQueryin interfaceRegistry
-
getAdminSession
public IceGrid.AdminSessionPrx getAdminSession() throws IceGrid.PermissionDeniedExceptionDescription copied from interface:RegistryCreate a newAdminSessionPrxwith theRegistryPrx. Consumers are required to properlySessionPrx.destroy()the returned session.- Specified by:
getAdminSessionin interfaceRegistry- Returns:
- See above.
- Throws:
IceGrid.PermissionDeniedException
-
addObject
public void addObject(Ice.ObjectPrx obj) throws java.lang.Exception
-
removeObject
public void removeObject(Ice.Identity id) throws java.lang.Exception- Specified by:
removeObjectin interfaceRegistry- Throws:
java.lang.Exception
-
removeObjectSafely
public boolean removeObjectSafely(Ice.Identity id)
- Specified by:
removeObjectSafelyin interfaceRegistry
-
lookupClusterNodes
public ClusterNodePrx[] lookupClusterNodes()
Description copied from interface:RegistryReturns all found cluster nodes or null if something goes wrong during lookup (nullQueryPrxfor example)- Specified by:
lookupClusterNodesin interfaceRegistry
-
lookupProcessors
public ProcessorPrx[] lookupProcessors()
- Specified by:
lookupProcessorsin interfaceRegistry
-
lookupTables
public TablesPrx[] lookupTables()
- Specified by:
lookupTablesin interfaceRegistry
-
lookupRepositories
public InternalRepositoryPrx[] lookupRepositories()
- Specified by:
lookupRepositoriesin interfaceRegistry
-
lookupMonitorServers
public MonitorServerPrx[] lookupMonitorServers()
- Specified by:
lookupMonitorServersin interfaceRegistry
-
-