Class CreateTriggerPlan

  • All Implemented Interfaces:
    org.apache.iotdb.consensus.common.request.IConsensusRequest

    public class CreateTriggerPlan
    extends PhysicalPlan
    • Constructor Detail

      • CreateTriggerPlan

        public CreateTriggerPlan()
      • CreateTriggerPlan

        public CreateTriggerPlan​(java.lang.String triggerName,
                                 TriggerEvent event,
                                 org.apache.iotdb.commons.path.PartialPath fullPath,
                                 java.lang.String className,
                                 java.util.Map<java.lang.String,​java.lang.String> attributes)
    • Method Detail

      • getTriggerName

        public java.lang.String getTriggerName()
      • getFullPath

        public org.apache.iotdb.commons.path.PartialPath getFullPath()
      • getClassName

        public java.lang.String getClassName()
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getAttributes()
      • isStopped

        public boolean isStopped()
      • markAsStarted

        public void markAsStarted()
      • markAsStopped

        public void markAsStopped()
      • getPaths

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPaths()
        Specified by:
        getPaths in class PhysicalPlan
      • serialize

        public void serialize​(java.io.DataOutputStream stream)
                       throws java.io.IOException
        Description copied from class: PhysicalPlan
        Serialize the plan into the given buffer. All necessary fields will be serialized.
        Overrides:
        serialize in class PhysicalPlan
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
                         throws org.apache.iotdb.commons.exception.IllegalPathException
        Description copied from class: PhysicalPlan
        Deserialize the plan from the given buffer.
        Overrides:
        deserialize in class PhysicalPlan
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • getAuthPaths

        public java.util.List<? extends org.apache.iotdb.commons.path.PartialPath> getAuthPaths()
        Description copied from class: PhysicalPlan
        Used to check whether a user has the permission to execute the plan with these paths.
        Overrides:
        getAuthPaths in class PhysicalPlan