Class SystemUsage

  • All Implemented Interfaces:

    public class SystemUsage
    extends Object
    implements Service
    Holder for Usage instances for memory, store and temp files Main use case is manage memory usage.
    • Method Detail

      • getName

        public String getName()
      • getMemoryUsage

        public MemoryUsage getMemoryUsage()
        the memoryUsage
      • getStoreUsage

        public StoreUsage getStoreUsage()
        the storeUsage
      • getTempUsage

        public TempUsage getTempUsage()
        the tempDiskUsage
      • getJobSchedulerUsage

        public JobSchedulerUsage getJobSchedulerUsage()
        the schedulerUsage
      • start

        public void start()
        Specified by:
        start in interface Service
      • stop

        public void stop()
        Specified by:
        stop in interface Service
      • setSendFailIfNoSpace

        public void setSendFailIfNoSpace​(boolean failProducerIfNoSpace)
        Sets whether or not a send() should fail if there is no space free. The default value is false which means to block the send() method until space becomes available
      • isSendFailIfNoSpace

        public boolean isSendFailIfNoSpace()
      • setParent

        public void setParent​(SystemUsage parent)
      • isSendFailIfNoSpaceExplicitySet

        public boolean isSendFailIfNoSpaceExplicitySet()
      • setSendFailIfNoSpaceExplicitySet

        public void setSendFailIfNoSpaceExplicitySet​(boolean sendFailIfNoSpaceExplicitySet)
      • getSendFailIfNoSpaceAfterTimeout

        public long getSendFailIfNoSpaceAfterTimeout()
      • setSendFailIfNoSpaceAfterTimeout

        public void setSendFailIfNoSpaceAfterTimeout​(long sendFailIfNoSpaceAfterTimeout)
      • setName

        public void setName​(String name)
      • setMemoryUsage

        public void setMemoryUsage​(MemoryUsage memoryUsage)
      • setStoreUsage

        public void setStoreUsage​(StoreUsage storeUsage)
      • setTempUsage

        public void setTempUsage​(TempUsage tempDiskUsage)
      • setJobSchedulerUsage

        public void setJobSchedulerUsage​(JobSchedulerUsage jobSchedulerUsage)
      • setExecutor

        public void setExecutor​(ThreadPoolExecutor executor)
        executor - the executor to set
      • getCheckLimitsLogLevel

        public String getCheckLimitsLogLevel()
      • setCheckLimitsLogLevel

        public void setCheckLimitsLogLevel​(String checkLimitsLogLevel)