All Known Implementing Classes:
PolicyConfig

public interface PolicyConfigMBean
This MBean interface is used to define dsl mapping for policy extended info.
  • Method Details

    • getDslMappings

      Map<String,String> getDslMappings()
      Get the complete mapping of extended info with extended info alias as key.
      Returns:
      the Map of extended info
    • getDsl

      String getDsl(String alias)
      Get the dsl (abstract format) for a extended info alias.
      Parameters:
      alias - extended info alias
      Returns:
      dsl
    • getAlias

      String getAlias(int dataReference)
      Get the alias associated with the data reference
      Parameters:
      dataReference - number to fetch the alias for
      Returns:
      alias (name of preference) associated with the provided data reference
    • setDsl

      void setDsl(int dataReference, String alias, String dsl)
      Sets the extended info.
      Parameters:
      dataReference - value of the data reference AVP associated with this preference. Set this value to -1 if this number is not applicable.
      alias - extended info alias. eg. customerId
      dsl - dsl (abstract format). eg. getobject(customer/customerInfo)
    • deleteDsl

      String deleteDsl(String alias)
      Deletes a extended info.
      Parameters:
      alias - extended info alias
      Returns:
      alias if specified alias is present and deleted successfully else null
    • getPolicyTolerance

      BigDecimal getPolicyTolerance(Integer beId)
      Returns the tolerance value configured for a balance element
      Parameters:
      beId - Balance Element Numeric Id
      Returns:
      The tolerance value configured for the balance element
    • setPolicyTolerance

      void setPolicyTolerance(Integer beId, String tolerance)
      Sets the tolerance value for the given balance element id
      Parameters:
      beId - Numeric Id of the balance element
      tolerance - Tolerance value to be set
    • deletePolicyTolerance

      Integer deletePolicyTolerance(Integer beId)
      Deletes the tolerance for a balance element
      Parameters:
      beId - Numeric Id of the Balance Element
      Returns:
      Numeric Id of the Balance Element if the given id is present and deleted successful, null otherwise
    • setSyRejectNoCounters

      void setSyRejectNoCounters(boolean reject)
      Sets the policy to use when no policy counters are available.
      Parameters:
      reject - Boolean to indicate whether to return a successful SLA.
    • getSyRejectNoCounters

      boolean getSyRejectNoCounters()
      Returns the policy to use when no policy counters are available.
      Returns:
      Boolean to indicate whether to return a successful SLA.