Class TriggerExecutor
- java.lang.Object
-
- org.apache.iotdb.db.engine.trigger.executor.TriggerExecutor
-
public class TriggerExecutor extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TriggerExecutor(TriggerRegistrationInformation registrationInformation, org.apache.iotdb.commons.trigger.service.TriggerClassLoader classLoader, IMNode imNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireIfActivated(TriggerEvent event, long[] timestamps, java.lang.Object values, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType seriesDataType, org.apache.iotdb.commons.path.PartialPath path)voidfireIfActivated(TriggerEvent event, long timestamp, java.lang.Object value, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType seriesDataType, org.apache.iotdb.commons.path.PartialPath path)IMNodegetIMNode()TriggerRegistrationInformationgetRegistrationInformation()TriggergetTrigger()voidonCreate()voidonDrop()voidonStart()voidonStop()
-
-
-
Constructor Detail
-
TriggerExecutor
public TriggerExecutor(TriggerRegistrationInformation registrationInformation, org.apache.iotdb.commons.trigger.service.TriggerClassLoader classLoader, IMNode imNode) throws TriggerManagementException
- Throws:
TriggerManagementException
-
-
Method Detail
-
onCreate
public void onCreate() throws TriggerExecutionException- Throws:
TriggerExecutionException
-
onDrop
public void onDrop() throws TriggerExecutionException- Throws:
TriggerExecutionException
-
onStart
public void onStart() throws TriggerExecutionException- Throws:
TriggerExecutionException
-
onStop
public void onStop() throws TriggerExecutionException- Throws:
TriggerExecutionException
-
fireIfActivated
public void fireIfActivated(TriggerEvent event, long timestamp, java.lang.Object value, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType seriesDataType, org.apache.iotdb.commons.path.PartialPath path) throws TriggerExecutionException
- Throws:
TriggerExecutionException
-
fireIfActivated
public void fireIfActivated(TriggerEvent event, long[] timestamps, java.lang.Object values, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType seriesDataType, org.apache.iotdb.commons.path.PartialPath path) throws TriggerExecutionException
- Throws:
TriggerExecutionException
-
getRegistrationInformation
public TriggerRegistrationInformation getRegistrationInformation()
-
getIMNode
public IMNode getIMNode()
-
getTrigger
public Trigger getTrigger()
-
-