public interface StagingQueueManagementMBean
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
static final String OBJECT_NAME
void setMaximumSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationException
size
- the maximum size of the staging queueConfigurationException
com.opencloud.util.exception.ValidationException
void setMaximumAge(long ms) throws ConfigurationException, com.opencloud.util.exception.ValidationException
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
threads
- the number of threadsConfigurationException
com.opencloud.util.exception.ValidationException
int getMaximumSize() throws ConfigurationException
ConfigurationException
long getMaximumAge() throws ConfigurationException
ConfigurationException
int getThreadCount() throws ConfigurationException
ConfigurationException