|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMonitorManager
Provides operations and access to the portal monitoring framework.
When obtaining a monitor, the current state of the IMonitorContext
may affect the monitor returned:
IMonitor
Method Summary | |
---|---|
void |
addAggregationType(SessionConfig sessionConfig,
IAggregationType aggregationType,
ITransaction transaction)
Adds a aggregationType to persistence. |
void |
addCategory(SessionConfig sessionConfig,
ICategory category,
ITransaction transaction)
Adds a category to persistence. |
void |
addEvent(SessionConfig sessionConfig,
IEvent event,
ITransaction transaction)
Adds a event to persistence. |
void |
addMeasureType(SessionConfig sessionConfig,
IMeasureType measureType,
ITransaction transaction)
Adds a measureType to persistence. |
boolean |
consolidateCollectedMeasures()
Consolidate collected measures into its final persistence. |
IAggregationType |
createAggregationType()
Creates a aggregationType transient instance. |
ICategory |
createCategory()
Creates a category transient instance. |
IEvent |
createEvent()
Creates a event transient instance. |
IMeasureType |
createMeasureType()
Creates a measureType transient instance. |
void |
deleteAggregationType(SessionConfig sessionConfig,
IAggregationType aggregationType,
ITransaction transaction)
Deletes a aggregationType from persistence. |
void |
deleteCategory(SessionConfig sessionConfig,
ICategory category,
ITransaction transaction)
Deletes a category from persistence. |
void |
deleteEvent(SessionConfig sessionConfig,
IEvent event,
ITransaction transaction)
Deletes a event from persistence. |
void |
deleteMeasureType(SessionConfig sessionConfig,
IMeasureType measureType,
ITransaction transaction)
Deletes a measureType from persistence. |
IAggregationType |
getAggregationType(SessionConfig sessionConfig,
String aggregationTypeId,
ITransaction transaction)
Returns a persistent aggregationType instance. |
IAggregationType |
getAggregationTypeByKey(SessionConfig sessionConfig,
String aggregationTypeKey,
ITransaction transaction)
Returns a persistent aggregationType instance, finding it by the aggregationTypeKey. |
ICategory |
getCategory(SessionConfig sessionConfig,
String categoryId,
ITransaction transaction)
Returns a persistent category instance. |
IEvent |
getEvent(SessionConfig sessionConfig,
String eventId,
ITransaction transaction)
Returns a persistent event instance. |
IEvent |
getEventByKey(SessionConfig sessionConfig,
String eventKey,
ITransaction transaction)
Returns a persistent event instance, finding it by the eventKey. |
IMeasureType |
getMeasureType(SessionConfig sessionConfig,
String measureTypeId,
ITransaction transaction)
Returns a persistent measureType instance. |
IMeasureType |
getMeasureTypeByKey(SessionConfig sessionConfig,
String measureTypeKey,
ITransaction transaction)
Returns a persistent measureType instance, finding it by the measureTypeKey. |
IMonitor |
getMonitor(String eventKey,
Map<String,String> aggregationValues)
Returns the monitor for an event with the given aggregation values. |
IMonitor |
getMonitor(String eventKey,
Map<String,String> aggregationValues,
long eventDateTimeMillis)
Returns the monitor for an event with the given aggregation values. |
IMonitorContext |
getMonitorContext()
Returns the current monitor context. |
void |
initializeMonitoringData(ITransaction transaction)
Method called during portal database initialization to populate the monitoring related data. |
Method Detail |
---|
IMonitor getMonitor(String eventKey, Map<String,String> aggregationValues) throws PortalException
eventKey
- the event's key.aggregationValues
- a map with the aggregation values for the
event the monitor will collect data for. The map key is the aggregation
type key and the value is its corresponding value.
PortalException
IMonitorManager
IMonitor getMonitor(String eventKey, Map<String,String> aggregationValues, long eventDateTimeMillis) throws PortalException
eventKey
- the event's key.aggregationValues
- a map with the aggregation values for the
event the monitor will collect data for. The map key is the aggregation
type key and the value is its corresponding value.eventDateTimeMillis
- the instant of the event, as the number of
milliseconds since midnight January 1, 1970 GMT.
PortalException
IMonitorManager
void initializeMonitoringData(ITransaction transaction) throws PortalException
transaction
- the transaction for persistence access.
PortalException
boolean consolidateCollectedMeasures() throws PortalException
PortalException
IMonitorContext getMonitorContext()
ICategory createCategory() throws PortalException
PortalException
addCategory(SessionConfig, ICategory, ITransaction)
void addCategory(SessionConfig sessionConfig, ICategory category, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.category
- the transient category instance to be persisted.transaction
- the transaction for persistence access.
PortalException
ICategory getCategory(SessionConfig sessionConfig, String categoryId, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.categoryId
- the category's identifier.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no category with such id was found.
PortalException
void deleteCategory(SessionConfig sessionConfig, ICategory category, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.category
- the persistent category instance to be deleted.transaction
- the transaction for persistence access.
PortalException
IEvent createEvent() throws PortalException
PortalException
addEvent(SessionConfig, IEvent, ITransaction)
void addEvent(SessionConfig sessionConfig, IEvent event, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.event
- the transient event instance to be persisted.transaction
- the transaction for persistence access.
PortalException
IEvent getEvent(SessionConfig sessionConfig, String eventId, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.eventId
- the event's identifier.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no event with such id was found.
PortalException
void deleteEvent(SessionConfig sessionConfig, IEvent event, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.event
- the persistent event instance to be deleted.transaction
- the transaction for persistence access.
PortalException
IEvent getEventByKey(SessionConfig sessionConfig, String eventKey, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.eventKey
- the event's key.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no event with such key was found.
PortalException
IMeasureType createMeasureType() throws PortalException
PortalException
addMeasureType(SessionConfig, IMeasureType, ITransaction)
void addMeasureType(SessionConfig sessionConfig, IMeasureType measureType, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.measureType
- the transient measureType instance to be persisted.transaction
- the transaction for persistence access.
PortalException
IMeasureType getMeasureType(SessionConfig sessionConfig, String measureTypeId, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.measureTypeId
- the measureType's identifier.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no measureType with such id was found.
PortalException
void deleteMeasureType(SessionConfig sessionConfig, IMeasureType measureType, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.measureType
- the persistent measureType instance to be deleted.transaction
- the transaction for persistence access.
PortalException
IMeasureType getMeasureTypeByKey(SessionConfig sessionConfig, String measureTypeKey, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.measureTypeKey
- the measureType's key.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no measureType with such key was found.
PortalException
IAggregationType createAggregationType() throws PortalException
PortalException
addAggregationType(SessionConfig, IAggregationType, ITransaction)
void addAggregationType(SessionConfig sessionConfig, IAggregationType aggregationType, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.aggregationType
- the transient aggregationType instance to be persisted.transaction
- the transaction for persistence access.
PortalException
IAggregationType getAggregationType(SessionConfig sessionConfig, String aggregationTypeId, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.aggregationTypeId
- the aggregationType's identifier.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no aggregationType with such id was found.
PortalException
void deleteAggregationType(SessionConfig sessionConfig, IAggregationType aggregationType, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.aggregationType
- the persistent aggregationType instance to be deleted.transaction
- the transaction for persistence access.
PortalException
IAggregationType getAggregationTypeByKey(SessionConfig sessionConfig, String aggregationTypeKey, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.aggregationTypeKey
- the aggregationType's key.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no aggregationType with such key was found.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |