Class WmClusterPolicyManager

    • Field Detail

      • ROUND_ROBIN

        public static final int ROUND_ROBIN
        Round Robin algorithm.
        See Also:
        Constant Field Values
      • WEIGHTED_ROUND_ROBIN

        public static final int WEIGHTED_ROUND_ROBIN
        Weighted Round Robin Algorithm
        See Also:
        Constant Field Values
      • MULTISEND_GUARANTEED

        public static final int MULTISEND_GUARANTEED
        MultiSend Guaranteed Algorithm
        See Also:
        Constant Field Values
      • MULTISEND_BEST_EFFORT

        public static final int MULTISEND_BEST_EFFORT
        MultiSend Best Effort Algorithm
        See Also:
        Constant Field Values
      • DOCUMENT_SIZE

        public static final int DOCUMENT_SIZE
        Document Size Algorithm
        See Also:
        Constant Field Values
      • MULTISEND_GUARANTEED_POLICY_NAME

        public static final java.lang.String MULTISEND_GUARANTEED_POLICY_NAME
        See Also:
        Constant Field Values
      • RANDOM_POLICY_NAME

        public static final java.lang.String RANDOM_POLICY_NAME
        See Also:
        Constant Field Values
      • ROUND_ROBIN_POLICY_NAME

        public static final java.lang.String ROUND_ROBIN_POLICY_NAME
        See Also:
        Constant Field Values
      • STICKY_POLICY_NAME

        public static final java.lang.String STICKY_POLICY_NAME
        See Also:
        Constant Field Values
      • WEIGHTED_ROUND_ROBIN_POLICY_NAME

        public static final java.lang.String WEIGHTED_ROUND_ROBIN_POLICY_NAME
        See Also:
        Constant Field Values
      • MULTISEND_BEST_EFFORT_POLICY_NAME

        public static final java.lang.String MULTISEND_BEST_EFFORT_POLICY_NAME
        See Also:
        Constant Field Values
      • SUPPORTED_POLICIES

        protected static final java.lang.String[] SUPPORTED_POLICIES
      • policies

        protected java.util.HashMap<java.lang.String,​WmClusterPolicy> policies
    • Constructor Detail

      • WmClusterPolicyManager

        protected WmClusterPolicyManager()
    • Method Detail

      • getClusterBrokerInfo

        public abstract WmClusterBrokerInfo[] getClusterBrokerInfo()
        Finds the cluster Broker data.
        Returns:
        the information about Brokers in this cluster
      • getAvailablePolicyNames

        public java.lang.String[] getAvailablePolicyNames()
        Find the supported policies. This will get the policy information if it is not loaded from the metadata store yet. The classes implementing the polioy should be loaded with the JMS API classes.
        Returns:
        a String array contains the policy names
      • getPolicy

        public WmClusterPolicy getPolicy​(WmConnectionFactoryImpl factory)
                                  throws javax.jms.JMSException
        Locate the policy class instance for the policy defined in the connection factory.
        Parameters:
        factory -
        Throws:
        java.lang.Exception
        javax.jms.JMSException
      • getPolicyName

        public java.lang.String getPolicyName​(int policy)
                                       throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException