com.bea.ales.management
Class PolicyDistributor

java.lang.Object
  |
  +--com.bea.ales.management.PolicyDistributor

public class PolicyDistributor
extends java.lang.Object

This class represents policy distributor which is responsible for distributing policies and related resources, actions and declarations to related ALES SSMs. It provides the methods to check the status and progress of the distribution and to report the distribution status of all ALES SSMs.


Field Summary
static java.lang.String ALES_ENTITLEMENTUI_APP
           
 
Method Summary
 int distributePolicyAsync(Application[] applications)
           
 int distributePolicyAsync(Resource[] distributionPoints)
          Distribute the changes of policies and related resources, actions and declarations under the specific distribution points.
 DistributionStatus getDistributionStatus(int distributionID)
          Get distribution status for the specific distribution ID.
 java.util.Collection getInstanceStatus()
          Find the latest status for all instances.
 void removeInstanceStatus(java.lang.String address)
          Remove the registered engine instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALES_ENTITLEMENTUI_APP

public static final java.lang.String ALES_ENTITLEMENTUI_APP
Method Detail

distributePolicyAsync

public int distributePolicyAsync(Resource[] distributionPoints)
                          throws java.lang.IllegalArgumentException,
                                 ManagementException
Distribute the changes of policies and related resources, actions and declarations under the specific distribution points.

Parameters:
distributionPoints - distribution points to be distributed.
Returns:
distribution id of this distribution.
Throws:
java.lang.IllegalArgumentException - if distributionPoints is null or empty array or one of resources passed in is not a distribution point
ManagementException - if failed to do distribution.

distributePolicyAsync

public int distributePolicyAsync(Application[] applications)
                          throws java.lang.IllegalArgumentException,
                                 ManagementException

getDistributionStatus

public DistributionStatus getDistributionStatus(int distributionID)
                                         throws ManagementException
Get distribution status for the specific distribution ID.

Parameters:
distributionID - the ID of the distribution.
Returns:
distribution status which contains the distribution progress, status, the user who did the distribution and time stamp.
Throws:
ManagementException - if fails to get the status.

getInstanceStatus

public java.util.Collection getInstanceStatus()
                                       throws ManagementException
Find the latest status for all instances.

Returns:
collection of InstanceStatus which contains sync status, the configuration name, the instance name, the distribution id and the address.
Throws:
ManagementException - if failed to get the status of instances.

removeInstanceStatus

public void removeInstanceStatus(java.lang.String address)
                          throws ManagementException
Remove the registered engine instance.

Parameters:
address - the address of engine instance.
Throws:
ManagementException - if failed to remove the engine instance.


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.