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 void
decreaseAEInstances(int num)
java.lang.String
getAEDescriptor()
int
getAEInstances()
long
getErrorsCPC()
long
getErrorsGetMeta()
long
getErrorsProcessCas()
java.lang.String
getQueueBrokerURL()
java.lang.String
getQueueName()
void
getStatistics()
java.lang.String
getStatisticsAsString()
long
getTimingAnnotatorProcess()
long
getTimingCPC()
long
getTimingDeserialization()
long
getTimingGetMeta()
long
getTimingIdle()
long
getTimingMessageProcessing()
long
getTimingSerialization()
long
getTotalNumCasProcessed()
java.lang.String
getUniqueMBeanName()
void
increaseAEInstances(int num)
void
quiesceAndShutdown()
java.lang.String
quiesceAndStop()
void
resetStats()
void
shutdown()
-
-
-
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:
getQueueBrokerURL
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getQueueName
public java.lang.String getQueueName() throws java.io.IOException
- Specified by:
getQueueName
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getAEDescriptor
public java.lang.String getAEDescriptor() throws java.io.IOException
- Specified by:
getAEDescriptor
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getAEInstances
public int getAEInstances() throws java.io.IOException
- Specified by:
getAEInstances
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getErrorsGetMeta
public long getErrorsGetMeta() throws java.io.IOException
- Specified by:
getErrorsGetMeta
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getErrorsProcessCas
public long getErrorsProcessCas() throws java.io.IOException
- Specified by:
getErrorsProcessCas
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getErrorsCPC
public long getErrorsCPC() throws java.io.IOException
- Specified by:
getErrorsCPC
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTotalNumCasProcessed
public long getTotalNumCasProcessed() throws java.io.IOException
- Specified by:
getTotalNumCasProcessed
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTimingGetMeta
public long getTimingGetMeta() throws java.io.IOException
- Specified by:
getTimingGetMeta
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTimingCPC
public long getTimingCPC() throws java.io.IOException
- Specified by:
getTimingCPC
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTimingSerialization
public long getTimingSerialization() throws java.io.IOException
- Specified by:
getTimingSerialization
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTimingAnnotatorProcess
public long getTimingAnnotatorProcess() throws java.io.IOException
- Specified by:
getTimingAnnotatorProcess
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTimingDeserialization
public long getTimingDeserialization() throws java.io.IOException
- Specified by:
getTimingDeserialization
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTimingMessageProcessing
public long getTimingMessageProcessing() throws java.io.IOException
- Specified by:
getTimingMessageProcessing
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getTimingIdle
public long getTimingIdle() throws java.io.IOException
- Specified by:
getTimingIdle
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
resetStats
public void resetStats() throws java.io.IOException
- Specified by:
resetStats
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
increaseAEInstances
public void increaseAEInstances(int num)
- Specified by:
increaseAEInstances
in interfaceUimacppServiceManagementMBean
-
decreaseAEInstances
public void decreaseAEInstances(int num)
- Specified by:
decreaseAEInstances
in interfaceUimacppServiceManagementMBean
-
shutdown
public void shutdown() throws java.io.IOException
- Specified by:
shutdown
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
getUniqueMBeanName
public java.lang.String getUniqueMBeanName()
- Specified by:
getUniqueMBeanName
in interfaceorg.apache.uima.resource.ManagementObject
-
quiesceAndShutdown
public void quiesceAndShutdown() throws java.io.IOException
- Specified by:
quiesceAndShutdown
in interfaceUimacppServiceManagementMBean
- Throws:
java.io.IOException
-
-