|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.trigger.TriggerServer
This class implements a trigger server. The trigger server maintains a list of trigger events and executes actions for those events as they occur.
Inner Class Summary | |
class |
TriggerServer.TcpMainThread
This class implements the tcp main thread. |
class |
TriggerServer.TriggerThread
This class implements the thread that triggers events. |
Method Summary | |
java.util.Date |
getNextTriggerDate()
Gets the date of the next trigger. |
int |
getTriggerCount()
Gets the number of triggers in the server. |
java.lang.Object |
handleRequest(java.lang.Object request,
long lTimestamp)
Handles requests. |
static TriggerServer |
i()
Gets the instance of this class. |
static void |
main(java.lang.String[] args)
Main. |
void |
start()
|
boolean |
started()
Checks for if trigger server is started. |
void |
stop()
Stops main server loop. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TriggerServer i() throws TriggerSchedulerException
TriggerSchedulerException
- if can not retrieve an instance of this classpublic java.lang.Object handleRequest(java.lang.Object request, long lTimestamp) throws TriggerSchedulerException
request
- the request to handlelTimeStamp
- timestamp of when request was sentTriggerSchedulerException
- if request is not handled correctlypublic boolean started()
public int getTriggerCount()
public java.util.Date getNextTriggerDate()
null
if the server is not startedpublic void start() throws TriggerSchedulerException
public void stop()
public static void main(java.lang.String[] args)
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |