jdk/src/jdk.snmp/share/classes/sun/management/snmp/jvmmib/EnumJvmMemPoolState.java
changeset 27285 1b4ca1c84d23
parent 27284 98699328cef3
parent 27263 819f5f87d485
child 27288 a3f652a37d1e
child 27503 b75a635f1ff3
equal deleted inserted replaced
27284:98699328cef3 27285:1b4ca1c84d23
     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 "JvmMemPoolState".
       
    43  */
       
    44 public class EnumJvmMemPoolState extends Enumerated implements Serializable {
       
    45 
       
    46     static final long serialVersionUID = 3038175407527743027L;
       
    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, "valid");
       
    53         intTable.put(1, "invalid");
       
    54         stringTable.put("valid", 2);
       
    55         stringTable.put("invalid", 1);
       
    56     }
       
    57 
       
    58     public EnumJvmMemPoolState(int valueIndex) throws IllegalArgumentException {
       
    59         super(valueIndex);
       
    60     }
       
    61 
       
    62     public EnumJvmMemPoolState(Integer valueIndex) throws IllegalArgumentException {
       
    63         super(valueIndex);
       
    64     }
       
    65 
       
    66     public EnumJvmMemPoolState() throws IllegalArgumentException {
       
    67         super();
       
    68     }
       
    69 
       
    70     public EnumJvmMemPoolState(String x) throws IllegalArgumentException {
       
    71         super(x);
       
    72     }
       
    73 
       
    74     protected Hashtable<Integer,String> getIntTable() {
       
    75         return intTable ;
       
    76     }
       
    77 
       
    78     protected Hashtable<String,Integer> getStringTable() {
       
    79         return stringTable ;
       
    80     }
       
    81 
       
    82 }