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 "JvmMemoryGCCall". 43 */ 44 public class EnumJvmMemoryGCCall extends Enumerated implements Serializable { 45 46 static final long serialVersionUID = -2869147994287351375L; 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(2, "supported"); 53 intTable.put(5, "failed"); 54 intTable.put(4, "started"); 55 intTable.put(1, "unsupported"); 56 intTable.put(3, "start"); 57 stringTable.put("supported", 2); 58 stringTable.put("failed", 5); 59 stringTable.put("started", 4); 60 stringTable.put("unsupported", 1); 61 stringTable.put("start", 3); 62 } 63 64 public EnumJvmMemoryGCCall(int valueIndex) throws IllegalArgumentException { 65 super(valueIndex); 66 } 67 68 public EnumJvmMemoryGCCall(Integer valueIndex) throws IllegalArgumentException { 69 super(valueIndex); 70 } 71 72 public EnumJvmMemoryGCCall() throws IllegalArgumentException { 73 super(); 74 } 75 76 public EnumJvmMemoryGCCall(String x) throws IllegalArgumentException { 77 super(x); 78 } 79 80 protected Hashtable<Integer, String> getIntTable() { 81 return intTable ; 82 } 83 84 protected Hashtable<String, Integer> getStringTable() { 85 return stringTable ; 86 } 87 88 }