org.ow2.jonas.cmi.internal
Class CmiServicePolicyStrategyManager

java.lang.Object
  extended by org.ow2.jonas.cmi.internal.CmiServicePolicyStrategyManager

public class CmiServicePolicyStrategyManager
extends Object

Manager for cmi policies and strategies. The Cmi service of JOnAS delegates management of cmi policies and strategies to this class

Author:
eyindanga

Constructor Summary
CmiServicePolicyStrategyManager()
          Default constructor.
CmiServicePolicyStrategyManager(org.ow2.cmi.controller.server.ServerClusterViewManager serverClusterViewManager)
          Constructor using fields.
 
Method Summary
 void addPolicyStrategyBundle(String location, Class<? extends org.ow2.cmi.lb.policy.IPolicy<?>>[] policies, Class<? extends org.ow2.cmi.lb.strategy.IStrategy<?>>[] strategies)
          Load the given archive.
 void removePolicyStrategyBundle(String location)
          Unload the given archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmiServicePolicyStrategyManager

public CmiServicePolicyStrategyManager()
Default constructor.


CmiServicePolicyStrategyManager

public CmiServicePolicyStrategyManager(org.ow2.cmi.controller.server.ServerClusterViewManager serverClusterViewManager)
Constructor using fields.

Parameters:
serverClusterViewManager - the server-side manager to communicate with.
Method Detail

addPolicyStrategyBundle

public void addPolicyStrategyBundle(String location,
                                    Class<? extends org.ow2.cmi.lb.policy.IPolicy<?>>[] policies,
                                    Class<? extends org.ow2.cmi.lb.strategy.IStrategy<?>>[] strategies)
                             throws CmiServiceException
Load the given archive.

Parameters:
location - of the bundle
policies - the policies
strategies - the strategies
Throws:
CmiServiceException - any.

removePolicyStrategyBundle

public void removePolicyStrategyBundle(String location)
                                throws CmiServiceException
Unload the given archive.

Parameters:
location - bundle location
Throws:
CmiServiceException - any


Copyright © 2010 OW2 Consortium. All Rights Reserved.