|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wles.blm.BLMPolicyDistributor
Manages all aspects of policy distributions.
Each policy distribution has a version identifier associated
with it known as a distribution id. The distribution id, identifies
the newly enforced policy set which was activated as part of the
distribution.
Use a BLMContextManager
to obtain an instance of a
BLMPolicyDistributorManager
.
BLMContextManager
Nested Class Summary | |
static class |
BLMPolicyDistributor.DistributionStatus
Represents the status of a distribution operation. |
static class |
BLMPolicyDistributor.EngineInfo
Represents the state of an engine instance. |
static class |
BLMPolicyDistributor.EngineStatus
Represents the distribution status of an instance of an engine. |
Field Summary | |
static int |
NULL_DISTRIBUTION_ID
Identifier used to repesent the null distribution id. |
Method Summary | |
int |
distributePolicyAsync(java.lang.String[] distributionPoints,
PolicyAvailableForEnum returnWhen)
Asynchronously distributes policy changes. |
BLMPolicyDistributor.DistributionStatus |
getDistributionStatus(int distributionId)
To get status of an on going or recent distribution. |
java.util.Collection |
listRegisteredEngines(boolean outOfSyncOnly)
Gets a list of the registered engine instances. |
void |
removeEngineRegistration(java.lang.String address)
Removes an engine instance registration. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NULL_DISTRIBUTION_ID
Method Detail |
public int distributePolicyAsync(java.lang.String[] distributionPoints, PolicyAvailableForEnum returnWhen) throws BLMBadParameterException, BLMException
getDistributionStauts
method.
The user may specify one or more portions of the resource tree to distribute. These distribution points are specified as resource names. A list of valid distribution points can be obtained from the BLMApplicationManager.getDistributionPointNodes
method.
distributionPoints
- a String
array of distribution points. If null
only structural changes will be distributed.returnWhen
- specifies how long the call will block, one of: PolicyAvailableForEnum.READ, PolicyAvailableForEnum.WRITE,
PolicyAvailableForEnum.DISTRIBUTE
.
getDistributionStatus
method to monitor the ongoing distribution
BLMBadParameterException
BLMException
getDistributionStatus(int distributionId)
,
BLMApplicationManager.getDistributionPointNodes(String filter)
public BLMPolicyDistributor.DistributionStatus getDistributionStatus(int distributionId) throws BLMBadParameterException, BLMException
distributionId
- the ID of the distribution. Use distribution id NULL_DISTRIBUTION_ID
to get the status for the latest distribution.
BLMBadParameterException
BLMException
NULL_DISTRIBUTION_ID
public java.util.Collection listRegisteredEngines(boolean outOfSyncOnly) throws BLMException
outOfSyncOnly
- if true then only those which are on a old (out of date) distribution version will be returned
EngineInfo
objects, containing the state of each registered engine.
BLMException
public void removeEngineRegistration(java.lang.String address) throws BLMException
address
- the URL of the the engine instance to remove.
BLMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |