类 SimpleMetric

  • 所有已实现的接口:
    javax.batch.runtime.Metric

    public class SimpleMetric
    extends java.lang.Object
    implements javax.batch.runtime.Metric
    Simple implementation of the Metric interface as required by JSR-352.
    从以下版本开始:
    3.0
    作者:
    Michael Minella
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 javax.batch.runtime.Metric

        javax.batch.runtime.Metric.MetricType
    • 构造器概要

      构造器 
      构造器说明
      SimpleMetric​(javax.batch.runtime.Metric.MetricType type, long value)
      Basic constructor.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      javax.batch.runtime.Metric.MetricTypegetType() 
      longgetValue() 
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SimpleMetric

        public SimpleMetric​(javax.batch.runtime.Metric.MetricType type,
                            long value)
        Basic constructor. The attributes are immutable so this class is thread-safe.
        参数:
        type - as defined by JSR-352
        value - the count of the times the related type has occurred.
    • 方法详细资料

      • getType

        public javax.batch.runtime.Metric.MetricType getType()
        指定者:
        getType 在接口中 javax.batch.runtime.Metric
      • getValue

        public long getValue()
        指定者:
        getValue 在接口中 javax.batch.runtime.Metric