org.springframework.batch.admin.jmx
Class SimpleJobExecutionMetrics

java.lang.Object
  extended by org.springframework.batch.admin.jmx.SimpleJobExecutionMetrics
All Implemented Interfaces:
JobExecutionMetrics

@ManagedResource
public class SimpleJobExecutionMetrics
extends Object
implements JobExecutionMetrics


Constructor Summary
SimpleJobExecutionMetrics(JobService jobService, String jobName)
           
 
Method Summary
 int getExecutionCount()
           
 int getFailureCount()
           
 double getLatestDuration()
           
 Date getLatestEndTime()
           
 long getLatestExecutionId()
           
 String getLatestExitCode()
           
 Date getLatestStartTime()
           
 String getLatestStatus()
           
 String getLatestStepExitDescription()
           
 String getLatestStepName()
           
 double getMaxDuration()
           
 double getMeanDuration()
           
 boolean isJobRunning()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJobExecutionMetrics

public SimpleJobExecutionMetrics(JobService jobService,
                                 String jobName)
Method Detail

getExecutionCount

public int getExecutionCount()
Specified by:
getExecutionCount in interface JobExecutionMetrics

getFailureCount

public int getFailureCount()
Specified by:
getFailureCount in interface JobExecutionMetrics

getLatestDuration

public double getLatestDuration()
Specified by:
getLatestDuration in interface JobExecutionMetrics

getMeanDuration

public double getMeanDuration()
Specified by:
getMeanDuration in interface JobExecutionMetrics

getMaxDuration

public double getMaxDuration()
Specified by:
getMaxDuration in interface JobExecutionMetrics

getLatestStartTime

public Date getLatestStartTime()
Specified by:
getLatestStartTime in interface JobExecutionMetrics

getLatestEndTime

public Date getLatestEndTime()
Specified by:
getLatestEndTime in interface JobExecutionMetrics

getLatestExitCode

public String getLatestExitCode()
Specified by:
getLatestExitCode in interface JobExecutionMetrics

getLatestStatus

public String getLatestStatus()
Specified by:
getLatestStatus in interface JobExecutionMetrics

getLatestExecutionId

public long getLatestExecutionId()
Specified by:
getLatestExecutionId in interface JobExecutionMetrics

getLatestStepExitDescription

public String getLatestStepExitDescription()
Specified by:
getLatestStepExitDescription in interface JobExecutionMetrics

getLatestStepName

public String getLatestStepName()
Specified by:
getLatestStepName in interface JobExecutionMetrics

isJobRunning

public boolean isJobRunning()
Specified by:
isJobRunning in interface JobExecutionMetrics


Copyright © 2011. All Rights Reserved.