Class Registry.Impl

  • All Implemented Interfaces:
    Registry
    Enclosing interface:
    Registry

    public static class Registry.Impl
    extends java.lang.Object
    implements Registry
    • Constructor Detail

      • Impl

        public Impl​(Ice.Communicator ic)
    • 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: Registry
        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
         
        Specified by:
        getInternalServiceFactory in interface Registry
        Throws:
        java.lang.Exception
      • getGridQuery

        public IceGrid.QueryPrx getGridQuery()
        Description copied from interface: Registry
        Returns an active QueryPrx or null if none is available.
        Specified by:
        getGridQuery in interface Registry
      • getAdminSession

        public IceGrid.AdminSessionPrx getAdminSession()
                                                throws IceGrid.PermissionDeniedException
        Description copied from interface: Registry
        Create a new AdminSessionPrx with the RegistryPrx. Consumers are required to properly SessionPrx.destroy() the returned session.
        Specified by:
        getAdminSession in interface Registry
        Returns:
        See above.
        Throws:
        IceGrid.PermissionDeniedException
      • addObject

        public void addObject​(Ice.ObjectPrx obj)
                       throws java.lang.Exception
        Specified by:
        addObject in interface Registry
        Throws:
        java.lang.Exception
      • removeObject

        public void removeObject​(Ice.Identity id)
                          throws java.lang.Exception
        Specified by:
        removeObject in interface Registry
        Throws:
        java.lang.Exception
      • removeObjectSafely

        public boolean removeObjectSafely​(Ice.Identity id)
        Specified by:
        removeObjectSafely in interface Registry
      • lookupClusterNodes

        public ClusterNodePrx[] lookupClusterNodes()
        Description copied from interface: Registry
        Returns all found cluster nodes or null if something goes wrong during lookup (null QueryPrx for example)
        Specified by:
        lookupClusterNodes in interface Registry