Project

General

Profile

User Guide - BatchesDaemon » History » Version 5

chin-yeh, 04/22/2011 03:51 PM

1 3 chin-yeh
{{toc}}
2
3 1 chin-yeh
h1. User Guide - Batches/Daemon
4 2 chin-yeh
5
h2. PendingEventProcessor
6
7
Retry those events which has the *PENDING* status.
8
9 4 chin-yeh
*Files:*
10
<pre>
11 5 chin-yeh
/usr/ecosway/daemon/qconnector/classes/com/ecosway/ecosadaptor/daemon/PendingEventProcessor.class
12 4 chin-yeh
/usr/ecosway/daemon/qconnector/config/PendingEventProcessor-context.xml
13
/usr/ecosway/daemon/qconnector/config/PendingEventProcessor.properties
14
</pre>
15
16 2 chin-yeh
*How To Use*:
17 1 chin-yeh
* execute the shell script:
18 5 chin-yeh
>/usr/ecosway/daemon/qconnector/scripts/pending_event_processor.sh *parameter1*
19 2 chin-yeh
20
>*parameter1* - *hour* - indicate x number of hours *before* if it is negative values, else x number of hours *after*
21
22
h2. EventReport
23
24
Generate report based on the status. If the report is generated successfully, it will send the report to the recipient(s) which stated in the file:
25
<pre>
26 4 chin-yeh
/usr/ecosway/daemon/qconnector/config/EventReport.properties
27
</pre>
28
29
*Files:*
30 1 chin-yeh
<pre>
31 5 chin-yeh
/usr/ecosway/daemon/qconnector/classes/com/ecosway/ecosadaptor/daemon/EventReport.class
32 4 chin-yeh
/usr/ecosway/daemon/qconnector/config/EventReport-context.xml
33 2 chin-yeh
/usr/ecosway/daemon/qconnector/config/EventReport.properties
34
</pre>
35
36 1 chin-yeh
*How To Use*:
37 2 chin-yeh
* execute the shell script:
38 5 chin-yeh
>/usr/ecosway/daemon/qconnector/scripts/event_report.sh *parameter1* *parameter2*
39 2 chin-yeh
40
> *parameter1* - *status* - generate report based on the status, e.g. INCOMPLETE, PENDING, SYNCED
41
42
> *parameter2* (optional) - *report date* (yyyy-MM-dd) - if not provided, use yesterday's date as report date
43
44
*Report output folder:*
45
<pre>
46
/usr/ecosway/daemon/qconnector/reports
47
</pre>