ome.services.blitz.fire
Interface Registry

All Known Implementing Classes:
Registry.Impl

public interface Registry

Helper class which makes the RegistryPrx available within OmeroBlitz. Responsible for properly authenticating to IceGrid.Registry.AdminPermissionsVerifier.

Since:
4.0

Nested Class Summary
static class Registry.Impl
           
 
Method Summary
 void addObject(Ice.ObjectPrx obj)
           
 IceGrid.AdminSessionPrx getAdminSession()
          Create a new AdminSessionPrx with the RegistryPrx.
 IceGrid.QueryPrx getGridQuery()
          Returns an active QueryPrx or null if none is available.
 omero.api.ServiceFactoryPrx getInternalServiceFactory(String user, String group, int retries, int interval, String client_uuid)
          Try to return a ServiceFactory from the grid.
 omero.grid.ClusterNodePrx[] lookupClusterNodes()
          Returns all found cluster nodes or null if something goes wrong during lookup (null QueryPrx for example)
 omero.grid.ProcessorPrx[] lookupProcessors()
           
 omero.grid.InternalRepositoryPrx[] lookupRepositories()
           
 omero.grid.TablesPrx[] lookupTables()
           
 void removeObject(Ice.Identity id)
           
 boolean removeObjectSafely(Ice.Identity id)
           
 

Method Detail

getInternalServiceFactory

omero.api.ServiceFactoryPrx getInternalServiceFactory(String user,
                                                      String group,
                                                      int retries,
                                                      int interval,
                                                      String client_uuid)
                                                      throws 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.
 communicator := Ice.Communicator used to find the registry
 user         := Username which should have a session created
 group        := 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:
Exception

getGridQuery

IceGrid.QueryPrx getGridQuery()
Returns an active QueryPrx or null if none is available.


getAdminSession

IceGrid.AdminSessionPrx getAdminSession()
                                        throws IceGrid.PermissionDeniedException
Create a new AdminSessionPrx with the RegistryPrx. Consumers are required to properly SessionPrx.destroy() the returned session.

Returns:
Throws:
IceGrid.PermissionDeniedException

addObject

void addObject(Ice.ObjectPrx obj)
               throws Exception
Throws:
Exception

removeObject

void removeObject(Ice.Identity id)
                  throws Exception
Throws:
Exception

removeObjectSafely

boolean removeObjectSafely(Ice.Identity id)

lookupClusterNodes

omero.grid.ClusterNodePrx[] lookupClusterNodes()
Returns all found cluster nodes or null if something goes wrong during lookup (null QueryPrx for example)


lookupProcessors

omero.grid.ProcessorPrx[] lookupProcessors()

lookupRepositories

omero.grid.InternalRepositoryPrx[] lookupRepositories()

lookupTables

omero.grid.TablesPrx[] lookupTables()


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.