Class TriggerInfo
java.lang.Object
org.apache.iotdb.confignode.persistence.TriggerInfo
- All Implemented Interfaces:
SnapshotProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTriggerInTable(AddTriggerInTablePlan physicalPlan) voidclear()deleteTriggerInTable(DeleteTriggerInTablePlan physicalPlan) voiddeserializeExistedJarToMD5(InputStream inputStream) getTriggerJar(GetTriggerJarPlan physicalPlan) booleanneedToSaveJar(String jarName) voidprocessLoadSnapshot(File snapshotDir) booleanprocessTakeSnapshot(File snapshotDir) voidvoidserializeExistedJarToMD5(OutputStream outputStream) updateTriggerLocation(UpdateTriggerLocationPlan physicalPlan) updateTriggerStateInTable(UpdateTriggerStateInTablePlan physicalPlan) voidValidate whether the trigger can be dropped.voidValidate whether the trigger can be created.
-
Constructor Details
-
TriggerInfo
- Throws:
IOException
-
-
Method Details
-
acquireTriggerTableLock
public void acquireTriggerTableLock() -
releaseTriggerTableLock
public void releaseTriggerTableLock() -
validate
public void validate(String triggerName, String jarName, String jarMD5) throws TriggerManagementException Validate whether the trigger can be created.- Throws:
TriggerManagementException
-
validate
Validate whether the trigger can be dropped.- Throws:
TriggerManagementException
-
needToSaveJar
-
addTriggerInTable
-
deleteTriggerInTable
-
updateTriggerStateInTable
-
getTriggerTable
-
getTriggerLocation
-
getTriggerJar
-
getTransferringTriggers
-
updateTriggersOnTransferNodes
-
updateTriggerLocation
-
getRawTriggerTable
-
getRawExistedJarToMD5
-
processTakeSnapshot
public boolean processTakeSnapshot(File snapshotDir) throws org.apache.thrift.TException, IOException - Specified by:
processTakeSnapshotin interfaceSnapshotProcessor- Throws:
org.apache.thrift.TExceptionIOException
-
processLoadSnapshot
- Specified by:
processLoadSnapshotin interfaceSnapshotProcessor- Throws:
org.apache.thrift.TExceptionIOException
-
serializeExistedJarToMD5
- Throws:
IOException
-
deserializeExistedJarToMD5
- Throws:
IOException
-
clear
public void clear()
-