Interface ProcessorStateStore

All Known Implementing Classes:
ProcessorStateStoreImpl

public interface ProcessorStateStore
Store that holds a state for a target processor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String targetId)
    Delete the state files directory for the specified target.
    load(String targetId, String processorName, String suffix)
    Loads the stored state valuefor the specified target and processor.
    void
    store(String targetId, String processorName, String suffix, String value)
    Stores the specified value for the target and processor.
  • Method Details

    • load

      String load(String targetId, String processorName, String suffix) throws IOException
      Loads the stored state valuefor the specified target and processor.
      Parameters:
      targetId - the target's ID
      processorName - the processor's name
      suffix - the suffix to use for the state file name
      Returns:
      the stored state value, or null if not found
      Throws:
      IOException - if an error occurs while reading the file
    • store

      void store(String targetId, String processorName, String suffix, String value) throws IOException
      Stores the specified value for the target and processor.
      Parameters:
      targetId - the target's ID
      processorName - the processor's name
      suffix - the suffix to use for the state file name
      Throws:
      IOException - if an error occurs while writing the file
    • delete

      void delete(String targetId)
      Delete the state files directory for the specified target.
      Parameters:
      targetId - the target's ID