Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.uima.analysis_engine
Interface AnalysisEngineManagement

All Superinterfaces:
  ManagementObject

    public interface AnalysisEngineManagement

extends ManagementObject

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

Method Summary
`long` | `getAnalysisTime()` Gets the total time this AnalysisEngine has spent doing analysis over its entire lifetime.
`long` | `getBatchProcessCompleteTime()` Gets the total time this AnalysisEngine has spent in its batchProcessComplete method over its entire lifetime.
`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.
`Map` | `getComponents()` For an Aggregate AnalysisEngine, gets a Map whose values are AnalysisEngineManagement objects that contain the statistics for the components of the aggregate.
`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.
`void` | `resetStats()` Resets all of the performance statistics to zero.

Methods inherited from interface org.apache.uima.resource.ManagementObject
`getUniqueMBeanName`

Method Detail

### 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's `getComponents()` 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 the `AnalysisEngine.process(CAS)` and `AnalysisEngine.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 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 The Apache Software Foundation. All Rights Reserved.