content: /*
   * Copyright (C) 2010-2101 Alibaba Group Holding Limited.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package com.alibaba.otter.shared.common.model.statistics.stage;
  
  import java.io.Serializable;
  import java.util.Map;
  
  import org.apache.commons.lang.builder.ToStringBuilder;
  
  import com.alibaba.otter.shared.common.model.config.enums.StageType;
  import com.alibaba.otter.shared.common.utils.OtterToStringStyle;
  
  /**
   * @author jianghang 2011-9-8 下午12:41:20
   */
  public class StageStat implements Serializable {
  
      private static final long serialVersionUID = 8751367492373579459L;
      private Long              pipelineId;
      private Long              processId;
      private StageType         stage;                                  // 对应的阶段
      private Long              startTime;                              // 开始时间
      private Long              endTime;                                // 结束时间
      private Long              number;                                 // 处理的数据量
      private Long              size;                                   // 处理的数据大小
      private Map               exts;                                   // 扩展信息字段
  
      public Long getPipelineId() {
          return pipelineId;
      }
  
      public void setPipelineId(Long pipelineId) {
          this.pipelineId = pipelineId;
      }
  
      public Long getProcessId() {
          return processId;
      }
  
      public void setProcessId(Long processId) {
          this.processId = processId;
      }
  
      public StageType getStage() {
          return stage;
      }
  
      public void setStage(StageType stage) {
          this.stage = stage;
      }
  
      public Long getStartTime() {
          return startTime;
      }
  
      public void setStartTime(Long startTime) {
          this.startTime = startTime;
      }
  
      public Long getEndTime() {
          return endTime;
      }
  
      public void setEndTime(Long endTime) {
          this.endTime = endTime;
      }
  
      public Long getNumber() {
          return number;
      }
  
      public void setNumber(Long number) {
          this.number = number;
      }
  
      public Long getSize() {
          return size;
      }
  
      public void setSize(Long size) {
          this.size = size;
      }
  
      public Map getExts() {
          return exts;
      }
  
      public void setExts(Map exts) {
          this.exts = exts;
      }
  
      @Override
      public String toString() {
          return ToStringBuilder.reflectionToString(this, OtterToStringStyle.DEFAULT_STYLE);
      }
  }
  