|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.analysis_engine.impl.AnalysisEngineManagementImpl
public class AnalysisEngineManagementImpl
Implements Monitoring/Management interface to an AnalysisEngine.
| Constructor Summary | |
|---|---|
AnalysisEngineManagementImpl()
|
|
| Method Summary | |
|---|---|
void |
addComponent(java.lang.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. |
java.lang.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. |
java.util.Map<java.lang.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. |
java.lang.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. |
java.lang.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 |
setName(java.lang.String aName,
UimaContextAdmin aContext,
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnalysisEngineManagementImpl()
| Method Detail |
|---|
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 AnalysisEngineManagementgetBatchProcessCompleteTime in interface AnalysisEngineManagementImplMBeanpublic long getCollectionProcessCompleteTime()
AnalysisEngineManagement
getCollectionProcessCompleteTime in interface AnalysisEngineManagementgetCollectionProcessCompleteTime in interface AnalysisEngineManagementImplMBeanpublic long getAnalysisTime()
AnalysisEngineManagementAnalysisEngine.process(CAS) and
AnalysisEngine.processAndOutputNewCASes(CAS) methods, as well as calls to the
CasIterator returned from the processAndOutputNewCASes method.
getAnalysisTime in interface AnalysisEngineManagementgetAnalysisTime in interface AnalysisEngineManagementImplMBeanpublic long getServiceCallTime()
AnalysisEngineManagement
getServiceCallTime in interface AnalysisEngineManagementgetServiceCallTime in interface AnalysisEngineManagementImplMBeanpublic void mark()
public long getBatchProcessCompleteTimeSinceMark()
public long getCollectionProcessCompleteTimeSinceMark()
public long getAnalysisTimeSinceMark()
public long getServiceCallTimeSinceMark()
public long getNumberOfCASesProcessed()
AnalysisEngineManagement
getNumberOfCASesProcessed in interface AnalysisEngineManagementgetNumberOfCASesProcessed in interface AnalysisEngineManagementImplMBeanpublic java.lang.String getCASesPerSecond()
AnalysisEngineManagement
getCASesPerSecond in interface AnalysisEngineManagementgetCASesPerSecond in interface AnalysisEngineManagementImplMBeanpublic java.util.Map<java.lang.String,AnalysisEngineManagement> getComponents()
AnalysisEngineManagement
getComponents in interface AnalysisEngineManagement
public void addComponent(java.lang.String key,
AnalysisEngineManagementImpl component)
public java.lang.String getName()
AnalysisEngineManagementAnalysisEngineManagement.getComponents() method.
getName in interface AnalysisEngineManagementgetName in interface AnalysisEngineManagementImplMBeanpublic java.lang.String getUniqueMBeanName()
ManagementObjectIf you are running with JRE 1.5, this is the name used to register this object with the platform MBeanServer.
getUniqueMBeanName in interface ManagementObjectpublic void resetStats()
AnalysisEngineManagement
resetStats in interface AnalysisEngineManagementresetStats in interface AnalysisEngineManagementImplMBean
public void setName(java.lang.String aName,
UimaContextAdmin aContext,
java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||