类 TriggerInfo
- java.lang.Object
-
- org.apache.iotdb.confignode.persistence.TriggerInfo
-
- 所有已实现的接口:
org.apache.iotdb.commons.snapshot.SnapshotProcessor
public class TriggerInfo extends java.lang.Object implements org.apache.iotdb.commons.snapshot.SnapshotProcessor
-
-
构造器概要
构造器 构造器 说明 TriggerInfo()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidacquireTriggerTableLock()org.apache.iotdb.common.rpc.thrift.TSStatusaddTriggerInTable(AddTriggerInTablePlan physicalPlan)voidclear()org.apache.iotdb.common.rpc.thrift.TSStatusdeleteTriggerInTable(DeleteTriggerInTablePlan physicalPlan)voiddeserializeExistedJarToMD5(java.io.InputStream inputStream)java.util.Map<java.lang.String,java.lang.String>getRawExistedJarToMD5()java.util.Map<java.lang.String,org.apache.iotdb.commons.trigger.TriggerInformation>getRawTriggerTable()TransferringTriggersRespgetTransferringTriggers()JarRespgetTriggerJar(GetTriggerJarPlan physicalPlan)org.apache.iotdb.consensus.common.DataSetgetTriggerLocation(GetTriggerLocationPlan req)TriggerTableRespgetTriggerTable(GetTriggerTablePlan req)booleanneedToSaveJar(java.lang.String jarName)voidprocessLoadSnapshot(java.io.File snapshotDir)booleanprocessTakeSnapshot(java.io.File snapshotDir)voidreleaseTriggerTableLock()voidserializeExistedJarToMD5(java.io.OutputStream outputStream)org.apache.iotdb.common.rpc.thrift.TSStatusupdateTriggerLocation(UpdateTriggerLocationPlan physicalPlan)org.apache.iotdb.common.rpc.thrift.TSStatusupdateTriggersOnTransferNodes(UpdateTriggersOnTransferNodesPlan physicalPlan)org.apache.iotdb.common.rpc.thrift.TSStatusupdateTriggerStateInTable(UpdateTriggerStateInTablePlan physicalPlan)voidvalidate(java.lang.String triggerName)Validate whether the trigger can be droppedvoidvalidate(java.lang.String triggerName, java.lang.String jarName, java.lang.String jarMD5)Validate whether the trigger can be created
-
-
-
方法详细资料
-
acquireTriggerTableLock
public void acquireTriggerTableLock()
-
releaseTriggerTableLock
public void releaseTriggerTableLock()
-
validate
public void validate(java.lang.String triggerName, java.lang.String jarName, java.lang.String jarMD5)Validate whether the trigger can be created
-
validate
public void validate(java.lang.String triggerName)
Validate whether the trigger can be dropped
-
needToSaveJar
public boolean needToSaveJar(java.lang.String jarName)
-
addTriggerInTable
public org.apache.iotdb.common.rpc.thrift.TSStatus addTriggerInTable(AddTriggerInTablePlan physicalPlan)
-
deleteTriggerInTable
public org.apache.iotdb.common.rpc.thrift.TSStatus deleteTriggerInTable(DeleteTriggerInTablePlan physicalPlan)
-
updateTriggerStateInTable
public org.apache.iotdb.common.rpc.thrift.TSStatus updateTriggerStateInTable(UpdateTriggerStateInTablePlan physicalPlan)
-
getTriggerTable
public TriggerTableResp getTriggerTable(GetTriggerTablePlan req)
-
getTriggerLocation
public org.apache.iotdb.consensus.common.DataSet getTriggerLocation(GetTriggerLocationPlan req)
-
getTriggerJar
public JarResp getTriggerJar(GetTriggerJarPlan physicalPlan)
-
getTransferringTriggers
public TransferringTriggersResp getTransferringTriggers()
-
updateTriggersOnTransferNodes
public org.apache.iotdb.common.rpc.thrift.TSStatus updateTriggersOnTransferNodes(UpdateTriggersOnTransferNodesPlan physicalPlan)
-
updateTriggerLocation
public org.apache.iotdb.common.rpc.thrift.TSStatus updateTriggerLocation(UpdateTriggerLocationPlan physicalPlan)
-
getRawTriggerTable
public java.util.Map<java.lang.String,org.apache.iotdb.commons.trigger.TriggerInformation> getRawTriggerTable()
-
getRawExistedJarToMD5
public java.util.Map<java.lang.String,java.lang.String> getRawExistedJarToMD5()
-
processTakeSnapshot
public boolean processTakeSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOException- 指定者:
processTakeSnapshot在接口中org.apache.iotdb.commons.snapshot.SnapshotProcessor- 抛出:
org.apache.thrift.TExceptionjava.io.IOException
-
processLoadSnapshot
public void processLoadSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOException- 指定者:
processLoadSnapshot在接口中org.apache.iotdb.commons.snapshot.SnapshotProcessor- 抛出:
org.apache.thrift.TExceptionjava.io.IOException
-
serializeExistedJarToMD5
public void serializeExistedJarToMD5(java.io.OutputStream outputStream) throws java.io.IOException- 抛出:
java.io.IOException
-
deserializeExistedJarToMD5
public void deserializeExistedJarToMD5(java.io.InputStream inputStream) throws java.io.IOException- 抛出:
java.io.IOException
-
clear
public void clear()
-
-