public class EventDaemon
extends java.lang.Object
Constructor and Description |
---|
EventDaemon(java.lang.String sPropertiesFilePath)
Create new EventDaemon
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Cancel all event handlers and close connection pools
|
void |
resume(int iDomainId,
java.lang.String sEventId) |
void |
run()
Read fixed rate events from k_events table and schedule triggering of all of them
|
void |
suspend(int iDomainId,
java.lang.String sEventId) |
void |
triggerAtFixedSeconds(Event oEvnt,
int initialDelay,
int intervalDelay)
Trigger an event over and over after a given delay in seconds
|
public EventDaemon(java.lang.String sPropertiesFilePath) throws java.io.FileNotFoundException, java.io.IOException
Create new EventDaemon
sPropertiesFilePath
- Full path to hipergate.cnf file.java.lang.ClassNotFoundException
java.io.FileNotFoundException
java.io.IOException
java.sql.SQLException
public void close()
Cancel all event handlers and close connection pools
public void run()
Read fixed rate events from k_events table and schedule triggering of all of them
public void suspend(int iDomainId, java.lang.String sEventId)
public void resume(int iDomainId, java.lang.String sEventId)
public void triggerAtFixedSeconds(Event oEvnt, int initialDelay, int intervalDelay)
Trigger an event over and over after a given delay in seconds
oEvnt
- com.knowgate.scheduler.Event subclassinitialDelay
- Initial delay for first execution in secondsintervalDelay
- Delay between executions in seconds