kaos.policy.guard
Class GuardRetriever

java.lang.Object
  extended by kaos.policy.guard.GuardRetriever

public class GuardRetriever
extends java.lang.Object

This class provides a mechanism for enforcers to obtain a reference to the Guard. $Revision: 1.26 $


Constructor Summary
GuardRetriever()
           
 
Method Summary
static KAoSGuard getGuard()
          Retrieve a reference to the Guard.
static KAoSGuard instantiate()
          Instantiate Guard based on the bootstrap file configuration
static KAoSGuard instantiateGuard(java.lang.String guardNickName, java.util.List<java.lang.String> domainNames, KAoSServiceRoot sr, java.lang.Object infrastructureInfo)
          Instantiate Guard based on the provided configuration
static KAoSGuard instantiateGuardFromState(java.lang.String stateFileName, java.lang.String connectDS, java.lang.String transport)
           
static void setControlledActionClasses(java.util.List<java.lang.String> actionClasses)
          Set the Actor classes for the Guard.
static void setControlledActorClasses(java.util.List<java.lang.String> actorClasses)
          Set the Actor classes for the Guard.
static void setGuard(KAoSGuard guard)
          Store a reference to the Guard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuardRetriever

public GuardRetriever()
Method Detail

getGuard

public static KAoSGuard getGuard()
Retrieve a reference to the Guard.

Returns:
a reference to the Guard

instantiate

public static KAoSGuard instantiate()
                             throws GuardInstantiationException
Instantiate Guard based on the bootstrap file configuration

Returns:
a reference to the Guard
Throws:
GuardInstantiationException

instantiateGuard

public static KAoSGuard instantiateGuard(java.lang.String guardNickName,
                                         java.util.List<java.lang.String> domainNames,
                                         KAoSServiceRoot sr,
                                         java.lang.Object infrastructureInfo)
Instantiate Guard based on the provided configuration

Returns:
a reference to the Guard

setGuard

public static void setGuard(KAoSGuard guard)
Store a reference to the Guard. This method should be called by the real Guard object during initialization time

Parameters:
guard - the current Guard

setControlledActorClasses

public static void setControlledActorClasses(java.util.List<java.lang.String> actorClasses)
Set the Actor classes for the Guard. This method allows to override the default.


setControlledActionClasses

public static void setControlledActionClasses(java.util.List<java.lang.String> actionClasses)
Set the Actor classes for the Guard. This method allows to override the default.


instantiateGuardFromState

public static KAoSGuard instantiateGuardFromState(java.lang.String stateFileName,
                                                  java.lang.String connectDS,
                                                  java.lang.String transport)
                                           throws GuardInstantiationException
Throws:
GuardInstantiationException