Class DisabledNameserviceStore
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
- All Implemented Interfaces:
StateStoreCache
- Direct Known Subclasses:
DisabledNameserviceStoreImpl
@Private
@Evolving
public abstract class DisabledNameserviceStore
extends CachedRecordStore<DisabledNameservice>
State store record to track disabled name services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleandisableNameservice(String nsId) Disable a name service.abstract 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
-
DisabledNameserviceStore
-
-
Method Details
-
disableNameservice
Disable a name service.- 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
Enable a name service.- 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
Get a list of disabled name services.- Returns:
- List of disabled name services.
- Throws:
IOException- If the state store could not be queried.
-