kaos.policy.guard
Class GuardPersistenceManager

java.lang.Object
  extended by kaos.policy.management.PolicyPersistenceManager
      extended by kaos.policy.guard.GuardPersistenceManager
All Implemented Interfaces:
PersistenceManager
Direct Known Subclasses:
KAoSGuardPersistenceManager

public abstract class GuardPersistenceManager
extends PolicyPersistenceManager


Field Summary
protected  java.lang.String _fileName
           
protected  GuardState _state
           
 
Constructor Summary
GuardPersistenceManager()
           
GuardPersistenceManager(GuardState state)
           
GuardPersistenceManager(java.lang.String fileName)
           
 
Method Summary
 void addAgentDescription(KAoSAgentDescription desc)
           
 void addDomainDescription(DomainDescription desc)
           
 void deleteAllLogs()
           
 void deleteLogs(java.util.Vector logs)
           
 java.util.List getAgentDescriptions()
           
 java.util.List getAgentDomains(java.lang.String id)
           
 java.util.List getDomainDescriptions()
           
 java.util.Vector getDomainNames()
           
 java.lang.String getGuardGUID()
           
 HistoryMonitorImpl getHistory()
           
 StateObject getState()
           
 void logEvent(ActionInstanceDescription event)
           
 void readStateFromFile(java.lang.String fileName)
           
 void removeAgentDescription(KAoSAgentDescription desc)
           
 void removeAgentDomains(java.lang.String id)
           
 void removeDomainDescription(DomainDescription desc)
           
 void setAgentDomains(java.lang.String id, java.util.List domains)
           
 void setDomainDescriptions(java.util.List domainDescs)
           
 void setGuardGUID(java.lang.String guid)
           
 void setHistory(HistoryMonitorImpl history)
           
 void setState(StateObject state)
          set the current state
 
Methods inherited from class kaos.policy.management.PolicyPersistenceManager
addPolicies, changePolicies, getPolicies, removePolicies, saveState, setPolicies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_state

protected GuardState _state

_fileName

protected java.lang.String _fileName
Constructor Detail

GuardPersistenceManager

public GuardPersistenceManager()

GuardPersistenceManager

public GuardPersistenceManager(GuardState state)

GuardPersistenceManager

public GuardPersistenceManager(java.lang.String fileName)
Method Detail

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)