Package org.apache.uima.analysis_engine
Interface AnalysisEngineManagement
- All Superinterfaces:
ManagementObject
- All Known Implementing Classes:
AnalysisEngineManagementImpl
Monitoring and management interface to an AnalysisEngine. An application can obtain an instance
of this object by calling
AnalysisEngine.getManagementInterface()
.
In this implementation, objects implementing this interface will always be JMX-compatible MBeans that you can register with an MBeanServer. For information on JMX see http://java.sun.com/j2se/1.5.0/docs/api/javax/management/package-summary.html
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the total time this AnalysisEngine has spent doing analysis over its entire lifetime.long
Gets the total time this AnalysisEngine has spent in its batchProcessComplete method over its entire lifetime.Gets the throughput of this AnalysisEngine, represented as number of CASes processed per second.long
Gets the total time this AnalysisEngine has spent in its collectionProcessComplete method over its entire lifetime.For an Aggregate AnalysisEngine, gets a Map whose values are AnalysisEngineManagement objects that contain the statistics for the components of the aggregate.long
Total time it took AnalysisEngine to initializegetName()
Gets a name for this AnalysisEngineManagement object, which will be unique among all of its siblings (i.e.long
Gets the total number of CASes this AnalysisEngine has processed over its lifetime.long
If this AnalysisEngine is a proxy to a remote service, gets the total time spent making calls on that service.getState()
Gets the current state of an AnalysisEngine.long
Gets an id of a thread that was used to initialize AE instancevoid
Resets all of the performance statistics to zero.Methods inherited from interface org.apache.uima.resource.ManagementObject
getUniqueMBeanName
-
Method Details
-
getName
String getName()Gets a name for this AnalysisEngineManagement object, which will be unique among all of its siblings (i.e. the objects returned from its parent'sgetComponents()
method.- Returns:
- a name for this AnalysisEngineManagement object
-
getAnalysisTime
long getAnalysisTime()Gets the total time this AnalysisEngine has spent doing analysis over its entire lifetime. This includes calls to theAnalysisEngine.process(CAS)
andAnalysisEngine.processAndOutputNewCASes(CAS)
methods, as well as calls to the CasIterator returned from the processAndOutputNewCASes method.- Returns:
- the analysis time time in milliseconds
-
getBatchProcessCompleteTime
long getBatchProcessCompleteTime()Gets the total time this AnalysisEngine has spent in its batchProcessComplete method over its entire lifetime.- Returns:
- the batch process complete time in milliseconds
-
getCollectionProcessCompleteTime
long getCollectionProcessCompleteTime()Gets the total time this AnalysisEngine has spent in its collectionProcessComplete method over its entire lifetime.- Returns:
- the batch process complete time in milliseconds
-
getServiceCallTime
long getServiceCallTime()If this AnalysisEngine is a proxy to a remote service, gets the total time spent making calls on that service.- Returns:
- the service call time in milliseconds, or 0 if this AnalysisEngine is not a proxy to a service
-
getNumberOfCASesProcessed
long getNumberOfCASesProcessed()Gets the total number of CASes this AnalysisEngine has processed over its lifetime. For a CAS Multipliers, this includes both input and output CASes.- Returns:
- the number of CASes processed
-
getCASesPerSecond
String getCASesPerSecond()Gets the throughput of this AnalysisEngine, represented as number of CASes processed per second.- Returns:
- a string representation of the throughput
-
getComponents
Map<String,AnalysisEngineManagement> getComponents()For an Aggregate AnalysisEngine, gets a Map whose values are AnalysisEngineManagement objects that contain the statistics for the components of the aggregate. The keys in the Map are the unique String keys specified in the aggregate AnalysisEngine descriptor. If this AnalysisEngine is a primitive, returns an empty Map.- Returns:
- a map from String keys to AnalysisEngineManagement objects
-
resetStats
void resetStats()Resets all of the performance statistics to zero. For an Aggregate Analysis Engine, also resets the statistics for all the components of the aggregate. -
getState
String getState()Gets the current state of an AnalysisEngine. The AE should either be in Initializing or Ready state.- Returns:
- the state of the analysis engine, from the State enum above
-
getThreadId
long getThreadId()Gets an id of a thread that was used to initialize AE instance- Returns:
- - thread id
-
getInitializationTime
long getInitializationTime()Total time it took AnalysisEngine to initialize- Returns:
- - initialization time
-