Class AbstractGigaSpacesService

java.lang.Object
com.gigaspaces.internal.service.AbstractGigaSpacesService
All Implemented Interfaces:
ILRMIService, ServiceProxyAccessor, Remote
Direct Known Subclasses:
AbstractService, ReplicationProxyGigaSpacesService

public abstract class AbstractGigaSpacesService extends Object implements Remote, ServiceProxyAccessor, ILRMIService
Base class for GigaSpaces Services that supports registration in Jini Lookup Service.
Since:
8.0.3
Author:
Niv Ingberg
  • Field Details

    • SERVICE_ATTRIBUTE_MODIFY_AWAIT

      public static final long SERVICE_ATTRIBUTE_MODIFY_AWAIT
      Wait for 60 seconds for any attributes change
      See Also:
  • Constructor Details

    • AbstractGigaSpacesService

      protected AbstractGigaSpacesService(LifeCycle lifeCycle)
    • AbstractGigaSpacesService

      protected AbstractGigaSpacesService(LifeCycle lifeCycle, Uuid serviceUuid)
  • Method Details

    • getUuid

      public Uuid getUuid()
    • getLifeCycle

      public LifeCycle getLifeCycle()
    • getServiceName

      public abstract String getServiceName()
      Specified by:
      getServiceName in interface ILRMIService
    • getJoinManager

      public JoinManager getJoinManager()
    • addLookupAttributes

      public void addLookupAttributes(Entry[] attributes)
      Add attributes to the collection of attributes the JoinManager utility maintains. If the service is not advertised, the new attribute will be added to the local collection of attributes. NOTE: This method is not thread safe - it should no be called concurrently with register/unregister.
      Parameters:
      attributes - - Array of Entry attributes
    • addLookupAttributes

      public void addLookupAttributes(Entry[] attributes, long timeoutInMillis) throws InterruptedException
      Add the lookup attributes with a specified timeout to wait for the request to complete.
      Throws:
      InterruptedException - if this request was interrupted while waiting for completion
      Since:
      12.1.1
    • modifyLookupAttributes

      public void modifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets)
      Modify the current attribute sets. The resulting set will be used for all future joins. The same modifications are also made to all currently-joined lookup services. NOTE: This method is not thread safe - it should no be called concurrently with register/unregister.
      Parameters:
      attrSetTemplates - the templates for matching attribute sets
      attrSets - the modifications to make to matching sets
    • registerLookupService

      public void registerLookupService(String[] lookupGroups, LookupLocator[] lookupLocators, DiscoveryListener listener, boolean useSharedLeaseRenewalManager) throws ServiceRegistrationException
      Throws:
      ServiceRegistrationException
    • unregisterFromLookupService

      public void unregisterFromLookupService()
    • getServiceTypeDescription

      protected String getServiceTypeDescription()
    • AppendInitialLookupAttributes

      protected void AppendInitialLookupAttributes(List<Entry> lookupAttributes) throws ServiceRegistrationException
      Throws:
      ServiceRegistrationException
    • getExporter

      protected static Exporter getExporter()
      Returns an instance of Exporter. Loads Jini configuration (services.config by default) and creates the relevant exporter (which is GenericExporter by default).