kaos.policy.guard
Class GuardPersistenceManager
java.lang.Object
kaos.policy.management.PolicyPersistenceManager
kaos.policy.guard.GuardPersistenceManager
- All Implemented Interfaces:
- PersistenceManager
- Direct Known Subclasses:
- KAoSGuardPersistenceManager
public abstract class GuardPersistenceManager
- extends PolicyPersistenceManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_state
protected GuardState _state
_fileName
protected java.lang.String _fileName
GuardPersistenceManager
public GuardPersistenceManager()
GuardPersistenceManager
public GuardPersistenceManager(GuardState state)
GuardPersistenceManager
public GuardPersistenceManager(java.lang.String fileName)
getState
public StateObject getState()
- Specified by:
getState
in interface PersistenceManager
- Overrides:
getState
in class PolicyPersistenceManager
- Returns:
- the current state
setState
public void setState(StateObject state)
- set the current state
- Specified by:
setState
in interface PersistenceManager
- Overrides:
setState
in class PolicyPersistenceManager
getDomainDescriptions
public java.util.List getDomainDescriptions()
setDomainDescriptions
public void setDomainDescriptions(java.util.List domainDescs)
addDomainDescription
public void addDomainDescription(DomainDescription desc)
removeDomainDescription
public void removeDomainDescription(DomainDescription desc)
getDomainNames
public java.util.Vector getDomainNames()
addAgentDescription
public void addAgentDescription(KAoSAgentDescription desc)
removeAgentDescription
public void removeAgentDescription(KAoSAgentDescription desc)
getAgentDescriptions
public java.util.List getAgentDescriptions()
setAgentDomains
public void setAgentDomains(java.lang.String id,
java.util.List domains)
removeAgentDomains
public void removeAgentDomains(java.lang.String id)
getAgentDomains
public java.util.List getAgentDomains(java.lang.String id)
getGuardGUID
public java.lang.String getGuardGUID()
setGuardGUID
public void setGuardGUID(java.lang.String guid)
getHistory
public HistoryMonitorImpl getHistory()
setHistory
public void setHistory(HistoryMonitorImpl history)
logEvent
public void logEvent(ActionInstanceDescription event)
deleteLogs
public void deleteLogs(java.util.Vector logs)
deleteAllLogs
public void deleteAllLogs()
readStateFromFile
public void readStateFromFile(java.lang.String fileName)