public interface StagingQueueManagementMBean
The StagingQueueManagementMBean
interface provides methods to configure the staging queue parameters.
Modifier and Type | Field and Description |
---|---|
static String |
MBEAN_NAME
The name of this MBean, equal to the string "StagingQueue".
|
static String |
OBJECT_NAME
The JMX Object Name of this MBean.
|
Modifier and Type | Method and Description |
---|---|
long |
getMaximumAge()
Get the maximum age that an item is allowed to be when it is removed and processed from the staging queue.
|
int |
getMaximumSize()
Get the maximum size of the staging queue.
|
int |
getThreadCount()
Get the number of threads processing items in the queue.
|
void |
setMaximumAge(long ms)
Set the maximum age of items removed from the staging queue for processing in ms.
|
void |
setMaximumSize(int size)
Set the maximum size of the staging queue.
|
void |
setThreadCount(int threads)
The number of threads processing items on the queue.
|
static final String MBEAN_NAME
The name of this MBean, equal to the string "StagingQueue".
static final String OBJECT_NAME
The JMX Object Name of this MBean.
void setMaximumSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Set the maximum size of the staging queue. The number of items in the queue can never exceed this amount. If the queue is full when an item is added the oldest item on the queue is discarded and the new item added.
size
- the maximum size of the staging queueConfigurationException
com.opencloud.util.exception.ValidationException
void setMaximumAge(long ms) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Set the maximum age of items removed from the staging queue for processing in ms. If an item scheduled for removal has been in the queue for longer than this amount of time it is discarded and not processed. If this is set to -1 then items do not get "too old".
ms
- the maximum amount of time (ms) an item can be in the staging queue before it is discarded, -1 for infinite amount of timeConfigurationException
com.opencloud.util.exception.ValidationException
void setThreadCount(int threads) throws ConfigurationException, com.opencloud.util.exception.ValidationException
The number of threads processing items on the queue.
threads
- the number of threadsConfigurationException
com.opencloud.util.exception.ValidationException
int getMaximumSize() throws ConfigurationException
Get the maximum size of the staging queue.
ConfigurationException
long getMaximumAge() throws ConfigurationException
Get the maximum age that an item is allowed to be when it is removed and processed from the staging queue. Items older than this will be discarded instead of processed.
ConfigurationException
int getThreadCount() throws ConfigurationException
Get the number of threads processing items in the queue.
ConfigurationException