|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.monitor.DummyMonitorManager
public class DummyMonitorManager
An implementation of IMonitorManager
that does not monitor anything.
This is used when the portal does not have the monitoring module installed.
Constructor Summary | |
---|---|
DummyMonitorManager()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyMonitorManager()
Method Detail |
---|
public IMonitor getMonitor(String eventKey, Map<String,String> aggregationValues) throws PortalException
IMonitorManager
getMonitor
in interface IMonitorManager
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
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 IMonitorContext getMonitorContext()
IMonitorManager
getMonitorContext
in interface IMonitorManager
public void initializeMonitoringData(ITransaction transaction) throws PortalException
IMonitorManager
initializeMonitoringData
in interface IMonitorManager
transaction
- the transaction for persistence access.
PortalException
public boolean consolidateCollectedMeasures() throws PortalException
IMonitorManager
consolidateCollectedMeasures
in interface IMonitorManager
PortalException
public void addCategory(SessionConfig sessionConfig, ICategory category, ITransaction transaction) throws PortalException
IMonitorManager
addCategory
in interface IMonitorManager
sessionConfig
- the user session information.category
- the transient category instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public void addEvent(SessionConfig sessionConfig, IEvent event, ITransaction transaction) throws PortalException
IMonitorManager
addEvent
in interface IMonitorManager
sessionConfig
- the user session information.event
- the transient event instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public ICategory createCategory() throws PortalException
IMonitorManager
createCategory
in interface IMonitorManager
PortalException
IMonitorManager.addCategory(SessionConfig, ICategory, ITransaction)
public IEvent createEvent() throws PortalException
IMonitorManager
createEvent
in interface IMonitorManager
PortalException
IMonitorManager.addEvent(SessionConfig, IEvent, ITransaction)
public void deleteCategory(SessionConfig sessionConfig, ICategory category, ITransaction transaction) throws PortalException
IMonitorManager
deleteCategory
in interface IMonitorManager
sessionConfig
- the user session information.category
- the persistent category instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public void deleteEvent(SessionConfig sessionConfig, IEvent event, ITransaction transaction) throws PortalException
IMonitorManager
deleteEvent
in interface IMonitorManager
sessionConfig
- the user session information.event
- the persistent event instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public ICategory getCategory(SessionConfig sessionConfig, String categoryId, ITransaction transaction) throws PortalException
IMonitorManager
getCategory
in interface IMonitorManager
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 IEvent getEvent(SessionConfig sessionConfig, String eventId, ITransaction transaction) throws PortalException
IMonitorManager
getEvent
in interface IMonitorManager
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 IEvent getEventByKey(SessionConfig sessionConfig, String eventKey, ITransaction transaction) throws PortalException
IMonitorManager
getEventByKey
in interface IMonitorManager
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 void addAggregationType(SessionConfig sessionConfig, IAggregationType aggregationType, ITransaction transaction) throws PortalException
IMonitorManager
addAggregationType
in interface IMonitorManager
sessionConfig
- the user session information.aggregationType
- the transient aggregationType instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public void addMeasureType(SessionConfig sessionConfig, IMeasureType measureType, ITransaction transaction) throws PortalException
IMonitorManager
addMeasureType
in interface IMonitorManager
sessionConfig
- the user session information.measureType
- the transient measureType instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public IAggregationType createAggregationType() throws PortalException
IMonitorManager
createAggregationType
in interface IMonitorManager
PortalException
IMonitorManager.addAggregationType(SessionConfig, IAggregationType, ITransaction)
public IMeasureType createMeasureType() throws PortalException
IMonitorManager
createMeasureType
in interface IMonitorManager
PortalException
IMonitorManager.addMeasureType(SessionConfig, IMeasureType, ITransaction)
public void deleteAggregationType(SessionConfig sessionConfig, IAggregationType aggregationType, ITransaction transaction) throws PortalException
IMonitorManager
deleteAggregationType
in interface IMonitorManager
sessionConfig
- the user session information.aggregationType
- the persistent aggregationType instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public void deleteMeasureType(SessionConfig sessionConfig, IMeasureType measureType, ITransaction transaction) throws PortalException
IMonitorManager
deleteMeasureType
in interface IMonitorManager
sessionConfig
- the user session information.measureType
- the persistent measureType instance to be deleted.transaction
- the transaction for persistence access.
PortalException
public IAggregationType getAggregationType(SessionConfig sessionConfig, String aggregationTypeId, ITransaction transaction) throws PortalException
IMonitorManager
getAggregationType
in interface IMonitorManager
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 IAggregationType getAggregationTypeByKey(SessionConfig sessionConfig, String aggregationTypeKey, ITransaction transaction) throws PortalException
IMonitorManager
getAggregationTypeByKey
in interface IMonitorManager
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
public IMeasureType getMeasureType(SessionConfig sessionConfig, String measureTypeId, ITransaction transaction) throws PortalException
IMonitorManager
getMeasureType
in interface IMonitorManager
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 IMeasureType getMeasureTypeByKey(SessionConfig sessionConfig, String measureTypeKey, ITransaction transaction) throws PortalException
IMonitorManager
getMeasureTypeByKey
in interface IMonitorManager
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |