Interface StagingQueueManagementMBean
-
public interface StagingQueueManagementMBeanThe
StagingQueueManagementMBeaninterface provides methods to configure the staging queue parameters.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMBEAN_NAMEThe name of this MBean, equal to the string "StagingQueue".static StringOBJECT_NAMEThe JMX Object Name of this MBean.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetMaximumAge()Get the maximum age that an item is allowed to be when it is removed and processed from the staging queue.intgetMaximumSize()Get the maximum size of the staging queue.intgetThreadCount()Get the number of threads processing items in the queue.voidsetMaximumAge(long ms)Set the maximum age of items removed from the staging queue for processing in ms.voidsetMaximumSize(int size)Set the maximum size of the staging queue.voidsetThreadCount(int threads)The number of threads processing items on the queue.
-
-
-
Field Detail
-
MBEAN_NAME
static final String MBEAN_NAME
The name of this MBean, equal to the string "StagingQueue".
- See Also:
- Constant Field Values
-
OBJECT_NAME
static final String OBJECT_NAME
The JMX Object Name of this MBean.
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMaximumSize
void setMaximumSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionSet 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.
- Parameters:
size- the maximum size of the staging queue- Throws:
ConfigurationExceptioncom.opencloud.util.exception.ValidationException
-
setMaximumAge
void setMaximumAge(long ms) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionSet 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".
- Parameters:
ms- the maximum amount of time (ms) an item can be in the staging queue before it is discarded, -1 for infinite amount of time- Throws:
ConfigurationExceptioncom.opencloud.util.exception.ValidationException
-
setThreadCount
void setThreadCount(int threads) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionThe number of threads processing items on the queue.
- Parameters:
threads- the number of threads- Throws:
ConfigurationExceptioncom.opencloud.util.exception.ValidationException
-
getMaximumSize
int getMaximumSize() throws ConfigurationExceptionGet the maximum size of the staging queue.
- Returns:
- the maximum size of the staging queue
- Throws:
ConfigurationException
-
getMaximumAge
long getMaximumAge() throws ConfigurationExceptionGet 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.
- Returns:
- the maximum age an item may be if it is to be processed, -1 if any age item can be processed
- Throws:
ConfigurationException
-
getThreadCount
int getThreadCount() throws ConfigurationExceptionGet the number of threads processing items in the queue.
- Returns:
- the number of threads processing items in the queue
- Throws:
ConfigurationException
-
-