|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.policy.history.HistoryMonitorImpl
public class HistoryMonitorImpl
This interface defines methods to access logged events
Constructor Summary | |
---|---|
HistoryMonitorImpl(java.lang.String ontType)
|
Method Summary | |
---|---|
void |
changeKAoSExtensionComponentEnabledStatus(boolean state)
change the 'enabled' status of the component |
int |
countEventsOfType(BasicActionDescription eventClass)
This method is used to find out the # occurrences of actual events of the type indicated by an event class. |
void |
deleteAllLogs()
Delete all the events logged so far. |
void |
deleteLogs(java.util.Vector logs)
|
java.util.Vector |
deleteLogsforActionType(java.lang.String actionType)
Delete all logged events that contain the given action type. |
java.util.Vector |
deleteLogsforActor(java.lang.String actorID)
Delete all logged events that contain the given actor. |
java.util.Vector |
deleteSpecifiedLogs(java.lang.String actionType,
java.lang.String actorID,
java.lang.String startTime,
java.lang.String endTime,
java.lang.Boolean latest)
This method calls 'getSpecifiedLogs' with its input parameters and then deletes the logs returned by that call. |
java.util.Vector |
getAllLogs()
Get all the events logged so far. |
java.lang.String |
getAssociatedOntologyType()
KAoSExtensionComponent implementation begins |
boolean |
getKAoSExtensionComponentEnabledStatus()
get the 'enabled' status of the component |
java.lang.String |
getKAoSExtensionComponentName()
Get the (unique ?) name of this KAoSExtensionComponents object. |
java.util.Vector |
getLogsforActionType(java.lang.String actionType)
Get all events logged that contain the given action type. |
java.util.Vector |
getLogsforActor(java.lang.String actorID)
Get all logged events that contain the given actor. |
java.util.Vector |
getSpecifiedLogs(java.lang.String actionType,
java.lang.String actorID,
java.lang.String startTime,
java.lang.String endTime,
java.lang.Boolean latest)
This method returns the logged events specified by the given parameters. |
void |
logEvent(ActionInstanceDescription event)
Log an event |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistoryMonitorImpl(java.lang.String ontType)
Method Detail |
---|
public java.lang.String getAssociatedOntologyType()
getAssociatedOntologyType
in interface KAoSExtensionComponent
public java.lang.String getKAoSExtensionComponentName()
KAoSExtensionComponent
getKAoSExtensionComponentName
in interface KAoSExtensionComponent
public void changeKAoSExtensionComponentEnabledStatus(boolean state)
KAoSExtensionComponent
changeKAoSExtensionComponentEnabledStatus
in interface KAoSExtensionComponent
state
- the boolean parameter to change the status topublic boolean getKAoSExtensionComponentEnabledStatus()
KAoSExtensionComponent
getKAoSExtensionComponentEnabledStatus
in interface KAoSExtensionComponent
public void logEvent(ActionInstanceDescription event)
logEvent
in interface HistoryMonitor
event
- The event to be logged.public java.util.Vector getAllLogs()
getAllLogs
in interface HistoryMonitor
public void deleteAllLogs()
deleteAllLogs
in interface HistoryMonitor
public void deleteLogs(java.util.Vector logs)
public java.util.Vector getLogsforActionType(java.lang.String actionType)
getLogsforActionType
in interface HistoryMonitor
actionType
- A String indicating the action type.
public java.util.Vector deleteLogsforActionType(java.lang.String actionType)
deleteLogsforActionType
in interface HistoryMonitor
actionType
- A String indicating the action type.
public java.util.Vector getLogsforActor(java.lang.String actorID)
getLogsforActor
in interface HistoryMonitor
actorID
- A String indicating the actor id.
public java.util.Vector deleteLogsforActor(java.lang.String actorID)
deleteLogsforActor
in interface HistoryMonitor
actorID
- A String indicating the actor id.
public java.util.Vector getSpecifiedLogs(java.lang.String actionType, java.lang.String actorID, java.lang.String startTime, java.lang.String endTime, java.lang.Boolean latest)
getSpecifiedLogs
in interface HistoryMonitor
actionType
- A String indicating the action type of requested logs.
If it is null, 'all action types' would be
assumed.actorID
- A String indicating the actor of requested logs.
If null, 'all actors' would be assumed.startTime
- A long, indicating the start of time period for
which logs are requested.
If null, 'the begining of logs' time would be assumed.endTime
- A long, indicating the end of time period for which
logs are requested.
If null, 'time of the latest log' would be assumed.latest
- A boolean, indicating if only latest logs are requested.
If it is set:
a) start and end time parameters are ignored.
b) If actionType is null, and actorID is null,
the latest log for each actor is returned.
c) If actorID is null and actionType is not null
the latest logs for each actor for the given
actionType are returned.
d) If actorID is not null, the latest log for that
actor is returned. If actionType also is not null,
the latest log for that actor and that action is
returned.
If this boolean is not set, log are retrieved
based on preceding parameters.public java.util.Vector deleteSpecifiedLogs(java.lang.String actionType, java.lang.String actorID, java.lang.String startTime, java.lang.String endTime, java.lang.Boolean latest)
deleteSpecifiedLogs
in interface HistoryMonitor
public int countEventsOfType(BasicActionDescription eventClass)
countEventsOfType
in interface KAoSEventHistoryComponent
eventClass
- A BasicActionDescription object specifying
the type of event class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |