org.apache.activemq.usage
Class JobSchedulerUsage

java.lang.Object
  extended by org.apache.activemq.usage.Usage<JobSchedulerUsage>
      extended by org.apache.activemq.usage.JobSchedulerUsage
All Implemented Interfaces:
Service

public class JobSchedulerUsage
extends Usage<JobSchedulerUsage>

Used to keep track of how much of something is being used so that a productive working set usage can be controlled. Main use case is manage memory usage.


Field Summary
 
Fields inherited from class org.apache.activemq.usage.Usage
name, parent, percentUsage, usageMutex
 
Constructor Summary
JobSchedulerUsage()
           
JobSchedulerUsage(JobSchedulerUsage parent, String name)
           
JobSchedulerUsage(String name, JobSchedulerStore store)
           
 
Method Summary
 JobSchedulerStore getStore()
           
protected  long retrieveUsage()
           
 void setStore(JobSchedulerStore store)
           
 
Methods inherited from class org.apache.activemq.usage.Usage
addChild, addUsageListener, caclPercentUsage, getExecutor, getLimit, getLimiter, getName, getParent, getPercentUsage, getPercentUsageMinDelta, getPollingTime, getUsage, getUsagePortion, isFull, isFull, notifyCallbackWhenNotFull, onLimitChange, removeChild, removeUsageListener, setExecutor, setLimit, setLimiter, setName, setParent, setPercentUsage, setPercentUsageMinDelta, setPollingTime, setUsagePortion, start, stop, toString, waitForSpace, waitForSpace, waitForSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobSchedulerUsage

public JobSchedulerUsage()

JobSchedulerUsage

public JobSchedulerUsage(String name,
                         JobSchedulerStore store)

JobSchedulerUsage

public JobSchedulerUsage(JobSchedulerUsage parent,
                         String name)
Method Detail

retrieveUsage

protected long retrieveUsage()
Specified by:
retrieveUsage in class Usage<JobSchedulerUsage>

getStore

public JobSchedulerStore getStore()

setStore

public void setStore(JobSchedulerStore store)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.