public class TransactionManager extends java.lang.Object implements SystemHandlerInterface, MessageResponseInterface, java.lang.Runnable, SecsEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
static int |
debugLevel
Our debug level.
|
static int |
queueTimeout
The amount of time (in seconds) the messages can sit in the queue before being timed-out.
|
Constructor and Description |
---|
TransactionManager(java.lang.String equipmentName) |
Modifier and Type | Method and Description |
---|---|
void |
deSpool()
Despool the event messages one at a time.
|
java.lang.String |
getEquipmentName() |
boolean |
processMessage(SecsTrigger imsg)
Check all incoming messages for primaries that require a response.
|
boolean |
responseReceived(int status,
SecsMsg primary,
SecsMsg response)
The MsgResponseInterface.
|
void |
run()
The watchdog code.
|
void |
secsEvent(SecsEvent theEvent)
Catch the secs events.
|
boolean |
verifyMessage(SecsMsg msg)
This method checks to see if the outgoing message is a primary.
|
public static final java.lang.String cvsRev
public static int debugLevel
public static int queueTimeout
public void deSpool()
public java.lang.String getEquipmentName()
public boolean processMessage(SecsTrigger imsg)
public boolean responseReceived(int status, SecsMsg primary, SecsMsg response)
responseReceived
in interface MessageResponseInterface
public void run()
run
in interface java.lang.Runnable
public void secsEvent(SecsEvent theEvent)
secsEvent
in interface SecsEventListener
theEvent
- the eventpublic boolean verifyMessage(SecsMsg msg) throws SecsException
verifyMessage
in interface SystemHandlerInterface
SecsException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.