if (serviceInfo.isCASMultiplier() && !isRemote && entry.getCasPoolMBean() != null) {
cmFreeCasInstanceCount = entry.getCasPoolMBean().getAvailableInstances();
}
long inputQueueDepth = -1;
UimaVmQueueMBean vmInputQueueInfo = null;
// if the service is colocated, get the bean object for the internal (non-jms) queue
if (entry.isVmQueue) {
vmInputQueueInfo = entry.getVmInputQueueInfo();
if (vmInputQueueInfo != null) {
inputQueueDepth = vmInputQueueInfo.getQueueSize();
}
} else {
// service is top level and uses JMS queue
inputQueueInfo = entry.getInputQueueInfo();
if (inputQueueInfo != null) {
inputQueueDepth = inputQueueInfo.getQueueSize();
}
}
long replyQueueDepth = -1; // -1 means not available
UimaVmQueueMBean vmReplyQueueInfo = null;
if (entry.isVmQueue) {
vmReplyQueueInfo = entry.getVmReplyQueueInfo();
if (vmReplyQueueInfo != null) {
replyQueueDepth = vmReplyQueueInfo.getQueueSize();
}
} else {
replyQueueInfo = entry.getReplyQueueInfo();
if (replyQueueInfo != null) {
replyQueueDepth = replyQueueInfo.getQueueSize();