Class ConfigurableQuorumPolicy.ProxyQuorumPolicy

    • Field Detail

      • MASK_CONNECT

        public static final int MASK_CONNECT
        Bitmask used to encode a client connection action.
        See Also:
        Constant Field Values
    • Method Detail

      • getStatusDescription

        public String getStatusDescription()
        Return a String that describes the current Quorum state.
        Specified by:
        getStatusDescription in class ConfigurableQuorumPolicy
        Returns:
        a String describing the allowed actions in the current state
      • isAllowed

        public boolean isAllowed​(Service service,
                                 Action action)
        Evaluate if the specified action is currently allowed by this policy.

        Note: for forward compatibility, implementations should generally return true for actions that are not recognized.

        Parameters:
        service - the service that is performing the action
        action - the action that is being performed
        Returns:
        true iff the specified action is currently allowed by this policy