public class NodeSourcePolicyFactory extends Object
Constructor and Description |
---|
NodeSourcePolicyFactory() |
Modifier and Type | Method and Description |
---|---|
static NodeSourcePolicy |
activate(NodeSourcePolicy policy,
Object[] policyParameters)
Creates the node source policy activity, given a node source policy instance.
|
static NodeSourcePolicy |
create(String policyClassName)
Creates a new node source policy.
|
static NodeSourcePolicy |
createAndActivate(String policyClassName,
String infrastructureType,
Object[] policyParameters)
Creates a new active node source policy using reflection mechanism.
|
static Collection<Class<?>> |
getSupportedPolicies()
Loads a list of supported policies from a configuration file
|
public static NodeSourcePolicy createAndActivate(String policyClassName, String infrastructureType, Object[] policyParameters)
policyClassName
- full class name of the policyinfrastructureType
- infrastructure class name (for compatibility check)policyParameters
- policy parameterspublic static NodeSourcePolicy create(String policyClassName)
policyClassName
- full class name of the policypublic static NodeSourcePolicy activate(NodeSourcePolicy policy, Object[] policyParameters)
policy
- the node source policy to turn activepolicyParameters
- the policy parameters needed to configure it once it is turned activepublic static Collection<Class<?>> getSupportedPolicies()