com.apama.sor.utils
Event Auditor


Event helper to allow auditing or orders to a file.
Since:
CMF 2.1.0

Import Summary
 TimeFormatPlugintimeFormat
 
Constant Summary
 constant stringAUD_FAILURE := "[FAIL],"
 constant stringAUD_PENDING := "[PENDING],"
 constant stringAUD_SUCCESS := "[SUCCESS],"
 
Member Summary
 com.apama.correlator.LoggingauditLog
 wildcard stringname
 wildcard stringprepender
 com.apama.sor.Constantsconstants
 
Action Summary
 voidauditNewOrder(string flagSuccess, float currentMidDiff, string State, com.apama.oms.NewOrder newOrder)

Audit a new order.
 stringDEFAULT_TEMPLATE(string directory, float time)
 voiddoAudit(string flagSuccess, string market, float currentMidDiff, string childOrderId, string State, string message)

Perform an audit.
 voiddoAuditMessage(string flagSuccess, string market, string message)

Perform an audit.
 voidinitialise(string name, string directory)

Initialise the audit event helper. Invocation of this action causes creation of the import logging plugin.
 voidsetPrepender(string prepender)

Allows setting of the pre-pender before or after initialisation.
 
Import Detail

timeFormat

TimeFormatPlugin timeFormat

Constant Detail

AUD_FAILURE

constant string AUD_FAILURE := "[FAIL],"

AUD_PENDING

constant string AUD_PENDING := "[PENDING],"

AUD_SUCCESS

constant string AUD_SUCCESS := "[SUCCESS],"

Member Detail

auditLog

com.apama.correlator.Logging auditLog

constants

com.apama.sor.Constants constants

name

wildcard string name

prepender

wildcard string prepender

Action Detail

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