org.apache.activemq.usage
Class SystemUsage
java.lang.Object
org.apache.activemq.usage.SystemUsage
- All Implemented Interfaces:
- Service
public class SystemUsage
- extends java.lang.Object
- implements Service
Holder for Usage instances for memory, store and temp files Main use case is
manage memory usage.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SystemUsage
public SystemUsage()
SystemUsage
public SystemUsage(java.lang.String name,
PersistenceAdapter adapter,
PListStore tempStore)
SystemUsage
public SystemUsage(SystemUsage parent,
java.lang.String name)
getName
public java.lang.String getName()
getMemoryUsage
public MemoryUsage getMemoryUsage()
- Returns:
- the memoryUsage
getStoreUsage
public StoreUsage getStoreUsage()
- Returns:
- the storeUsage
getTempUsage
public TempUsage getTempUsage()
- Returns:
- the tempDiskUsage
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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()
getParent
public SystemUsage getParent()
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(java.lang.String name)
setMemoryUsage
public void setMemoryUsage(MemoryUsage memoryUsage)
setStoreUsage
public void setStoreUsage(StoreUsage storeUsage)
setTempUsage
public void setTempUsage(TempUsage tempDiskUsage)
getExecutor
public java.util.concurrent.ThreadPoolExecutor getExecutor()
- Returns:
- the executor
setExecutor
public void setExecutor(java.util.concurrent.ThreadPoolExecutor executor)
- Parameters:
executor
- the executor to set
Copyright © 2005-2016. All Rights Reserved.