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()
Service
public java.lang.String getOperation()
Service
getOperation
in interface Service
public int getStatus()
Service
public int getDebugMode()
Service
getDebugMode
in interface Service
public void setDebugMode(int debug)
Service
setDebugMode
in interface Service
public int doRequest(Event req, int timeout)
public void acknowledge(long[] state) throws javax.jms.JMSException
javax.jms.JMSException
public void close()
Service
public void run()
run
in interface java.lang.Runnable
public 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