public class QFlow extends java.lang.Object implements Service, java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String[] |
reportStatusText |
DEBUG_CTRL, DEBUG_DIFF, DEBUG_INIT, DEBUG_LOAD, DEBUG_LOOP, DEBUG_NONE, DEBUG_REPT, DEBUG_TRAN, DEBUG_UPDT, SERVICE_CLOSED, SERVICE_DISABLED, SERVICE_PAUSE, SERVICE_READY, SERVICE_RETRYING, SERVICE_RUNNING, SERVICE_STANDBY, SERVICE_STOPPED, statusText| Constructor and Description |
|---|
QFlow(java.util.Map props)
Creates new QFlow
|
QFlow(java.util.Map props,
int debugForReload,
java.lang.String configFile)
Creates new QFlow
|
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(long[] state)
acknowledges the request msgs only
|
void |
close()
closes all opened resources
|
int |
doRequest(Event req,
int timeout)
It processes requests according to the preconfigured rulesets.
|
int |
getDebugMode()
returns the debug mode of the service
|
java.lang.String |
getName()
returns the name of the service
|
java.lang.String |
getOperation()
returns the string of the operation
|
static java.util.Map<java.lang.String,java.lang.Object> |
getReport(java.lang.String rptName)
returns a copy of the report
|
static java.lang.String[] |
getReportNames()
returns all the names of the reports
|
int |
getStatus()
returns the status of the service
|
static void |
initReport(java.lang.String rptName,
java.lang.String[] keyList,
java.util.Map latest,
int reportMode)
It is used for reporter to initialize the static report
|
static void |
main(java.lang.String[] args) |
void |
run() |
void |
setDebugMode(int debug)
sets the debug mode of the service
|
void |
start()
starts all threads and manages their states
|
public QFlow(java.util.Map props)
public QFlow(java.util.Map props,
int debugForReload,
java.lang.String configFile)
public java.lang.String getName()
Servicepublic java.lang.String getOperation()
ServicegetOperation in interface Servicepublic int getStatus()
Servicepublic int getDebugMode()
ServicegetDebugMode in interface Servicepublic void setDebugMode(int debug)
ServicesetDebugMode in interface Servicepublic int doRequest(Event req, int timeout)
public void acknowledge(long[] state)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void close()
Servicepublic void run()
run in interface java.lang.Runnablepublic static void initReport(java.lang.String rptName,
java.lang.String[] keyList,
java.util.Map latest,
int reportMode)
public static java.util.Map<java.lang.String,java.lang.Object> getReport(java.lang.String rptName)
public static java.lang.String[] getReportNames()
public void start()
public static void main(java.lang.String[] args)
args - the command line arguments