|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.monitor.DummyMonitorManager lumis.portal.monitor.impl.MonitorManager
public class MonitorManager
Implementation for the IMonitorManager
interface.
Constructor Summary | |
---|---|
MonitorManager()
|
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. |
lumis.portal.monitor.impl.MonitorContext |
getMonitorContext()
Returns the current monitor context. |
void |
initializeMonitoringData(ITransaction transaction)
Method called during portal database initialization to populate the monitoring related data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonitorManager()
Method Detail |
---|
public IMonitor getMonitor(String eventKey, Map<String,String> aggregationValues) throws PortalException
IMonitorManager
getMonitor
in interface IMonitorManager
getMonitor
in class DummyMonitorManager
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
public IMonitor getMonitor(String eventKey, Map<String,String> aggregationValues, long eventDateTimeMillis) throws PortalException
IMonitorManager
getMonitor
in interface IMonitorManager
getMonitor
in class DummyMonitorManager
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
public void initializeMonitoringData(ITransaction transaction) throws PortalException
IMonitorManager
initializeMonitoringData
in interface IMonitorManager
initializeMonitoringData
in class DummyMonitorManager
transaction
- the transaction for persistence access.
PortalException
public lumis.portal.monitor.impl.MonitorContext getMonitorContext()
IMonitorManager
getMonitorContext
in interface IMonitorManager
getMonitorContext
in class DummyMonitorManager
public boolean consolidateCollectedMeasures() throws PortalException
IMonitorManager
consolidateCollectedMeasures
in interface IMonitorManager
consolidateCollectedMeasures
in class DummyMonitorManager
PortalException
public ICategory createCategory() throws PortalException
IMonitorManager
createCategory
in interface IMonitorManager
createCategory
in class DummyMonitorManager
PortalException
IMonitorManager.addCategory(SessionConfig, ICategory, ITransaction)
public ICategory getCategory(SessionConfig sessionConfig, String categoryId, ITransaction transaction) throws PortalException
IMonitorManager
getCategory
in interface IMonitorManager
getCategory
in class DummyMonitorManager
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
public void addCategory(SessionConfig sessionConfig, ICategory category, ITransaction transaction) throws PortalException
IMonitorManager
addCategory
in interface IMonitorManager
addCategory
in class DummyMonitorManager
sessionConfig
- the user session information.category
- the transient category instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public void deleteCategory(SessionConfig sessionConfig, ICategory category, ITransaction transaction) throws PortalException
IMonitorManager
deleteCategory
in interface IMonitorManager
deleteCategory
in class DummyMonitorManager
sessionConfig
- the user session information.category
- the persistent category instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public IEvent createEvent() throws PortalException
IMonitorManager
createEvent
in interface IMonitorManager
createEvent
in class DummyMonitorManager
PortalException
IMonitorManager.addEvent(SessionConfig, IEvent, ITransaction)
public IEvent getEvent(SessionConfig sessionConfig, String eventId, ITransaction transaction) throws PortalException
IMonitorManager
getEvent
in interface IMonitorManager
getEvent
in class DummyMonitorManager
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
public void addEvent(SessionConfig sessionConfig, IEvent event, ITransaction transaction) throws PortalException
IMonitorManager
addEvent
in interface IMonitorManager
addEvent
in class DummyMonitorManager
sessionConfig
- the user session information.event
- the transient event instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public void deleteEvent(SessionConfig sessionConfig, IEvent event, ITransaction transaction) throws PortalException
IMonitorManager
deleteEvent
in interface IMonitorManager
deleteEvent
in class DummyMonitorManager
sessionConfig
- the user session information.event
- the persistent event instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public IEvent getEventByKey(SessionConfig sessionConfig, String eventKey, ITransaction transaction) throws PortalException
IMonitorManager
getEventByKey
in interface IMonitorManager
getEventByKey
in class DummyMonitorManager
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
public IMeasureType createMeasureType() throws PortalException
IMonitorManager
createMeasureType
in interface IMonitorManager
createMeasureType
in class DummyMonitorManager
PortalException
IMonitorManager.addMeasureType(SessionConfig, IMeasureType, ITransaction)
public IMeasureType getMeasureType(SessionConfig sessionConfig, String measureTypeId, ITransaction transaction) throws PortalException
IMonitorManager
getMeasureType
in interface IMonitorManager
getMeasureType
in class DummyMonitorManager
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
public void addMeasureType(SessionConfig sessionConfig, IMeasureType measureType, ITransaction transaction) throws PortalException
IMonitorManager
addMeasureType
in interface IMonitorManager
addMeasureType
in class DummyMonitorManager
sessionConfig
- the user session information.measureType
- the transient measureType instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public void deleteMeasureType(SessionConfig sessionConfig, IMeasureType measureType, ITransaction transaction) throws PortalException
IMonitorManager
deleteMeasureType
in interface IMonitorManager
deleteMeasureType
in class DummyMonitorManager
sessionConfig
- the user session information.measureType
- the persistent measureType instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public IMeasureType getMeasureTypeByKey(SessionConfig sessionConfig, String measureTypeKey, ITransaction transaction) throws PortalException
IMonitorManager
getMeasureTypeByKey
in interface IMonitorManager
getMeasureTypeByKey
in class DummyMonitorManager
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
public IAggregationType createAggregationType() throws PortalException
IMonitorManager
createAggregationType
in interface IMonitorManager
createAggregationType
in class DummyMonitorManager
PortalException
IMonitorManager.addAggregationType(SessionConfig, IAggregationType, ITransaction)
public IAggregationType getAggregationType(SessionConfig sessionConfig, String aggregationTypeId, ITransaction transaction) throws PortalException
IMonitorManager
getAggregationType
in interface IMonitorManager
getAggregationType
in class DummyMonitorManager
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
public void addAggregationType(SessionConfig sessionConfig, IAggregationType aggregationType, ITransaction transaction) throws PortalException
IMonitorManager
addAggregationType
in interface IMonitorManager
addAggregationType
in class DummyMonitorManager
sessionConfig
- the user session information.aggregationType
- the transient aggregationType instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public void deleteAggregationType(SessionConfig sessionConfig, IAggregationType aggregationType, ITransaction transaction) throws PortalException
IMonitorManager
deleteAggregationType
in interface IMonitorManager
deleteAggregationType
in class DummyMonitorManager
sessionConfig
- the user session information.aggregationType
- the persistent aggregationType instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public IAggregationType getAggregationTypeByKey(SessionConfig sessionConfig, String aggregationTypeKey, ITransaction transaction) throws PortalException
IMonitorManager
getAggregationTypeByKey
in interface IMonitorManager
getAggregationTypeByKey
in class DummyMonitorManager
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 |