public class IfTttDaemon extends Object
Constructor and Description |
---|
IfTttDaemon(AlarmDao alarmDao,
org.springframework.transaction.support.TransactionOperations transactionOperations)
Constructor to create the daemon instance.
|
IfTttDaemon(AlarmDao alarmDao,
org.springframework.transaction.support.TransactionOperations transactionOperations,
File ifTttConfigFile)
Constructor to create the daemon instance with a given configuraton file
|
Modifier and Type | Method and Description |
---|---|
protected void |
fireIfTttTriggerSet(IfTttConfig ifTttConfig,
String filterKey,
String name,
VariableNameExpansion variableNameExpansion)
Executes a configured trigger set with a given String value.
|
void |
start()
Starts the daemon
|
void |
stop()
Stops the daemon
|
public IfTttDaemon(AlarmDao alarmDao, org.springframework.transaction.support.TransactionOperations transactionOperations, File ifTttConfigFile)
alarmDao
- the alarm dao instance to be usedtransactionOperations
- the transaction template to be usedifTttConfigFile
- the configuration file to be usedpublic IfTttDaemon(AlarmDao alarmDao, org.springframework.transaction.support.TransactionOperations transactionOperations)
alarmDao
- the alarm dao instance to be usedtransactionOperations
- the transaction template to be usedpublic void start()
public void stop()
protected void fireIfTttTriggerSet(IfTttConfig ifTttConfig, String filterKey, String name, VariableNameExpansion variableNameExpansion)
ifTttConfig
- the IFTTT config instancefilterKey
- the filtername
- the event namevariableNameExpansion
- the VariableNameExpansion to be usedCopyright © 2021. All rights reserved.