Class StateStoreConnectionMonitorService

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

public class StateStoreConnectionMonitorService extends PeriodicService
Service to periodically monitor the connection of the StateStore StateStoreService data store and to re-open the connection to the data store if required.
  • Constructor Details

    • StateStoreConnectionMonitorService

      public StateStoreConnectionMonitorService(StateStoreService store)
      Create a new service to monitor the connectivity of the state store driver.
      Parameters:
      store - Instance of the state store to be monitored.
  • 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