Package org.apache.uima.aae.controller
Class UimacppServiceManagement
- java.lang.Object
-
- org.apache.uima.aae.controller.UimacppServiceManagement
-
- All Implemented Interfaces:
java.io.Serializable,UimacppServiceManagementMBean,org.apache.uima.resource.ManagementObject
public class UimacppServiceManagement extends java.lang.Object implements UimacppServiceManagementMBean
This class implements the JMX MBean interface to provide operational statistics about the C++ service.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UimacppServiceManagement(java.lang.String domainName, java.net.Socket sock, java.lang.String aeDescriptor, int numInstances, java.lang.String brokerURL, java.lang.String queueName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecreaseAEInstances(int num)java.lang.StringgetAEDescriptor()intgetAEInstances()longgetErrorsCPC()longgetErrorsGetMeta()longgetErrorsProcessCas()java.lang.StringgetQueueBrokerURL()java.lang.StringgetQueueName()voidgetStatistics()java.lang.StringgetStatisticsAsString()longgetTimingAnnotatorProcess()longgetTimingCPC()longgetTimingDeserialization()longgetTimingGetMeta()longgetTimingIdle()longgetTimingMessageProcessing()longgetTimingSerialization()longgetTotalNumCasProcessed()java.lang.StringgetUniqueMBeanName()voidincreaseAEInstances(int num)voidquiesceAndShutdown()java.lang.StringquiesceAndStop()voidresetStats()voidshutdown()
-
-
-
Method Detail
-
quiesceAndStop
public java.lang.String quiesceAndStop() throws java.io.IOException- Throws:
java.io.IOException
-
getStatisticsAsString
public java.lang.String getStatisticsAsString() throws java.io.IOException- Throws:
java.io.IOException
-
getStatistics
public void getStatistics() throws java.io.IOException- Throws:
java.io.IOException
-
getQueueBrokerURL
public java.lang.String getQueueBrokerURL() throws java.io.IOException- Specified by:
getQueueBrokerURLin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getQueueName
public java.lang.String getQueueName() throws java.io.IOException- Specified by:
getQueueNamein interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getAEDescriptor
public java.lang.String getAEDescriptor() throws java.io.IOException- Specified by:
getAEDescriptorin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getAEInstances
public int getAEInstances() throws java.io.IOException- Specified by:
getAEInstancesin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getErrorsGetMeta
public long getErrorsGetMeta() throws java.io.IOException- Specified by:
getErrorsGetMetain interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getErrorsProcessCas
public long getErrorsProcessCas() throws java.io.IOException- Specified by:
getErrorsProcessCasin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getErrorsCPC
public long getErrorsCPC() throws java.io.IOException- Specified by:
getErrorsCPCin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTotalNumCasProcessed
public long getTotalNumCasProcessed() throws java.io.IOException- Specified by:
getTotalNumCasProcessedin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTimingGetMeta
public long getTimingGetMeta() throws java.io.IOException- Specified by:
getTimingGetMetain interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTimingCPC
public long getTimingCPC() throws java.io.IOException- Specified by:
getTimingCPCin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTimingSerialization
public long getTimingSerialization() throws java.io.IOException- Specified by:
getTimingSerializationin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTimingAnnotatorProcess
public long getTimingAnnotatorProcess() throws java.io.IOException- Specified by:
getTimingAnnotatorProcessin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTimingDeserialization
public long getTimingDeserialization() throws java.io.IOException- Specified by:
getTimingDeserializationin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTimingMessageProcessing
public long getTimingMessageProcessing() throws java.io.IOException- Specified by:
getTimingMessageProcessingin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getTimingIdle
public long getTimingIdle() throws java.io.IOException- Specified by:
getTimingIdlein interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
resetStats
public void resetStats() throws java.io.IOException- Specified by:
resetStatsin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
increaseAEInstances
public void increaseAEInstances(int num)
- Specified by:
increaseAEInstancesin interfaceUimacppServiceManagementMBean
-
decreaseAEInstances
public void decreaseAEInstances(int num)
- Specified by:
decreaseAEInstancesin interfaceUimacppServiceManagementMBean
-
shutdown
public void shutdown() throws java.io.IOException- Specified by:
shutdownin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
getUniqueMBeanName
public java.lang.String getUniqueMBeanName()
- Specified by:
getUniqueMBeanNamein interfaceorg.apache.uima.resource.ManagementObject
-
quiesceAndShutdown
public void quiesceAndShutdown() throws java.io.IOException- Specified by:
quiesceAndShutdownin interfaceUimacppServiceManagementMBean- Throws:
java.io.IOException
-
-