kaos.core.csi.extension.history
Class EventsHistoryManager

java.lang.Object
  extended by kaos.core.csi.extension.KAoSExtensionComponentManagerImpl
      extended by kaos.core.csi.extension.history.EventsHistoryManager
All Implemented Interfaces:
EventHistoryComponent, KAoSExtensionComponentManager

public class EventsHistoryManager
extends kaos.core.csi.extension.KAoSExtensionComponentManagerImpl
implements EventHistoryComponent, KAoSExtensionComponentManager

This class extends guard repository manager implementation. It has a new method that finds the # events belonging to a specified event class. This finding is performed across all the components in this manager.


Method Summary
 java.util.List<ActionInstanceDescription> findEventsOfType(OntClassDescription eventClass, kaos.time.DurationDescription historyStartDuration, kaos.time.DurationDescription historyEndDuration)
          This method is used to find the list of occurrences of actual events of the type indicated by an event class.
 java.util.List<ActionInstanceDescription> getAllLogs()
           
static EventsHistoryManager getInstance()
           
 java.util.List<ActionInstanceDescription> getLogsforActionType(java.lang.String actionType)
           
 void logEvent(ActionInstanceDescription event)
          Log an event
 
Methods inherited from class kaos.core.csi.extension.KAoSExtensionComponentManagerImpl
changeComponentEnabledStatus, deregisterComponent, getAllKAoSExtensionComponents, getComponent, getComponentEnabledStatus, getRepositoryManagerType, getRepositoryTableInformation, getServiceProperties, initialize, loadConfiguration, printDebugString, registerComponent, removeAllKAoSExtensionComponents, setServiceProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kaos.core.csi.extension.KAoSExtensionComponentManager
changeComponentEnabledStatus, deregisterComponent, getAllKAoSExtensionComponents, getComponent, getComponentEnabledStatus, getRepositoryManagerType, getRepositoryTableInformation, loadConfiguration, registerComponent, removeAllKAoSExtensionComponents
 

Method Detail

getInstance

public static EventsHistoryManager getInstance()

logEvent

public void logEvent(ActionInstanceDescription event)
Description copied from interface: EventHistoryComponent
Log an event

Specified by:
logEvent in interface EventHistoryComponent
Parameters:
event - The event to be logged.

findEventsOfType

public java.util.List<ActionInstanceDescription> findEventsOfType(OntClassDescription eventClass,
                                                                  kaos.time.DurationDescription historyStartDuration,
                                                                  kaos.time.DurationDescription historyEndDuration)
This method is used to find the list of occurrences of actual events of the type indicated by an event class.

Specified by:
findEventsOfType in interface EventHistoryComponent
Parameters:
eventClass - ActionInfo object specifying the type of event class.
historyStartDuration - DurationDescription specifying the starting time in which event should be counted
historyEndDuration - DurationDescription specifying the ending time in which event should be counted
Returns:
the list of events in all the components of this manager which are instances of the specified event class.

getLogsforActionType

public java.util.List<ActionInstanceDescription> getLogsforActionType(java.lang.String actionType)
Specified by:
getLogsforActionType in interface EventHistoryComponent

getAllLogs

public java.util.List<ActionInstanceDescription> getAllLogs()
Specified by:
getAllLogs in interface EventHistoryComponent


Copyright © 2006 IHMC All Rights Reserved.