Class ServiceAdminProxy

java.lang.Object
com.j_spaces.core.service.ServiceAdminProxy
All Implemented Interfaces:
ServiceAdmin, DestroyAdmin, Serializable, Remote, JoinAdmin, ReferentUuid
Direct Known Subclasses:
JSpaceAdminProxy

public class ServiceAdminProxy extends Object implements ServiceAdmin, Serializable, ReferentUuid
Copyright (c) 2010 GigaSpaces Technologies Ltd. All rights reserved The software source code is proprietary and confidential information of GigaSpaces. You may use the software source code solely under the terms and limitations of The license agreement granted to you by GigaSpaces.
See Also:
  • Field Details

  • Constructor Details

    • ServiceAdminProxy

      public ServiceAdminProxy(ServiceAdmin adminImpl, Uuid uuid)
      Constructor for use by getInstance(), ConstrainableAdminProxy.
  • Method Details

    • getInstance

      public static ServiceAdminProxy getInstance(ServiceAdmin adminImpl, Uuid uuid)
      Returns AdminProxy or ConstrainableAdminProxy instance, depending on whether given server implements RemoteMethodControl.
    • hashCode

      public int hashCode()
      Returns service ID hash code.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Proxies for servers with the same service ID are considered equal.
      Overrides:
      equals in class Object
    • destroy

      public void destroy() throws RemoteException
      Description copied from interface: DestroyAdmin
      Destroy the service, if possible, including its persistent storage. This method should (in effect) spawn a separate thread to do the actual work asynchronously, and make a reasonable attempt to let this remote call return successfully. As such, a successful return from this method does not mean that the service has been destroyed. Although the service should make a reasonable attempt to let this remote call return successfully, the service must not wait indefinitely for other (in-progress and subsequent) remote calls to finish before proceeding to destroy itself. Once this method has been called, the service can, but need not, reject all other (in-progress and subsequent) remote calls to the service.
      Specified by:
      destroy in interface DestroyAdmin
      Specified by:
      destroy in interface ServiceAdmin
      Throws:
      RemoteException
    • getLookupAttributes

      public Entry[] getLookupAttributes() throws RemoteException
      Description copied from interface: JoinAdmin
      Get the current attribute sets for the service.
      Specified by:
      getLookupAttributes in interface JoinAdmin
      Returns:
      the current attribute sets for the service
      Throws:
      RemoteException
    • addLookupAttributes

      public void addLookupAttributes(Entry[] attrSets) throws RemoteException
      Description copied from interface: JoinAdmin
      Add attribute sets for the service. The resulting set will be used for all future joins. The attribute sets are also added to all currently-joined lookup services.
      Specified by:
      addLookupAttributes in interface JoinAdmin
      Parameters:
      attrSets - the attribute sets to add
      Throws:
      RemoteException
    • modifyLookupAttributes

      public void modifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets) throws RemoteException
      Description copied from interface: JoinAdmin
      Modify the current attribute sets, using the same semantics as ServiceRegistration.modifyAttributes. The resulting set will be used for all future joins. The same modifications are also made to all currently-joined lookup services.
      Specified by:
      modifyLookupAttributes in interface JoinAdmin
      Parameters:
      attrSetTemplates - the templates for matching attribute sets
      attrSets - the modifications to make to matching sets
      Throws:
      RemoteException
      See Also:
    • getLookupGroups

      public String[] getLookupGroups() throws RemoteException
      Description copied from interface: JoinAdmin
      Get the list of groups to join. An empty array means the service joins no groups (as opposed to "all" groups).
      Specified by:
      getLookupGroups in interface JoinAdmin
      Returns:
      an array of groups to join. An empty array means the service joins no groups (as opposed to "all" groups).
      Throws:
      RemoteException
      See Also:
    • addLookupGroups

      public void addLookupGroups(String[] groups) throws RemoteException
      Description copied from interface: JoinAdmin
      Add new groups to the set to join. Lookup services in the new groups will be discovered and joined.
      Specified by:
      addLookupGroups in interface JoinAdmin
      Parameters:
      groups - groups to join
      Throws:
      RemoteException
      See Also:
    • removeLookupGroups

      public void removeLookupGroups(String[] groups) throws RemoteException
      Description copied from interface: JoinAdmin
      Remove groups from the set to join. Leases are cancelled at lookup services that are not members of any of the remaining groups.
      Specified by:
      removeLookupGroups in interface JoinAdmin
      Parameters:
      groups - groups to leave
      Throws:
      RemoteException
      See Also:
    • setLookupGroups

      public void setLookupGroups(String[] groups) throws RemoteException
      Description copied from interface: JoinAdmin
      Replace the list of groups to join with a new list. Leases are cancelled at lookup services that are not members of any of the new groups. Lookup services in the new groups will be discovered and joined.
      Specified by:
      setLookupGroups in interface JoinAdmin
      Parameters:
      groups - groups to join
      Throws:
      RemoteException
      See Also:
    • getLookupLocators

      public LookupLocator[] getLookupLocators() throws RemoteException
      Description copied from interface: JoinAdmin
      Get the list of locators of specific lookup services to join.
      Specified by:
      getLookupLocators in interface JoinAdmin
      Returns:
      the list of locators of specific lookup services to join
      Throws:
      RemoteException
      See Also:
    • addLookupLocators

      public void addLookupLocators(LookupLocator[] locators) throws RemoteException
      Description copied from interface: JoinAdmin
      Add locators for specific new lookup services to join. The new lookup services will be discovered and joined.
      Specified by:
      addLookupLocators in interface JoinAdmin
      Parameters:
      locators - locators of specific lookup services to join
      Throws:
      RemoteException
      See Also:
    • removeLookupLocators

      public void removeLookupLocators(LookupLocator[] locators) throws RemoteException
      Description copied from interface: JoinAdmin
      Remove locators for specific lookup services from the set to join. Any leases held at the lookup services are cancelled.
      Specified by:
      removeLookupLocators in interface JoinAdmin
      Parameters:
      locators - locators of specific lookup services to leave
      Throws:
      RemoteException
      See Also:
    • setLookupLocators

      public void setLookupLocators(LookupLocator[] locators) throws RemoteException
      Description copied from interface: JoinAdmin
      Replace the list of locators of specific lookup services to join with a new list. Leases are cancelled at lookup services that were in the old list but are not in the new list. Any new lookup services will be discovered and joined.
      Specified by:
      setLookupLocators in interface JoinAdmin
      Parameters:
      locators - locators of specific lookup services to join
      Throws:
      RemoteException
      See Also:
    • getReferentUuid

      public Uuid getReferentUuid()
      Description copied from interface: ReferentUuid
      Return the Uuid that has been assigned to the resource this proxy represents.
      Specified by:
      getReferentUuid in interface ReferentUuid
      Returns:
      the Uuid associated with the resource this proxy represents. Will not return null.