Class RegistryProviderDb

java.lang.Object
de.aristaflow.adept2.base.service.AbstractADEPT2Service
de.aristaflow.adept2.base.cluster.RegistryProviderDb
All Implemented Interfaces:
GlobalRegistryProvider, ADEPT2Service, LogService, ServiceThreadHandling

@ConfigurationDescription(properties={@Property(name="LockTimeout",type=LONG,defaultValue="60000",description="The time (in milliseconds) to wait for a of the cluster synchronisation database. You should use the same value as configured for the cluster service."),}) public class RegistryProviderDb extends AbstractADEPT2Service implements GlobalRegistryProvider
A GlobalRegistryProvider retrieving the global registry URI from the cluster (synchronisation) JDBC data source.
  • Field Details

    • CONF_LOCK_TIMEOUT

      public static final String CONF_LOCK_TIMEOUT
      Configuration key for the lock timeout.
      See Also:
    • CONF_CLUSTER_NAME

      public static final String CONF_CLUSTER_NAME
      Configuration key specifying the name of the cluster of which to provide the global registry.
      See Also:
    • lockTimeout

      protected final long lockTimeout
      The time in milliseconds to wait for the table lock before aborting.
    • clusterName

      protected final String clusterName
      The name of the cluster of which to provide the global registry.
  • Constructor Details

    • RegistryProviderDb

      public RegistryProviderDb(Configuration conf, Registry registry)
      Creates a new global registry provider retrieving the global registry URIs from the cluster (synchronisation) JDBC data source.
      Parameters:
      conf - The configuration of this service.
      registry - The registry of this service.
  • Method Details