@UESComponent public interface UESProcessMonitor
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
MONITOR_DISABLED
Name of parameter used for disabling of process monitoring. 
 | 
static int | 
UNKNOWN
Constant used to define unknown units (amount of work). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
beginProcess(int aTotalUnits,
Invocation of method marks process as started. 
 | 
void | 
done(UESExitState aExitState,
Invocation of method marks process as done. 
 | 
void | 
notifyInfo(MessageCode aMsgCode,
Invokes information notification. 
 | 
void | 
notifyWarning(MessageCode aMsgCode,
Invokes warning notification. 
 | 
void | 
progress(int aUnits,
Informs about process progress (e.g. inside loops or after block of code performing particular operation). 
 | 
void | 
setProperties(java.util.Properties aProperties)
Provides ability to configure process monitor and all plugged monitor providers using given properties. 
 | 
aProperties - Process monitor configurationUESProcessMonitor.done(cz.ues.platform.commons.pcb.monitor.UESExitState, cz.ues.platform.essentials.message.MessageCode, java.lang.String, java.lang.Exception, java.lang.Object...)
 which should be finally invoked. Once "done" is called, it is not possible to call "beginProcess"
 once more in same physical process.aTotalUnits - Total units (amount of work) to be done.aMsgCode - Code of message used for notificationaMsg - Notification messageaParams - Parameters of notification messageaUnits - Increment of processed units (units processed from beginning in case of first call
        of progress method, or from last call of progress method)aMsgCode - Code of message used for notificationaMsg - Notification messageaParams - Parameters of notification messageaMsgCode - Code of message used for notificationaMsg - Notification messageaParams - Parameters of notification messageaMsgCode - Code of message used for notificationaMsg - Notification messageaParams - Parameters of notification messageaExitState - State representing result of finished processaMsgCode - Code of message used for notificationaMsg - Notification messageaException - Instance of exception which caused process to be finished in FAILED or WARNING state.
        Parameter may be null which is also expected (not required) value for OK exit state.aParams - Parameters of notification message