01: /*
02: * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04: *
05: * This code is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU General Public License version 2 only, as
07: * published by the Free Software Foundation. Sun designates this
08: * particular file as subject to the "Classpath" exception as provided
09: * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22: * CA 95054 USA or visit www.sun.com if you need additional information or
23: * have any 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
45: Serializable {
46:
47: protected static Hashtable<Integer, String> intTable = new Hashtable<Integer, String>();
48: protected static Hashtable<String, Integer> stringTable = new Hashtable<String, Integer>();
49: static {
50: intTable.put(new Integer(2), "supported");
51: intTable.put(new Integer(5), "failed");
52: intTable.put(new Integer(4), "started");
53: intTable.put(new Integer(1), "unsupported");
54: intTable.put(new Integer(3), "start");
55: stringTable.put("supported", new Integer(2));
56: stringTable.put("failed", new Integer(5));
57: stringTable.put("started", new Integer(4));
58: stringTable.put("unsupported", new Integer(1));
59: stringTable.put("start", new Integer(3));
60: }
61:
62: public EnumJvmMemoryGCCall(int valueIndex)
63: throws IllegalArgumentException {
64: super (valueIndex);
65: }
66:
67: public EnumJvmMemoryGCCall(Integer valueIndex)
68: throws IllegalArgumentException {
69: super (valueIndex);
70: }
71:
72: public EnumJvmMemoryGCCall() throws IllegalArgumentException {
73: super ();
74: }
75:
76: public EnumJvmMemoryGCCall(String x)
77: throws IllegalArgumentException {
78: super (x);
79: }
80:
81: protected Hashtable getIntTable() {
82: return intTable;
83: }
84:
85: protected Hashtable getStringTable() {
86: return stringTable;
87: }
88:
89: }
|