@StableMinor(version="12.3", sinceVersion="11.0") public interface IMonitorManager
Each monitor obtained will generate one monitoring entry. The monitoring data will be saved
in the default big data repository
.
IMonitor
Modifier and Type | Method and Description |
---|---|
String |
getCurrentMonitorUserId()
Returns the identifier of the current monitor user.
|
IMonitorEvent |
getEvent(String eventId)
Returns an unmodifiable event.
|
IMonitorField |
getField(String fieldId)
Returns an unmodifiable field.
|
IMonitorFieldGroup |
getFieldGroup(String fieldGroupId)
Returns an unmodifiable field group.
|
IMonitorContext |
getMonitorContext()
Returns the current monitor context.
|
IMonitor |
monitor(String eventId)
Returns the monitor for an event with the given identifier.
|
IMonitor |
monitor(String eventId,
ITransaction transaction)
Returns the monitor for an event with the given identifier.
|
IMonitor monitor(String eventId) throws PortalException
The call to this method is equivalent of
monitor(eventId, null)
.
eventId
- the event identifier.NullPointerException
- if the given eventId is null
or empty.PortalException
IMonitor
,
monitor(String, ITransaction)
IMonitor monitor(String eventId, ITransaction transaction) throws PortalException
If no event with the given identifier exists then a warn message will be generated in the LumisXP log.
If no event with the given identifier exists or if the event is disabled then a dummy monitor object will be
returned (a IMonitor
implementation that will not persist any data).
If the given transaction is not null
, the monitoring data will be saved after the transaction has
terminated (either by a successful commit or by a rollback) and the monitor has been
closed
.
If the given transaction is null
, the monitoring data will be saved when the monitor has been
closed
.
If the given transaction is not null
, values for transaction result
fields will provided automatically if the event has any of those fields.
eventId
- the event identifier.transaction
- the transaction the given monitor will be bound to.NullPointerException
- if the given eventId is null
or empty.PortalException
IMonitor
IMonitorContext getMonitorContext()
IMonitorEvent getEvent(String eventId) throws PortalException
eventId
- the event's identifier.PortalObjectNotFoundException
- if no event with such id was found.PortalException
IMonitorField getField(String fieldId) throws PortalException
fieldId
- the field's identifier.PortalObjectNotFoundException
- if no field with such id was found.PortalException
IMonitorFieldGroup getFieldGroup(String fieldGroupId) throws PortalException
fieldGroupId
- the field group's identifier.PortalObjectNotFoundException
- if no such field group was found.PortalException
String getCurrentMonitorUserId()
null
if it is not set.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.