com.apama.sor.utils
Event Auditor
Event helper to allow auditing or orders to a file.
-
Since:
- CMF 2.1.0
Action Summary |
void |
auditNewOrder(string flagSuccess, float currentMidDiff, string State, com.apama.oms.NewOrder newOrder)
Audit a new order. |
string |
DEFAULT_TEMPLATE(string directory, float time)
|
void |
doAudit(string flagSuccess, string market, float currentMidDiff, string childOrderId, string State, string message)
Perform an audit. |
void |
doAuditMessage(string flagSuccess, string market, string message)
Perform an audit. |
void |
initialise(string name, string directory)
Initialise the audit event helper. Invocation of this action causes creation of the import logging plugin. |
void |
setPrepender(string prepender)
Allows setting of the pre-pender before or after initialisation. |
timeFormat
TimeFormatPlugin timeFormat
AUD_FAILURE
constant string AUD_FAILURE := "[FAIL],"
AUD_PENDING
constant string AUD_PENDING := "[PENDING],"
AUD_SUCCESS
constant string AUD_SUCCESS := "[SUCCESS],"
auditLog
com.apama.correlator.Logging auditLog
constants
com.apama.sor.Constants constants
name
wildcard string name
prepender
wildcard string prepender
auditNewOrder
void auditNewOrder(string flagSuccess, float currentMidDiff, string State, com.apama.oms.NewOrder newOrder)
Audit a new order.
-
Parameters:
-
flagSuccess -
-
currentMidDiff -
-
State -
-
newOrder -
DEFAULT_TEMPLATE
string DEFAULT_TEMPLATE(string directory, float time)
-
Parameters:
-
directory
-
time
doAudit
void doAudit(string flagSuccess, string market, float currentMidDiff, string childOrderId, string State, string message)
Perform an audit.
-
Parameters:
-
flagSuccess -
-
market -
-
currentMidDiff -
-
childOrderId -
-
State -
-
message -
doAuditMessage
void doAuditMessage(string flagSuccess, string market, string message)
Perform an audit.
-
Parameters:
-
flagSuccess -
-
market -
-
message -
initialise
void initialise(string name, string directory)
Initialise the audit event helper. Invocation of this action causes creation of the import logging plugin.
-
Parameters:
-
name - The logical name of the instance used in construction of the logfile name
-
directory - The directory the audit file should be created in
setPrepender
void setPrepender(string prepender)
Allows setting of the pre-pender before or after initialisation.
-
Parameters:
-
prepender - The string prepender to use