Class StateStoreCacheUpdateService

java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.hdfs.server.federation.router.PeriodicService
org.apache.hadoop.hdfs.server.federation.store.StateStoreCacheUpdateService
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.service.Service

public class StateStoreCacheUpdateService extends PeriodicService
Service to periodically update the StateStoreService cached information in the Router. This is for performance and removes the State Store from the critical path in common operations.
  • Constructor Details

    • StateStoreCacheUpdateService

      public StateStoreCacheUpdateService(StateStoreService stateStore)
      Create a new Cache update service.
      Parameters:
      stateStore - Implementation of the state store
  • Method Details

    • serviceInit

      protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
      Overrides:
      serviceInit in class org.apache.hadoop.service.AbstractService
      Throws:
      Exception
    • periodicInvoke

      public void periodicInvoke()
      Description copied from class: PeriodicService
      Method that the service will run periodically.
      Specified by:
      periodicInvoke in class PeriodicService