@StableMinor(version="10.1", sinceVersion="9.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 |
---|---|
void |
addEvent(IMonitorEvent event)
Adds a event to persistence.
|
void |
addField(IMonitorField field)
Adds the given field to persistence.
|
IMonitorEvent |
createEvent(String eventId)
Creates a transient event instance.
|
IMonitorField |
createField(String fieldId)
Creates a transient field instance with the given identifier.
|
void |
deleteEvent(IMonitorEvent event)
Deletes a event from persistence.
|
void |
deleteField(IMonitorField field)
Deletes a field from persistence.
|
IMonitorEvent |
getEvent(String eventId)
Returns a persistent event instance.
|
IMonitorField |
getField(String fieldId)
Returns a persistent field instance.
|
IMonitorContext |
getMonitorContext()
Returns the current monitor context.
|
IMonitor |
monitor(String eventId)
Returns the monitor for an event which has a given identifier.
|
IMonitor |
monitor(String eventId,
ITransaction transaction)
Returns the monitor for an event which has a given identifier.
|
IMonitor monitor(String eventId) throws PortalException
getMonitor(eventId, null);
eventId
- the event identifier.PortalObjectNotFoundException
- if there's no such event.NullPointerException
- if the given eventId is null
or empty.PortalException
IMonitorManager
,
monitor(String, ITransaction)
IMonitor monitor(String eventId, ITransaction transaction) throws PortalException
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
, transaction monitoring will be recorded
automatically, if the event of the given identifier has transaction results fields
.
event
- the event.transaction
- the transaction the given monitor will be bound to.PortalObjectNotFoundException
- if there's no such event.NullPointerException
- if the given eventId is null
or empty.PortalException
IMonitorManager
IMonitorContext getMonitorContext()
IMonitorEvent createEvent(String eventId) throws PortalException
eventId
- the desired event identifier.PortalException
#addEvent(SessionConfig, IMonitorEvent, ITransaction)
void addEvent(IMonitorEvent event) throws PortalException
event
- the transient event instance to be persisted.PortalException
IMonitorEvent getEvent(String eventId) throws PortalException
eventId
- the event's identifier.PortalObjectNotFoundException
- if no event with such id was found.PortalException
void deleteEvent(IMonitorEvent event) throws PortalException
event
- the persistent event instance to be deleted.PortalException
IMonitorField createField(String fieldId) throws PortalException
fieldId
- the field identifier.PortalException
void addField(IMonitorField field) throws PortalException
field
- the field.PortalException
IMonitorField getField(String fieldId) throws PortalException
fieldId
- the field's identifier.PortalObjectNotFoundException
- if no field with such id was found.PortalException
void deleteField(IMonitorField field) throws PortalException
field
- the persistent field to be deleted.PortalException
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.