|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPolicyStrategyManager
Interface for strategy/policy managers. The server-side manager delegates management of policies and strategies to this manager.
| Method Summary | |
|---|---|
void |
addDefaultPolicyClassName(java.lang.String objectName,
java.lang.String policyClassName)
Add default policy for the objectName parameter. |
void |
addDefaultStrategyClassName(java.lang.String objectName,
java.lang.String strategyClassName)
Add default strategy for the objectName parameter. |
java.lang.Object |
addLoadBalancingArchive(byte[] bytesOfFile,
java.lang.String location,
java.lang.Class<?>[] policies,
java.lang.Class<?>[] strategies)
Receives archive containing load balancing classes. |
void |
addPolicyClass(java.lang.Class<? extends IPolicy<?>> policyClass,
boolean overwrite)
Add a policy class. |
void |
addStrategyClass(java.lang.Class<? extends IStrategy<?>> strategyClass,
boolean overwrite)
Add a strategy class. |
java.lang.Class<? extends IPolicy<?>> |
getPolicyClass(java.lang.String objectName)
Returns the class that defines the policy for an object with the given name. |
java.util.Collection<? extends java.lang.String> |
getPolicyClassNames()
Get all the policies. |
java.lang.Class<? extends IStrategy<?>> |
getStrategyClass(java.lang.String objectName)
Returns the class that defines the strategy for an object with the given name. |
java.util.Collection<? extends java.lang.String> |
getStrategyClassNames()
Get all the strategies. |
boolean |
isEmbeddedPolicy(java.lang.String className)
Return true if the given class name is embedded policy class. |
boolean |
isEmbeddedStrategy(java.lang.String className)
Return true if the given class name is embedded strategy class. |
void |
loadEmbeddedLBClasses()
Load classes embedded in the CMI distribution. |
void |
removeLoadBalancingArchive(java.lang.Object archiveId,
java.lang.String[] policies,
java.lang.String[] strategies,
boolean isArchiveOwner)
Remove Load Balancing Archive, previously added. |
| Method Detail |
|---|
java.lang.Class<? extends IPolicy<?>> getPolicyClass(java.lang.String objectName)
throws ObjectNotFoundException,
ServerClusterViewManagerException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
ServerClusterViewManagerException - if the class cannot be loaded
java.lang.Class<? extends IStrategy<?>> getStrategyClass(java.lang.String objectName)
throws ObjectNotFoundException,
ServerClusterViewManagerException
objectName - a name of object
ObjectNotFoundException - if none object has the given name
ServerClusterViewManagerException - if the class cannot be loaded
java.lang.Object addLoadBalancingArchive(byte[] bytesOfFile,
java.lang.String location,
java.lang.Class<?>[] policies,
java.lang.Class<?>[] strategies)
bytesOfFile - Bytes content of the filelocation - File locationstrategies - policies exported by the archivepolicies - strategies exported by the archive
PolicyStrategyManager to register the new archive.
void addStrategyClass(java.lang.Class<? extends IStrategy<?>> strategyClass,
boolean overwrite)
throws ServerClusterViewManagerException
strategyClass - the strategy class to add.overwrite - if true then existing class with the given name be
overwritten.
ServerClusterViewManagerException - if strategyClass cannot be added.
void addPolicyClass(java.lang.Class<? extends IPolicy<?>> policyClass,
boolean overwrite)
throws ServerClusterViewManagerException
policyClass - the policy class to add.overwrite - if true then existing class with the given name be overwritten.
ServerClusterViewManagerException - if policyClass cannot be added.
void removeLoadBalancingArchive(java.lang.Object archiveId,
java.lang.String[] policies,
java.lang.String[] strategies,
boolean isArchiveOwner)
throws java.lang.Exception
archiveId - The Id of the archive.policies - names of the policies to removestrategies - names of the policies to removeisArchiveOwner - if true then the call is performed by the archive owner.
The archive owner is the first server that deployed the archive.
java.lang.Exception
void addDefaultPolicyClassName(java.lang.String objectName,
java.lang.String policyClassName)
objectName parameter.
objectName - name of the object.policyClassName - the policy name
void addDefaultStrategyClassName(java.lang.String objectName,
java.lang.String strategyClassName)
objectName parameter.
objectName - name of the object.strategyClassName - the policy namejava.util.Collection<? extends java.lang.String> getPolicyClassNames()
java.util.Collection<? extends java.lang.String> getStrategyClassNames()
void loadEmbeddedLBClasses()
boolean isEmbeddedPolicy(java.lang.String className)
className - a name of class
boolean isEmbeddedStrategy(java.lang.String className)
className - a name of class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||