Class ConfigurableQuorumPolicy.ProxyQuorumPolicy

All Implemented Interfaces:
ActionPolicy
Enclosing class:
ConfigurableQuorumPolicy

public static class ConfigurableQuorumPolicy.ProxyQuorumPolicy extends ConfigurableQuorumPolicy.MembershipQuorumPolicy
ProxyQuorumPolicy defines a configurable quorum policy that is applicable to a proxy service.
  • Field Details

    • MASK_CONNECT

      public static final int MASK_CONNECT
      Bitmask used to encode a client connection action.
      See Also:
  • Constructor Details

  • Method Details

    • 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