content: /*
   * Copyright 1999-2018 Alibaba Group Holding Ltd.
   *
   * 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.druid.support.monitor;
  
  import java.util.Date;
  import java.util.HashMap;
  import java.util.Map;
  
  public class MonitorContext {
      public static String DEFAULT_DOMAIN;
  
      private final Map<String, Object> attributes = new HashMap<String, Object>();
  
      private String domain = "default";
      private String app = "default";
      private String cluster = "default";
      private String host;
      private int pid;
  
      private Date collectTime;
      private Date startTime;
  
      public MonitorContext() {
      }
  
      public Date getCollectTime() {
          return collectTime;
      }
  
      public void setCollectTime(Date collectTime) {
          this.collectTime = collectTime;
      }
  
      public Date getStartTime() {
          return startTime;
      }
  
      public void setStartTime(Date startTime) {
          this.startTime = startTime;
      }
  
      public Map<String, Object> getAttributes() {
          return attributes;
      }
  
      public int getPID() {
          return pid;
      }
  
      public void setPID(int pid) {
          this.pid = pid;
      }
  
      public String getHost() {
          return host;
      }
  
      public void setHost(String host) {
          this.host = host;
      }
  
      public int getPid() {
          return pid;
      }
  
      public void setPid(int pid) {
          this.pid = pid;
      }
  
      public String getDomain() {
          return domain;
      }
  
      public void setDomain(String domain) {
          this.domain = domain;
      }
  
      public String getApp() {
          return app;
      }
  
      public void setApp(String app) {
          this.app = app;
      }
  
      public String getCluster() {
          return cluster;
      }
  
      public void setCluster(String cluster) {
          this.cluster = cluster;
      }
  
  }
  