Class 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 Details

    • DisabledNameserviceStore

      public DisabledNameserviceStore(StateStoreDriver driver)
  • Method Details

    • disableNameservice

      public abstract boolean disableNameservice(String nsId) throws IOException
      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

      public abstract boolean enableNameservice(String nsId) throws IOException
      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

      public abstract Set<String> getDisabledNameservices() throws IOException
      Get a list of disabled name services.
      Returns:
      List of disabled name services.
      Throws:
      IOException - If the state store could not be queried.