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
Service to periodically monitor the connection of the StateStore
StateStoreService data store and to re-open the connection
to the data store if required.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new service to monitor the connectivity of the state store driver. -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod that the service will run periodically.protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) Methods inherited from class org.apache.hadoop.hdfs.server.federation.router.PeriodicService
getErrorCount, getIntervalMs, getLastUpdate, getRunCount, serviceStart, serviceStop, setIntervalMs, startPeriodic, stopPeriodicMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
StateStoreConnectionMonitorService
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
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
periodicInvoke
public void periodicInvoke()Description copied from class:PeriodicServiceMethod that the service will run periodically.- Specified by:
periodicInvokein classPeriodicService
-