public class AnalysisEngineManagementImpl extends Object implements AnalysisEngineManagementImplMBean, AnalysisEngineManagement
AnalysisEngineManagement.State
Constructor and Description |
---|
AnalysisEngineManagementImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(String key,
AnalysisEngineManagementImpl component) |
long |
getAnalysisTime()
Gets the total time this AnalysisEngine has spent doing analysis over its entire lifetime.
|
long |
getAnalysisTimeSinceMark()
Internal use only.
|
long |
getBatchProcessCompleteTime()
Gets the total time this AnalysisEngine has spent in its batchProcessComplete method over its
entire lifetime.
|
long |
getBatchProcessCompleteTimeSinceMark()
Internal use only.
|
String |
getCASesPerSecond()
Gets the throughput of this AnalysisEngine, represented as number of CASes processed per
second.
|
long |
getCollectionProcessCompleteTime()
Gets the total time this AnalysisEngine has spent in its collectionProcessComplete method over
its entire lifetime.
|
long |
getCollectionProcessCompleteTimeSinceMark()
Internal use only.
|
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.
|
long |
getInitializationTime()
Total time it took AnalysisEngine to initialize
|
String |
getName()
Gets a name for this AnalysisEngineManagement object, which will be unique among all of its
siblings (i.e.
|
long |
getNumberOfCASesProcessed()
Gets the total number of CASes this AnalysisEngine has processed over its lifetime.
|
long |
getServiceCallTime()
If this AnalysisEngine is a proxy to a remote service, gets the total time spent making calls
on that service.
|
long |
getServiceCallTimeSinceMark()
Internal use only.
|
String |
getState()
Gets the current state of an AnalysisEngine.
|
long |
getThreadId()
Gets an id of a thread that was used to initialize AE instance
|
String |
getUniqueMBeanName()
Gets a valid JMX MBean name that is unique among all ManagementObjects in this
JVM.
|
void |
incrementCASesProcessed() |
void |
mark()
Internal use only.
|
void |
reportAnalysisTime(long time) |
void |
reportBatchProcessCompleteTime(long time) |
void |
reportCollectionProcessCompleteTime(long time) |
void |
reportServiceCallTime(long time) |
void |
resetStats()
Resets all of the performance statistics to zero.
|
void |
setInitializationTime(long initializationTime) |
void |
setName(String aName,
UimaContextAdmin aContext,
String aCustomPrefix)
Sets the name of this AnalyaisEngineManagement object, and also computes the unique MBean name
that can later be used to register this object with an MBeanServer.
|
void |
setState(AnalysisEngineManagement.State state) |
public long getInitializationTime()
AnalysisEngineManagement
getInitializationTime
in interface AnalysisEngineManagement
getInitializationTime
in interface AnalysisEngineManagementImplMBean
public void setInitializationTime(long initializationTime)
public long getThreadId()
AnalysisEngineManagement
getThreadId
in interface AnalysisEngineManagement
getThreadId
in interface AnalysisEngineManagementImplMBean
public String getState()
AnalysisEngineManagement
getState
in interface AnalysisEngineManagement
getState
in interface AnalysisEngineManagementImplMBean
public void setState(AnalysisEngineManagement.State state)
public void reportAnalysisTime(long time)
public void reportBatchProcessCompleteTime(long time)
public void reportCollectionProcessCompleteTime(long time)
public void reportServiceCallTime(long time)
public void incrementCASesProcessed()
public long getBatchProcessCompleteTime()
AnalysisEngineManagement
getBatchProcessCompleteTime
in interface AnalysisEngineManagement
getBatchProcessCompleteTime
in interface AnalysisEngineManagementImplMBean
public long getCollectionProcessCompleteTime()
AnalysisEngineManagement
getCollectionProcessCompleteTime
in interface AnalysisEngineManagement
getCollectionProcessCompleteTime
in interface AnalysisEngineManagementImplMBean
public long getAnalysisTime()
AnalysisEngineManagement
AnalysisEngine.process(CAS)
and
AnalysisEngine.processAndOutputNewCASes(CAS)
methods, as well as calls to the
CasIterator returned from the processAndOutputNewCASes method.getAnalysisTime
in interface AnalysisEngineManagement
getAnalysisTime
in interface AnalysisEngineManagementImplMBean
public long getServiceCallTime()
AnalysisEngineManagement
getServiceCallTime
in interface AnalysisEngineManagement
getServiceCallTime
in interface AnalysisEngineManagementImplMBean
public void mark()
public long getBatchProcessCompleteTimeSinceMark()
public long getCollectionProcessCompleteTimeSinceMark()
public long getAnalysisTimeSinceMark()
public long getServiceCallTimeSinceMark()
public long getNumberOfCASesProcessed()
AnalysisEngineManagement
getNumberOfCASesProcessed
in interface AnalysisEngineManagement
getNumberOfCASesProcessed
in interface AnalysisEngineManagementImplMBean
public String getCASesPerSecond()
AnalysisEngineManagement
getCASesPerSecond
in interface AnalysisEngineManagement
getCASesPerSecond
in interface AnalysisEngineManagementImplMBean
public Map<String,AnalysisEngineManagement> getComponents()
AnalysisEngineManagement
getComponents
in interface AnalysisEngineManagement
public void addComponent(String key, AnalysisEngineManagementImpl component)
public String getName()
AnalysisEngineManagement
AnalysisEngineManagement.getComponents()
method.getName
in interface AnalysisEngineManagement
getName
in interface AnalysisEngineManagementImplMBean
public String getUniqueMBeanName()
ManagementObject
If you are running with JRE 1.5, this is the name used to register this object with the platform MBeanServer.
getUniqueMBeanName
in interface ManagementObject
public void resetStats()
AnalysisEngineManagement
resetStats
in interface AnalysisEngineManagement
resetStats
in interface AnalysisEngineManagementImplMBean
public void setName(String aName, UimaContextAdmin aContext, String aCustomPrefix)
aName
- the simple name of this AnalysisEngine (generally this is the name
property from the AnalysisEngineMetaData)aContext
- the UimaContext for this AnalysisEngine. Needed to compute the unique name, which is
hierarchicalaCustomPrefix
- an optional prefix provided by the Application, which will be
prepended to the name generated by UIMA. If null, the prefix
"org.apache.uima:" will be used.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.