2
|
1 |
/*
|
5506
|
2 |
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
|
2
|
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
|
5506
|
7 |
* published by the Free Software Foundation. Oracle designates this
|
2
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
5506
|
9 |
* by Oracle in the LICENSE file that accompanied this code.
|
2
|
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 |
*
|
5506
|
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.
|
2
|
24 |
*/
|
|
25 |
package sun.management.snmp.jvminstr;
|
|
26 |
|
|
27 |
// jmx imports
|
|
28 |
//
|
|
29 |
import com.sun.jmx.snmp.SnmpStatusException;
|
|
30 |
|
|
31 |
// jdmk imports
|
|
32 |
//
|
|
33 |
|
|
34 |
|
|
35 |
import sun.management.snmp.jvmmib.JvmMemMgrPoolRelEntryMBean;
|
|
36 |
|
|
37 |
/**
|
|
38 |
* The class is used for implementing the "JvmMemMgrPoolRelEntry" group.
|
|
39 |
*/
|
|
40 |
public class JvmMemMgrPoolRelEntryImpl
|
|
41 |
implements JvmMemMgrPoolRelEntryMBean {
|
|
42 |
|
|
43 |
/**
|
|
44 |
* Variable for storing the value of "JvmMemManagerIndex".
|
|
45 |
*
|
|
46 |
* "An index opaquely computed by the agent and which uniquely
|
|
47 |
* identifies a Memory Manager."
|
|
48 |
*
|
|
49 |
*/
|
|
50 |
final protected int JvmMemManagerIndex;
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Variable for storing the value of "JvmMemPoolIndex".
|
|
54 |
*
|
|
55 |
* "An index value opaquely computed by the agent which uniquely
|
|
56 |
* identifies a row in the jvmMemPoolTable.
|
|
57 |
* "
|
|
58 |
*
|
|
59 |
*/
|
|
60 |
final protected int JvmMemPoolIndex;
|
|
61 |
final protected String mmmName;
|
|
62 |
final protected String mpmName;
|
|
63 |
|
|
64 |
/**
|
|
65 |
* Constructor for the "JvmMemMgrPoolRelEntry" group.
|
|
66 |
*/
|
|
67 |
public JvmMemMgrPoolRelEntryImpl(String mmmName,
|
|
68 |
String mpmName,
|
|
69 |
int mmarc, int mparc) {
|
|
70 |
JvmMemManagerIndex = mmarc;
|
|
71 |
JvmMemPoolIndex = mparc;
|
|
72 |
|
|
73 |
this.mmmName = mmmName;
|
|
74 |
this.mpmName = mpmName;
|
|
75 |
}
|
|
76 |
|
|
77 |
/**
|
|
78 |
* Getter for the "JvmMemMgrRelPoolName" variable.
|
|
79 |
*/
|
|
80 |
public String getJvmMemMgrRelPoolName() throws SnmpStatusException {
|
|
81 |
return JVM_MANAGEMENT_MIB_IMPL.validJavaObjectNameTC(mpmName);
|
|
82 |
}
|
|
83 |
|
|
84 |
/**
|
|
85 |
* Getter for the "JvmMemMgrRelManagerName" variable.
|
|
86 |
*/
|
|
87 |
public String getJvmMemMgrRelManagerName() throws SnmpStatusException {
|
|
88 |
return JVM_MANAGEMENT_MIB_IMPL.validJavaObjectNameTC(mmmName);
|
|
89 |
}
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Getter for the "JvmMemManagerIndex" variable.
|
|
93 |
*/
|
|
94 |
public Integer getJvmMemManagerIndex() throws SnmpStatusException {
|
|
95 |
return new Integer(JvmMemManagerIndex);
|
|
96 |
}
|
|
97 |
|
|
98 |
/**
|
|
99 |
* Getter for the "JvmMemPoolIndex" variable.
|
|
100 |
*/
|
|
101 |
public Integer getJvmMemPoolIndex() throws SnmpStatusException {
|
|
102 |
return new Integer(JvmMemPoolIndex);
|
|
103 |
}
|
|
104 |
|
|
105 |
}
|