Class DisabledNameserviceStoreImpl
java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.RecordStore<R>
org.apache.hadoop.hdfs.server.federation.store.CachedRecordStore<DisabledNameservice>
org.apache.hadoop.hdfs.server.federation.store.DisabledNameserviceStore
org.apache.hadoop.hdfs.server.federation.store.impl.DisabledNameserviceStoreImpl
- All Implemented Interfaces:
StateStoreCache
Implementation of
DisabledNameserviceStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandisableNameservice(String nsId) Disable a name service.booleanenableNameservice(String nsId) Enable a name service.Get a list of disabled name services.Methods inherited from class org.apache.hadoop.hdfs.server.federation.store.CachedRecordStore
getCachedRecords, getCachedRecordsAndTimeStamp, loadCache, overrideExpiredRecord, overrideExpiredRecordsMethods inherited from class org.apache.hadoop.hdfs.server.federation.store.RecordStore
getDriver, getRecordClass, newInstance
-
Constructor Details
-
DisabledNameserviceStoreImpl
-
-
Method Details
-
disableNameservice
Description copied from class:DisabledNameserviceStoreDisable a name service.- Specified by:
disableNameservicein classDisabledNameserviceStore- Parameters:
nsId- Identifier of the name service.- Returns:
- If the name service was successfully disabled.
- Throws:
IOException- If the state store could not be queried.
-
enableNameservice
Description copied from class:DisabledNameserviceStoreEnable a name service.- Specified by:
enableNameservicein classDisabledNameserviceStore- Parameters:
nsId- Identifier of the name service.- Returns:
- If the name service was successfully brought back.
- Throws:
IOException- If the state store could not be queried.
-
getDisabledNameservices
Description copied from class:DisabledNameserviceStoreGet a list of disabled name services.- Specified by:
getDisabledNameservicesin classDisabledNameserviceStore- Returns:
- List of disabled name services.
- Throws:
IOException- If the state store could not be queried.
-