Class ResourceQuota


  • public class ResourceQuota
    extends java.lang.Object
    Resource quota for a namespace or namespace bundle.
    • Constructor Detail

      • ResourceQuota

        public ResourceQuota()
    • Method Detail

      • setMsgRateIn

        public void setMsgRateIn​(double msgRateIn)
        Set incoming message rate quota.
        Parameters:
        msgRateIn - incoming messages rate quota (msg/sec)
      • getMsgRateIn

        public double getMsgRateIn()
        Get incoming message rate quota.
        Returns:
        incoming message rate quota (msg/sec)
      • setMsgRateOut

        public void setMsgRateOut​(double msgRateOut)
        Set outgoing message rate quota.
        Parameters:
        msgRateOut - outgoing messages rate quota (msg/sec)
      • getMsgRateOut

        public double getMsgRateOut()
        Get outgoing message rate quota.
        Returns:
        outgoing message rate quota (msg/sec)
      • setBandwidthIn

        public void setBandwidthIn​(double bandwidthIn)
        Set inbound bandwidth quota.
        Parameters:
        bandwidthIn - inbound bandwidth quota (bytes/sec)
      • getBandwidthIn

        public double getBandwidthIn()
        Get inbound bandwidth quota.
        Returns:
        inbound bandwidth quota (bytes/sec)
      • setBandwidthOut

        public void setBandwidthOut​(double bandwidthOut)
        Set outbound bandwidth quota.
        Parameters:
        bandwidthOut - outbound bandwidth quota (bytes/sec)
      • getBandwidthOut

        public double getBandwidthOut()
        Get outbound bandwidth quota.
        Returns:
        outbound bandwidth quota (bytes/sec)
      • setMemory

        public void setMemory​(double memory)
        Set memory quota.
        Parameters:
        memory - memory quota (Mbytes)
      • getMemory

        public double getMemory()
        Get memory quota.
        Returns:
        memory quota (Mbytes)
      • setDynamic

        public void setDynamic​(boolean dynamic)
        Set dynamic to true/false.
        Parameters:
        dynamic - allow the quota to be dynamically re-calculated
      • getDynamic

        public boolean getDynamic()
        Get dynamic setting.
        Returns:
        is dynamic or not
      • isValid

        public boolean isValid()
        Check if this is a valid quota definition.
      • add

        public void add​(ResourceQuota quota)
        Add quota.
        Parameters:
        quota - ResourceQuota to add
      • substract

        public void substract​(ResourceQuota quota)
        Substract quota.
        Parameters:
        quota - ResourceQuota to substract
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object