1 /*
   2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.management.snmp.jvmmib;
  27 
  28 //
  29 // Generated by mibgen version 5.0 (06/02/03) when compiling JVM-MANAGEMENT-MIB.
  30 //
  31 
  32 // java imports
  33 //
  34 import java.io.Serializable;
  35 import java.util.Hashtable;
  36 
  37 // RI imports
  38 //
  39 import com.sun.jmx.snmp.Enumerated;
  40 
  41 /**
  42  * The class is used for representing "JvmThreadContentionMonitoring".
  43  */
  44 public class EnumJvmThreadContentionMonitoring extends Enumerated implements Serializable {
  45 
  46     static final long serialVersionUID = -6411827583604137210L;
  47     protected static Hashtable<Integer, String> intTable =
  48             new Hashtable<>();
  49     protected static Hashtable<String, Integer> stringTable =
  50             new Hashtable<>();
  51     static  {
  52         intTable.put(3, "enabled");
  53         intTable.put(4, "disabled");
  54         intTable.put(1, "unsupported");
  55         stringTable.put("enabled", 3);
  56         stringTable.put("disabled", 4);
  57         stringTable.put("unsupported", 1);
  58     }
  59 
  60     public EnumJvmThreadContentionMonitoring(int valueIndex) throws IllegalArgumentException {
  61         super(valueIndex);
  62     }
  63 
  64     public EnumJvmThreadContentionMonitoring(Integer valueIndex) throws IllegalArgumentException {
  65         super(valueIndex);
  66     }
  67 
  68     public EnumJvmThreadContentionMonitoring() throws IllegalArgumentException {
  69         super();
  70     }
  71 
  72     public EnumJvmThreadContentionMonitoring(String x) throws IllegalArgumentException {
  73         super(x);
  74     }
  75 
  76     protected Hashtable<Integer,String> getIntTable() {
  77         return intTable ;
  78     }
  79 
  80     protected Hashtable<String,Integer> getStringTable() {
  81         return stringTable ;
  82     }
  83 
  84 }