Class PipePluginInfo

java.lang.Object
org.apache.iotdb.confignode.persistence.pipe.PipePluginInfo
All Implemented Interfaces:
SnapshotProcessor

public class PipePluginInfo extends Object implements SnapshotProcessor
  • Constructor Details

  • Method Details

    • acquirePipePluginInfoLock

      public void acquirePipePluginInfoLock()
    • releasePipePluginInfoLock

      public void releasePipePluginInfoLock()
    • validateBeforeCreatingPipePlugin

      public boolean validateBeforeCreatingPipePlugin(String pluginName, boolean isSetIfNotExistsCondition)
      Returns:
      true if the pipe plugin is already created and the isSetIfNotExistsCondition is true, false otherwise
      Throws:
      PipeException - if the pipe plugin is already created and the isSetIfNotExistsCondition is false
    • validateBeforeDroppingPipePlugin

      public boolean validateBeforeDroppingPipePlugin(String pluginName, boolean isSetIfExistsCondition)
      Returns:
      true if the pipe plugin is not created and the isSetIfExistsCondition is true, false otherwise
      Throws:
      PipeException - if the pipe plugin is not created and the isSetIfExistsCondition is false
    • isJarNeededToBeSavedWhenCreatingPipePlugin

      public boolean isJarNeededToBeSavedWhenCreatingPipePlugin(String jarName)
    • checkPipePluginExistence

      public void checkPipePluginExistence(Map<String,String> extractorAttributes, Map<String,String> processorAttributes, Map<String,String> connectorAttributes)
    • createPipePlugin

      public TSStatus createPipePlugin(CreatePipePluginPlan createPipePluginPlan)
    • dropPipePlugin

      public TSStatus dropPipePlugin(DropPipePluginPlan dropPipePluginPlan)
    • showPipePlugins

      public DataSet showPipePlugins()
    • getPipePluginJar

      public JarResp getPipePluginJar(GetPipePluginJarPlan getPipePluginJarPlan)
    • processTakeSnapshot

      public boolean processTakeSnapshot(File snapshotDir) throws IOException
      Specified by:
      processTakeSnapshot in interface SnapshotProcessor
      Throws:
      IOException
    • processLoadSnapshot

      public void processLoadSnapshot(File snapshotDir) throws IOException
      Specified by:
      processLoadSnapshot in interface SnapshotProcessor
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object