org.apache.uima.aae.jmx
Class ServicePerformance

java.lang.Object
  extended by org.apache.uima.aae.jmx.ServicePerformance
All Implemented Interfaces:
java.io.Serializable, ServicePerformanceMBean

public class ServicePerformance
extends java.lang.Object
implements ServicePerformanceMBean

See Also:
Serialized Form

Constructor Summary
ServicePerformance()
           
ServicePerformance(AnalysisEngineController aController)
           
 
Method Summary
 void beginGetNextWait()
           
 void beginWaitOnCASPool()
           
 void beginWaitOnShadowCASPool()
           
 void endGetNextWait()
           
 void endWaitOnCASPool()
           
 void endWaitOnShadowCASPool()
           
 double getAnalysisTime()
           
 double getCasDeserializationTime()
           
 double getCasPoolWaitTime()
           
 double getCasSerializationTime()
           
 double getIdleTime()
           
 java.lang.String getLabel()
           
 double getMaxAnalysisTime()
           
 double getMaxDeserializationTime()
           
 double getMaxSerializationTime()
           
 long getNumberOfCASesProcessed()
           
 int getProcessThreadCount()
           
 long getRawAnalysisTime()
           
 long getRawCasDeserializationTime()
           
 long getRawCasPoolWaitTime()
           
 long getRawCasSerializationTime()
           
 long getRawIdleTime()
           
 int getReplyThreadCount()
           
 double getShadowCasPoolWaitTime()
           
 double getTimeSpentInCMGetNext()
           
 long getTimeWaitingForCAS()
           
 long getTimeWaitingForShadowPoolCAS()
           
 long getTimeWaitingInGetNext()
           
 void incrementAnalysisTime(long anAnalysisTime)
           
 void incrementCasDeserializationTime(long aCasDeserializationTime)
           
 void incrementCasPoolWaitTime(long aCasPoolsWaitTime)
           
 void incrementCasSerializationTime(long casSerializationTime)
           
 void incrementIdleTime(long anIdleTime)
           
 void incrementNumberOfCASesProcessed()
           
 void reset()
           
 void setAnalysisTime(long anAnalysisTime)
          Adjust the analysis time.
 void setIdleTime(long anIdleTime)
           
 void setProcessThreadCount(int processThreadCount)
           
 void setRemoteDelegate()
           
 void setReplyThreadCount(int replyThreadCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePerformance

public ServicePerformance()

ServicePerformance

public ServicePerformance(AnalysisEngineController aController)
Method Detail

setRemoteDelegate

public void setRemoteDelegate()

getLabel

public java.lang.String getLabel()

reset

public void reset()
Specified by:
reset in interface ServicePerformanceMBean

setIdleTime

public void setIdleTime(long anIdleTime)

getIdleTime

public double getIdleTime()
Specified by:
getIdleTime in interface ServicePerformanceMBean

getRawIdleTime

public long getRawIdleTime()

incrementIdleTime

public void incrementIdleTime(long anIdleTime)

setAnalysisTime

public void setAnalysisTime(long anAnalysisTime)
Adjust the analysis time. This method is called when a reply is received from a remote delegate. Each reply message containing a CAS include the current actual analysis time This is not a delta, its the running analysis time.

Parameters:
anAnalysisTime -

incrementAnalysisTime

public void incrementAnalysisTime(long anAnalysisTime)

getAnalysisTime

public double getAnalysisTime()
Specified by:
getAnalysisTime in interface ServicePerformanceMBean

getRawAnalysisTime

public long getRawAnalysisTime()

getNumberOfCASesProcessed

public long getNumberOfCASesProcessed()
Specified by:
getNumberOfCASesProcessed in interface ServicePerformanceMBean

incrementNumberOfCASesProcessed

public void incrementNumberOfCASesProcessed()

getCasDeserializationTime

public double getCasDeserializationTime()
Specified by:
getCasDeserializationTime in interface ServicePerformanceMBean

getRawCasDeserializationTime

public long getRawCasDeserializationTime()

incrementCasDeserializationTime

public void incrementCasDeserializationTime(long aCasDeserializationTime)

getCasSerializationTime

public double getCasSerializationTime()
Specified by:
getCasSerializationTime in interface ServicePerformanceMBean

getRawCasSerializationTime

public long getRawCasSerializationTime()

incrementCasSerializationTime

public void incrementCasSerializationTime(long casSerializationTime)

getMaxSerializationTime

public double getMaxSerializationTime()

getMaxDeserializationTime

public double getMaxDeserializationTime()

getMaxAnalysisTime

public double getMaxAnalysisTime()

incrementCasPoolWaitTime

public void incrementCasPoolWaitTime(long aCasPoolsWaitTime)

getCasPoolWaitTime

public double getCasPoolWaitTime()
Specified by:
getCasPoolWaitTime in interface ServicePerformanceMBean

getRawCasPoolWaitTime

public long getRawCasPoolWaitTime()

getShadowCasPoolWaitTime

public double getShadowCasPoolWaitTime()
Specified by:
getShadowCasPoolWaitTime in interface ServicePerformanceMBean

getTimeSpentInCMGetNext

public double getTimeSpentInCMGetNext()
Specified by:
getTimeSpentInCMGetNext in interface ServicePerformanceMBean

beginWaitOnCASPool

public void beginWaitOnCASPool()

endWaitOnCASPool

public void endWaitOnCASPool()

getTimeWaitingForCAS

public long getTimeWaitingForCAS()

beginWaitOnShadowCASPool

public void beginWaitOnShadowCASPool()

endWaitOnShadowCASPool

public void endWaitOnShadowCASPool()

getTimeWaitingForShadowPoolCAS

public long getTimeWaitingForShadowPoolCAS()

beginGetNextWait

public void beginGetNextWait()

endGetNextWait

public void endGetNextWait()

getTimeWaitingInGetNext

public long getTimeWaitingInGetNext()

getProcessThreadCount

public int getProcessThreadCount()
Specified by:
getProcessThreadCount in interface ServicePerformanceMBean

setProcessThreadCount

public void setProcessThreadCount(int processThreadCount)

getReplyThreadCount

public int getReplyThreadCount()
Specified by:
getReplyThreadCount in interface ServicePerformanceMBean

setReplyThreadCount

public void setReplyThreadCount(int replyThreadCount)
Specified by:
setReplyThreadCount in interface ServicePerformanceMBean


Copyright © 2011. All Rights Reserved.