KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > snmp4j > agent > mo > jmx > mibs > JvmManagementMib


1 /*_############################################################################
2   _##
3   _## SNMP4J-AgentJMX - JvmManagementMib.java
4   _##
5   _## Copyright (C) 2006-2007 Frank Fock (SNMP4J.org)
6   _##
7   _## This program is free software; you can redistribute it and/or modify
8   _## it under the terms of the GNU General Public License version 2 as
9   _## published by the Free Software Foundation.
10   _##
11   _## This program is distributed in the hope that it will be useful,
12   _## but WITHOUT ANY WARRANTY; without even the implied warranty of
13   _## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   _## GNU General Public License for more details.
15   _##
16   _## You should have received a copy of the GNU General Public License
17   _## along with this program; if not, write to the Free Software
18   _## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19   _## MA 02110-1301 USA
20   _##
21   _##########################################################################*/

22
23 package org.snmp4j.agent.mo.jmx.mibs;
24
25 //--AgentGen BEGIN=_BEGIN
26
//--AgentGen END
27

28 import org.snmp4j.smi.*;
29 import org.snmp4j.mp.SnmpConstants;
30 import org.snmp4j.agent.*;
31 import org.snmp4j.agent.mo.*;
32 import org.snmp4j.agent.mo.snmp.*;
33 import org.snmp4j.agent.mo.snmp.smi.*;
34 import org.snmp4j.agent.request.*;
35 import org.snmp4j.log.LogFactory;
36 import org.snmp4j.log.LogAdapter;
37
38 import org.snmp4j.agent.mo.jmx.*;
39
40 //--AgentGen BEGIN=_IMPORT
41
//--AgentGen END
42

43 public class JvmManagementMib
44 //--AgentGen BEGIN=_EXTENDS
45
//--AgentGen END
46
implements MOGroup
47 //--AgentGen BEGIN=_IMPLEMENTS
48
//--AgentGen END
49
{
50
51   private static final LogAdapter LOGGER =
52       LogFactory.getLogger(JvmManagementMib.class);
53
54 //--AgentGen BEGIN=_STATIC
55
//--AgentGen END
56

57   // Factory
58
private MOFactory moFactory =
59     DefaultMOFactory.getInstance();
60
61   // Constants
62
public static final OID oidJvmClassesLoadedCount =
63     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,1,1,0 });
64   public static final OID oidJvmClassesTotalLoadedCount =
65     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,1,2,0 });
66   public static final OID oidJvmClassesUnloadedCount =
67     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,1,3,0 });
68   public static final OID oidJvmClassesVerboseLevel =
69     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,1,4,0 });
70   public static final OID oidJvmMemoryPendingFinalCount =
71     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,1,0 });
72   public static final OID oidJvmMemoryGCVerboseLevel =
73     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,2,0 });
74   public static final OID oidJvmMemoryGCCall =
75     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,3,0 });
76   public static final OID oidJvmMemoryHeapInitSize =
77     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,10,0 });
78   public static final OID oidJvmMemoryHeapUsed =
79     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,11,0 });
80   public static final OID oidJvmMemoryHeapCommitted =
81     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,12,0 });
82   public static final OID oidJvmMemoryHeapMaxSize =
83     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,13,0 });
84   public static final OID oidJvmMemoryNonHeapInitSize =
85     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,20,0 });
86   public static final OID oidJvmMemoryNonHeapUsed =
87     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,21,0 });
88   public static final OID oidJvmMemoryNonHeapCommitted =
89     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,22,0 });
90   public static final OID oidJvmMemoryNonHeapMaxSize =
91     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,23,0 });
92   public static final OID oidJvmThreadCount =
93     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,1,0 });
94   public static final OID oidJvmThreadDaemonCount =
95     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,2,0 });
96   public static final OID oidJvmThreadPeakCount =
97     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,3,0 });
98   public static final OID oidJvmThreadTotalStartedCount =
99     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,4,0 });
100   public static final OID oidJvmThreadContentionMonitoring =
101     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,5,0 });
102   public static final OID oidJvmThreadCpuTimeMonitoring =
103     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,6,0 });
104   public static final OID oidJvmThreadPeakCountReset =
105     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,7,0 });
106   public static final OID oidJvmRTName =
107     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,1,0 });
108   public static final OID oidJvmRTVMName =
109     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,2,0 });
110   public static final OID oidJvmRTVMVendor =
111     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,3,0 });
112   public static final OID oidJvmRTVMVersion =
113     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,4,0 });
114   public static final OID oidJvmRTSpecName =
115     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,5,0 });
116   public static final OID oidJvmRTSpecVendor =
117     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,6,0 });
118   public static final OID oidJvmRTSpecVersion =
119     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,7,0 });
120   public static final OID oidJvmRTManagementSpecVersion =
121     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,8,0 });
122   public static final OID oidJvmRTBootClassPathSupport =
123     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,9,0 });
124   public static final OID oidJvmRTInputArgsCount =
125     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,10,0 });
126   public static final OID oidJvmRTUptimeMs =
127     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,11,0 });
128   public static final OID oidJvmRTStartTimeMs =
129     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,12,0 });
130   public static final OID oidJvmJITCompilerName =
131     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,5,1,0 });
132   public static final OID oidJvmJITCompilerTimeMs =
133     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,5,2,0 });
134   public static final OID oidJvmJITCompilerTimeMonitoring =
135     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,5,3,0 });
136   public static final OID oidJvmOSName =
137     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,6,1,0 });
138   public static final OID oidJvmOSArch =
139     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,6,2,0 });
140   public static final OID oidJvmOSVersion =
141     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,6,3,0 });
142   public static final OID oidJvmOSProcessorCount =
143     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,6,4,0 });
144   public static final OID oidJvmLowMemoryPoolUsageNotif =
145     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,2,2,1,0,1 });
146   public static final OID oidTrapVarJvmMemPoolName =
147     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,110,1,2 });
148   public static final OID oidTrapVarJvmMemPoolUsed =
149     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,110,1,11 });
150   public static final OID oidTrapVarJvmMemPoolThreshdCount =
151     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,110,1,111 });
152
153   public static final OID oidJvmLowMemoryPoolCollectNotif =
154     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,2,2,1,0,2 });
155   public static final OID oidTrapVarJvmMemPoolCollectUsed =
156     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,110,1,31 });
157   public static final OID oidTrapVarJvmMemPoolCollectThreshdCount =
158     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,110,1,132 });
159
160
161   // Enumerations
162
public static final class JvmClassesVerboseLevelEnum {
163     public static final int silent = 1;
164     public static final int verbose = 2;
165   }
166   public static final class JvmMemoryGCVerboseLevelEnum {
167     public static final int silent = 1;
168     public static final int verbose = 2;
169   }
170   public static final class JvmMemoryGCCallEnum {
171     public static final int unsupported = 1;
172     public static final int supported = 2;
173     public static final int start = 3;
174     public static final int started = 4;
175     public static final int failed = 5;
176   }
177   public static final class JvmThreadContentionMonitoringEnum {
178     public static final int unsupported = 1;
179     public static final int enabled = 3;
180     public static final int disabled = 4;
181   }
182   public static final class JvmThreadCpuTimeMonitoringEnum {
183     public static final int unsupported = 1;
184     public static final int enabled = 3;
185     public static final int disabled = 4;
186   }
187   public static final class JvmRTBootClassPathSupportEnum {
188     public static final int unsupported = 1;
189     public static final int supported = 2;
190   }
191   public static final class JvmJITCompilerTimeMonitoringEnum {
192     public static final int unsupported = 1;
193     public static final int supported = 2;
194   }
195
196
197   // TextualConventions
198
private static final String JavaDoc TC_MODULE_SNMPV2_TC = "SNMPv2-TC";
199   private static final String JavaDoc TC_MODULE_JVM_MANAGEMENT_MIB = "JVM-MANAGEMENT-MIB";
200   private static final String JavaDoc TC_DISPLAYSTRING = "DisplayString";
201   private static final String JavaDoc TC_JVMJAVAOBJECTNAMETC = "JvmJavaObjectNameTC";
202   private static final String JavaDoc TC_JVMIMPLSUPPORTSTATETC = "JvmImplSupportStateTC";
203   private static final String JavaDoc TC_JVMUNSIGNED64TC = "JvmUnsigned64TC";
204   private static final String JavaDoc TC_JVMPOSITIVE32TC = "JvmPositive32TC";
205   private static final String JavaDoc TC_JVMIMPLOPTFEATURESTATETC = "JvmImplOptFeatureStateTC";
206   private static final String JavaDoc TC_JVMVERBOSELEVELTC = "JvmVerboseLevelTC";
207   private static final String JavaDoc TC_JVMTIMEMILLIS64TC = "JvmTimeMillis64TC";
208
209   // Scalars
210
private MOScalar jvmClassesLoadedCount;
211   private MOScalar jvmClassesTotalLoadedCount;
212   private MOScalar jvmClassesUnloadedCount;
213   private MOScalar jvmClassesVerboseLevel;
214   private MOScalar jvmMemoryPendingFinalCount;
215   private MOScalar jvmMemoryGCVerboseLevel;
216   private MOScalar jvmMemoryGCCall;
217   private MOScalar jvmMemoryHeapInitSize;
218   private MOScalar jvmMemoryHeapUsed;
219   private MOScalar jvmMemoryHeapCommitted;
220   private MOScalar jvmMemoryHeapMaxSize;
221   private MOScalar jvmMemoryNonHeapInitSize;
222   private MOScalar jvmMemoryNonHeapUsed;
223   private MOScalar jvmMemoryNonHeapCommitted;
224   private MOScalar jvmMemoryNonHeapMaxSize;
225   private MOScalar jvmThreadCount;
226   private MOScalar jvmThreadDaemonCount;
227   private MOScalar jvmThreadPeakCount;
228   private MOScalar jvmThreadTotalStartedCount;
229   private MOScalar jvmThreadContentionMonitoring;
230   private MOScalar jvmThreadCpuTimeMonitoring;
231   private MOScalar jvmThreadPeakCountReset;
232   private MOScalar jvmRTName;
233   private MOScalar jvmRTVMName;
234   private MOScalar jvmRTVMVendor;
235   private MOScalar jvmRTVMVersion;
236   private MOScalar jvmRTSpecName;
237   private MOScalar jvmRTSpecVendor;
238   private MOScalar jvmRTSpecVersion;
239   private MOScalar jvmRTManagementSpecVersion;
240   private MOScalar jvmRTBootClassPathSupport;
241   private MOScalar jvmRTInputArgsCount;
242   private MOScalar jvmRTUptimeMs;
243   private MOScalar jvmRTStartTimeMs;
244   private MOScalar jvmJITCompilerName;
245   private MOScalar jvmJITCompilerTimeMs;
246   private MOScalar jvmJITCompilerTimeMonitoring;
247   private MOScalar jvmOSName;
248   private MOScalar jvmOSArch;
249   private MOScalar jvmOSVersion;
250   private MOScalar jvmOSProcessorCount;
251
252   // Tables
253
public static final OID oidJvmMemManagerEntry =
254     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,100,1 });
255
256   // Column sub-identifer defintions for jvmMemManagerEntry:
257
public static final int colJvmMemManagerName = 2;
258   public static final int colJvmMemManagerState = 3;
259
260   // Column index defintions for jvmMemManagerEntry:
261
public static final int idxJvmMemManagerName = 0;
262   public static final int idxJvmMemManagerState = 1;
263
264   private MOTableSubIndex[] jvmMemManagerEntryIndexes;
265   private MOTableIndex jvmMemManagerEntryIndex;
266
267   private MOTable jvmMemManagerEntry;
268   private MOTableModel jvmMemManagerEntryModel;
269   public static final OID oidJvmMemGCEntry =
270     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,101,1 });
271
272   // Column sub-identifer defintions for jvmMemGCEntry:
273
public static final int colJvmMemGCCount = 2;
274   public static final int colJvmMemGCTimeMs = 3;
275
276   // Column index defintions for jvmMemGCEntry:
277
public static final int idxJvmMemGCCount = 0;
278   public static final int idxJvmMemGCTimeMs = 1;
279
280   private MOTableSubIndex[] jvmMemGCEntryIndexes;
281   private MOTableIndex jvmMemGCEntryIndex;
282
283   private MOTable jvmMemGCEntry;
284   private MOTableModel jvmMemGCEntryModel;
285   public static final OID oidJvmMemPoolEntry =
286     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,110,1 });
287
288   // Column sub-identifer defintions for jvmMemPoolEntry:
289
public static final int colJvmMemPoolName = 2;
290   public static final int colJvmMemPoolType = 3;
291   public static final int colJvmMemPoolState = 4;
292   public static final int colJvmMemPoolPeakReset = 5;
293   public static final int colJvmMemPoolInitSize = 10;
294   public static final int colJvmMemPoolUsed = 11;
295   public static final int colJvmMemPoolCommitted = 12;
296   public static final int colJvmMemPoolMaxSize = 13;
297   public static final int colJvmMemPoolPeakUsed = 21;
298   public static final int colJvmMemPoolPeakCommitted = 22;
299   public static final int colJvmMemPoolPeakMaxSize = 23;
300   public static final int colJvmMemPoolCollectUsed = 31;
301   public static final int colJvmMemPoolCollectCommitted = 32;
302   public static final int colJvmMemPoolCollectMaxSize = 33;
303   public static final int colJvmMemPoolThreshold = 110;
304   public static final int colJvmMemPoolThreshdCount = 111;
305   public static final int colJvmMemPoolThreshdSupport = 112;
306   public static final int colJvmMemPoolCollectThreshold = 131;
307   public static final int colJvmMemPoolCollectThreshdCount = 132;
308   public static final int colJvmMemPoolCollectThreshdSupport = 133;
309
310   // Column index defintions for jvmMemPoolEntry:
311
public static final int idxJvmMemPoolName = 0;
312   public static final int idxJvmMemPoolType = 1;
313   public static final int idxJvmMemPoolState = 2;
314   public static final int idxJvmMemPoolPeakReset = 3;
315   public static final int idxJvmMemPoolInitSize = 4;
316   public static final int idxJvmMemPoolUsed = 5;
317   public static final int idxJvmMemPoolCommitted = 6;
318   public static final int idxJvmMemPoolMaxSize = 7;
319   public static final int idxJvmMemPoolPeakUsed = 8;
320   public static final int idxJvmMemPoolPeakCommitted = 9;
321   public static final int idxJvmMemPoolPeakMaxSize = 10;
322   public static final int idxJvmMemPoolCollectUsed = 11;
323   public static final int idxJvmMemPoolCollectCommitted = 12;
324   public static final int idxJvmMemPoolCollectMaxSize = 13;
325   public static final int idxJvmMemPoolThreshold = 14;
326   public static final int idxJvmMemPoolThreshdCount = 15;
327   public static final int idxJvmMemPoolThreshdSupport = 16;
328   public static final int idxJvmMemPoolCollectThreshold = 17;
329   public static final int idxJvmMemPoolCollectThreshdCount = 18;
330   public static final int idxJvmMemPoolCollectThreshdSupport = 19;
331
332   private MOTableSubIndex[] jvmMemPoolEntryIndexes;
333   private MOTableIndex jvmMemPoolEntryIndex;
334
335   private MOTable jvmMemPoolEntry;
336   private MOTableModel jvmMemPoolEntryModel;
337   public static final OID oidJvmMemMgrPoolRelEntry =
338     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,2,120,1 });
339
340   // Column sub-identifer defintions for jvmMemMgrPoolRelEntry:
341
public static final int colJvmMemMgrRelManagerName = 2;
342   public static final int colJvmMemMgrRelPoolName = 3;
343
344   // Column index defintions for jvmMemMgrPoolRelEntry:
345
public static final int idxJvmMemMgrRelManagerName = 0;
346   public static final int idxJvmMemMgrRelPoolName = 1;
347
348   private MOTableSubIndex[] jvmMemMgrPoolRelEntryIndexes;
349   private MOTableIndex jvmMemMgrPoolRelEntryIndex;
350
351   private MOTable jvmMemMgrPoolRelEntry;
352   private MOTableModel jvmMemMgrPoolRelEntryModel;
353   public static final OID oidJvmThreadInstanceEntry =
354     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,3,10,1 });
355
356   // Column sub-identifer defintions for jvmThreadInstanceEntry:
357
public static final int colJvmThreadInstId = 2;
358   public static final int colJvmThreadInstState = 3;
359   public static final int colJvmThreadInstBlockCount = 4;
360   public static final int colJvmThreadInstBlockTimeMs = 5;
361   public static final int colJvmThreadInstWaitCount = 6;
362   public static final int colJvmThreadInstWaitTimeMs = 7;
363   public static final int colJvmThreadInstCpuTimeNs = 8;
364   public static final int colJvmThreadInstName = 9;
365   public static final int colJvmThreadInstLockName = 10;
366   public static final int colJvmThreadInstLockOwnerPtr = 11;
367
368   // Column index defintions for jvmThreadInstanceEntry:
369
public static final int idxJvmThreadInstId = 0;
370   public static final int idxJvmThreadInstState = 1;
371   public static final int idxJvmThreadInstBlockCount = 2;
372   public static final int idxJvmThreadInstBlockTimeMs = 3;
373   public static final int idxJvmThreadInstWaitCount = 4;
374   public static final int idxJvmThreadInstWaitTimeMs = 5;
375   public static final int idxJvmThreadInstCpuTimeNs = 6;
376   public static final int idxJvmThreadInstName = 7;
377   public static final int idxJvmThreadInstLockName = 8;
378   public static final int idxJvmThreadInstLockOwnerPtr = 9;
379
380   private MOTableSubIndex[] jvmThreadInstanceEntryIndexes;
381   private MOTableIndex jvmThreadInstanceEntryIndex;
382
383   private MOTable jvmThreadInstanceEntry;
384   private MOTableModel jvmThreadInstanceEntryModel;
385   public static final OID oidJvmRTInputArgsEntry =
386     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,20,1 });
387
388   // Column sub-identifer defintions for jvmRTInputArgsEntry:
389
public static final int colJvmRTInputArgsItem = 2;
390
391   // Column index defintions for jvmRTInputArgsEntry:
392
public static final int idxJvmRTInputArgsItem = 0;
393
394   private MOTableSubIndex[] jvmRTInputArgsEntryIndexes;
395   private MOTableIndex jvmRTInputArgsEntryIndex;
396
397   private MOTable jvmRTInputArgsEntry;
398   private MOTableModel jvmRTInputArgsEntryModel;
399   public static final OID oidJvmRTBootClassPathEntry =
400     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,21,1 });
401
402   // Column sub-identifer defintions for jvmRTBootClassPathEntry:
403
public static final int colJvmRTBootClassPathItem = 2;
404
405   // Column index defintions for jvmRTBootClassPathEntry:
406
public static final int idxJvmRTBootClassPathItem = 0;
407
408   private MOTableSubIndex[] jvmRTBootClassPathEntryIndexes;
409   private MOTableIndex jvmRTBootClassPathEntryIndex;
410
411   private MOTable jvmRTBootClassPathEntry;
412   private MOTableModel jvmRTBootClassPathEntryModel;
413   public static final OID oidJvmRTClassPathEntry =
414     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,22,1 });
415
416   // Column sub-identifer defintions for jvmRTClassPathEntry:
417
public static final int colJvmRTClassPathItem = 2;
418
419   // Column index defintions for jvmRTClassPathEntry:
420
public static final int idxJvmRTClassPathItem = 0;
421
422   private MOTableSubIndex[] jvmRTClassPathEntryIndexes;
423   private MOTableIndex jvmRTClassPathEntryIndex;
424
425   private MOTable jvmRTClassPathEntry;
426   private MOTableModel jvmRTClassPathEntryModel;
427   public static final OID oidJvmRTLibraryPathEntry =
428     new OID(new int[] { 1,3,6,1,4,1,42,2,145,3,163,1,1,4,23,1 });
429
430   // Column sub-identifer defintions for jvmRTLibraryPathEntry:
431
public static final int colJvmRTLibraryPathItem = 2;
432
433   // Column index defintions for jvmRTLibraryPathEntry:
434
public static final int idxJvmRTLibraryPathItem = 0;
435
436   private MOTableSubIndex[] jvmRTLibraryPathEntryIndexes;
437   private MOTableIndex jvmRTLibraryPathEntryIndex;
438
439   private MOTable jvmRTLibraryPathEntry;
440   private MOTableModel jvmRTLibraryPathEntryModel;
441
442
443 //--AgentGen BEGIN=_MEMBERS
444
//--AgentGen END
445

446   /**
447    * Constructs a JvmManagementMib instance without actually creating its
448    * <code>ManagedObject</code> instances. This has to be done in a
449    * sub-class constructor or after construction by calling
450    * {@link #createMO(MOFactory moFactory)}.
451    */

452   protected JvmManagementMib() {
453 //--AgentGen BEGIN=_DEFAULTCONSTRUCTOR
454
//--AgentGen END
455
}
456
457   /**
458    * Constructs a JvmManagementMib instance and actually creates its
459    * <code>ManagedObject</code> instances using the supplied
460    * <code>MOFactory</code> (by calling
461    * {@link #createMO(MOFactory moFactory)}).
462    * @param moFactory
463    * the <code>MOFactory</code> to be used to create the
464    * managed objects for this module.
465    */

466   public JvmManagementMib(MOFactory moFactory) {
467     createMO(moFactory);
468 //--AgentGen BEGIN=_FACTORYCONSTRUCTOR
469
//--AgentGen END
470
}
471
472 //--AgentGen BEGIN=_CONSTRUCTORS
473
//--AgentGen END
474

475   /**
476    * Create the ManagedObjects defined for this MIB module
477    * using the specified {@link MOFactory}.
478    * @param moFactory
479    * the <code>MOFactory</code> instance to use for object
480    * creation.
481    */

482   protected void createMO(MOFactory moFactory) {
483     jvmClassesLoadedCount =
484       moFactory.createScalar(oidJvmClassesLoadedCount,
485                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
486                              new Gauge32());
487     jvmClassesTotalLoadedCount =
488       moFactory.createScalar(oidJvmClassesTotalLoadedCount,
489                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
490                              new Counter64());
491     jvmClassesUnloadedCount =
492       moFactory.createScalar(oidJvmClassesUnloadedCount,
493                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
494                              new Counter64());
495     jvmClassesVerboseLevel =
496       moFactory.createScalar(oidJvmClassesVerboseLevel,
497                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
498                              new Integer32(),
499                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMVERBOSELEVELTC);
500     ValueConstraint jvmClassesVerboseLevelVC = new EnumerationConstraint(
501       new int[] { JvmClassesVerboseLevelEnum.silent,
502                   JvmClassesVerboseLevelEnum.verbose });
503     jvmClassesVerboseLevel.
504       addMOValueValidationListener(new ValueConstraintValidator(jvmClassesVerboseLevelVC));
505     jvmMemoryPendingFinalCount =
506       moFactory.createScalar(oidJvmMemoryPendingFinalCount,
507                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
508                              new Gauge32());
509     jvmMemoryGCVerboseLevel =
510       moFactory.createScalar(oidJvmMemoryGCVerboseLevel,
511                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
512                              new Integer32(),
513                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMVERBOSELEVELTC);
514     ValueConstraint jvmMemoryGCVerboseLevelVC = new EnumerationConstraint(
515       new int[] { JvmMemoryGCVerboseLevelEnum.silent,
516                   JvmMemoryGCVerboseLevelEnum.verbose });
517     jvmMemoryGCVerboseLevel.
518       addMOValueValidationListener(new ValueConstraintValidator(jvmMemoryGCVerboseLevelVC));
519     jvmMemoryGCCall =
520       moFactory.createScalar(oidJvmMemoryGCCall,
521                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
522                              new Integer32());
523     ValueConstraint jvmMemoryGCCallVC = new EnumerationConstraint(
524       new int[] { JvmMemoryGCCallEnum.unsupported,
525                   JvmMemoryGCCallEnum.supported,
526                   JvmMemoryGCCallEnum.start,
527                   JvmMemoryGCCallEnum.started,
528                   JvmMemoryGCCallEnum.failed });
529     jvmMemoryGCCall.
530       addMOValueValidationListener(new ValueConstraintValidator(jvmMemoryGCCallVC));
531     jvmMemoryHeapInitSize =
532       moFactory.createScalar(oidJvmMemoryHeapInitSize,
533                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
534                              new Counter64(),
535                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
536     jvmMemoryHeapUsed =
537       moFactory.createScalar(oidJvmMemoryHeapUsed,
538                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
539                              new Counter64(),
540                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
541     jvmMemoryHeapCommitted =
542       moFactory.createScalar(oidJvmMemoryHeapCommitted,
543                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
544                              new Counter64(),
545                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
546     jvmMemoryHeapMaxSize =
547       moFactory.createScalar(oidJvmMemoryHeapMaxSize,
548                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
549                              new Counter64(),
550                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
551     jvmMemoryNonHeapInitSize =
552       moFactory.createScalar(oidJvmMemoryNonHeapInitSize,
553                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
554                              new Counter64(),
555                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
556     jvmMemoryNonHeapUsed =
557       moFactory.createScalar(oidJvmMemoryNonHeapUsed,
558                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
559                              new Counter64(),
560                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
561     jvmMemoryNonHeapCommitted =
562       moFactory.createScalar(oidJvmMemoryNonHeapCommitted,
563                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
564                              new Counter64(),
565                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
566     jvmMemoryNonHeapMaxSize =
567       moFactory.createScalar(oidJvmMemoryNonHeapMaxSize,
568                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
569                              new Counter64(),
570                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMUNSIGNED64TC);
571     jvmThreadCount =
572       moFactory.createScalar(oidJvmThreadCount,
573                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
574                              new Gauge32());
575     jvmThreadDaemonCount =
576       moFactory.createScalar(oidJvmThreadDaemonCount,
577                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
578                              new Gauge32());
579     jvmThreadPeakCount =
580       moFactory.createScalar(oidJvmThreadPeakCount,
581                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
582                              new Counter32());
583     jvmThreadTotalStartedCount =
584       moFactory.createScalar(oidJvmThreadTotalStartedCount,
585                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
586                              new Counter64());
587     jvmThreadContentionMonitoring =
588       moFactory.createScalar(oidJvmThreadContentionMonitoring,
589                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
590                              new Integer32(),
591                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMIMPLOPTFEATURESTATETC);
592     ValueConstraint jvmThreadContentionMonitoringVC = new EnumerationConstraint(
593       new int[] { JvmThreadContentionMonitoringEnum.unsupported,
594                   JvmThreadContentionMonitoringEnum.enabled,
595                   JvmThreadContentionMonitoringEnum.disabled });
596     jvmThreadContentionMonitoring.
597       addMOValueValidationListener(new ValueConstraintValidator(jvmThreadContentionMonitoringVC));
598     jvmThreadCpuTimeMonitoring =
599       moFactory.createScalar(oidJvmThreadCpuTimeMonitoring,
600                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
601                              new Integer32(),
602                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMIMPLOPTFEATURESTATETC);
603     ValueConstraint jvmThreadCpuTimeMonitoringVC = new EnumerationConstraint(
604       new int[] { JvmThreadCpuTimeMonitoringEnum.unsupported,
605                   JvmThreadCpuTimeMonitoringEnum.enabled,
606                   JvmThreadCpuTimeMonitoringEnum.disabled });
607     jvmThreadCpuTimeMonitoring.
608       addMOValueValidationListener(new ValueConstraintValidator(jvmThreadCpuTimeMonitoringVC));
609     jvmThreadPeakCountReset =
610       moFactory.createScalar(oidJvmThreadPeakCountReset,
611                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
612                              new Counter64(),
613                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMTIMEMILLIS64TC);
614     jvmRTName =
615       moFactory.createScalar(oidJvmRTName,
616                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
617                              new OctetString(),
618                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
619     jvmRTVMName =
620       moFactory.createScalar(oidJvmRTVMName,
621                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
622                              new OctetString(),
623                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMJAVAOBJECTNAMETC);
624     jvmRTVMVendor =
625       moFactory.createScalar(oidJvmRTVMVendor,
626                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
627                              new OctetString(),
628                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
629     jvmRTVMVersion =
630       moFactory.createScalar(oidJvmRTVMVersion,
631                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
632                              new OctetString(),
633                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
634     jvmRTSpecName =
635       moFactory.createScalar(oidJvmRTSpecName,
636                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
637                              new OctetString(),
638                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
639     jvmRTSpecVendor =
640       moFactory.createScalar(oidJvmRTSpecVendor,
641                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
642                              new OctetString(),
643                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
644     jvmRTSpecVersion =
645       moFactory.createScalar(oidJvmRTSpecVersion,
646                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
647                              new OctetString(),
648                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
649     jvmRTManagementSpecVersion =
650       moFactory.createScalar(oidJvmRTManagementSpecVersion,
651                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
652                              new OctetString(),
653                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
654     jvmRTBootClassPathSupport =
655       moFactory.createScalar(oidJvmRTBootClassPathSupport,
656                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
657                              new Integer32(),
658                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMIMPLSUPPORTSTATETC);
659     jvmRTInputArgsCount =
660       moFactory.createScalar(oidJvmRTInputArgsCount,
661                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
662                              new Integer32(),
663                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMPOSITIVE32TC);
664     jvmRTUptimeMs =
665       moFactory.createScalar(oidJvmRTUptimeMs,
666                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
667                              new Counter64(),
668                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMTIMEMILLIS64TC);
669     jvmRTStartTimeMs =
670       moFactory.createScalar(oidJvmRTStartTimeMs,
671                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
672                              new Counter64(),
673                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMTIMEMILLIS64TC);
674     jvmJITCompilerName =
675       moFactory.createScalar(oidJvmJITCompilerName,
676                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
677                              new OctetString(),
678                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMJAVAOBJECTNAMETC);
679     jvmJITCompilerTimeMs =
680       moFactory.createScalar(oidJvmJITCompilerTimeMs,
681                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
682                              new Counter64(),
683                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMTIMEMILLIS64TC);
684     jvmJITCompilerTimeMonitoring =
685       moFactory.createScalar(oidJvmJITCompilerTimeMonitoring,
686                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
687                              new Integer32(),
688                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMIMPLSUPPORTSTATETC);
689     jvmOSName =
690       moFactory.createScalar(oidJvmOSName,
691                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
692                              new OctetString(),
693                              TC_MODULE_JVM_MANAGEMENT_MIB, TC_JVMJAVAOBJECTNAMETC);
694     jvmOSArch =
695       moFactory.createScalar(oidJvmOSArch,
696                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
697                              new OctetString(),
698                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
699     jvmOSVersion =
700       moFactory.createScalar(oidJvmOSVersion,
701                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
702                              new OctetString(),
703                              TC_MODULE_SNMPV2_TC, TC_DISPLAYSTRING);
704     jvmOSProcessorCount =
705       moFactory.createScalar(oidJvmOSProcessorCount,
706                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY),
707                              new Integer32());
708     createJvmMemManagerEntry(moFactory);
709     createJvmMemGCEntry(moFactory);
710     createJvmMemPoolEntry(moFactory);
711     createJvmMemMgrPoolRelEntry(moFactory);
712     createJvmThreadInstanceEntry(moFactory);
713     createJvmRTInputArgsEntry(moFactory);
714     createJvmRTBootClassPathEntry(moFactory);
715     createJvmRTClassPathEntry(moFactory);
716     createJvmRTLibraryPathEntry(moFactory);
717   }
718
719
720   public MOTable getJvmMemManagerEntry() {
721     return jvmMemManagerEntry;
722   }
723
724
725   private void createJvmMemManagerEntry(MOFactory moFactory) {
726     // Index definition
727
jvmMemManagerEntryIndexes =
728       new MOTableSubIndex[] {
729             moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
730
731     jvmMemManagerEntryIndex =
732       moFactory.createIndex(jvmMemManagerEntryIndexes,
733                             false,
734                             new MOTableIndexValidator() {
735       public boolean isValidIndex(OID index) {
736         boolean isValidIndex = true;
737      //--AgentGen BEGIN=jvmMemManagerEntry::isValidIndex
738
//--AgentGen END
739
return isValidIndex;
740       }
741     });
742
743     // Columns
744
MOColumn[] jvmMemManagerEntryColumns = new MOColumn[2];
745     jvmMemManagerEntryColumns[idxJvmMemManagerName] =
746       moFactory.createColumn(colJvmMemManagerName,
747                              SMIConstants.SYNTAX_OCTET_STRING,
748                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
749     jvmMemManagerEntryColumns[idxJvmMemManagerState] =
750       moFactory.createColumn(colJvmMemManagerState,
751                              SMIConstants.SYNTAX_INTEGER,
752                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
753     // Table model
754
jvmMemManagerEntryModel =
755       moFactory.createTableModel(oidJvmMemManagerEntry,
756                                  jvmMemManagerEntryIndex,
757                                  jvmMemManagerEntryColumns);
758     jvmMemManagerEntry =
759       moFactory.createTable(oidJvmMemManagerEntry,
760                             jvmMemManagerEntryIndex,
761                             jvmMemManagerEntryColumns,
762                             jvmMemManagerEntryModel);
763   }
764
765   public MOTable getJvmMemGCEntry() {
766     return jvmMemGCEntry;
767   }
768
769
770   private void createJvmMemGCEntry(MOFactory moFactory) {
771     // Index definition
772
jvmMemGCEntryIndexes =
773       new MOTableSubIndex[] {
774             moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
775
776     jvmMemGCEntryIndex =
777       moFactory.createIndex(jvmMemGCEntryIndexes,
778                             false,
779                             new MOTableIndexValidator() {
780       public boolean isValidIndex(OID index) {
781         boolean isValidIndex = true;
782      //--AgentGen BEGIN=jvmMemGCEntry::isValidIndex
783
//--AgentGen END
784
return isValidIndex;
785       }
786     });
787
788     // Columns
789
MOColumn[] jvmMemGCEntryColumns = new MOColumn[2];
790     jvmMemGCEntryColumns[idxJvmMemGCCount] =
791       moFactory.createColumn(colJvmMemGCCount,
792                              SMIConstants.SYNTAX_COUNTER64,
793                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
794     jvmMemGCEntryColumns[idxJvmMemGCTimeMs] =
795       moFactory.createColumn(colJvmMemGCTimeMs,
796                              SMIConstants.SYNTAX_COUNTER64,
797                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
798     // Table model
799
jvmMemGCEntryModel =
800       moFactory.createTableModel(oidJvmMemGCEntry,
801                                  jvmMemGCEntryIndex,
802                                  jvmMemGCEntryColumns);
803     jvmMemGCEntry =
804       moFactory.createTable(oidJvmMemGCEntry,
805                             jvmMemGCEntryIndex,
806                             jvmMemGCEntryColumns,
807                             jvmMemGCEntryModel);
808   }
809
810   public MOTable getJvmMemPoolEntry() {
811     return jvmMemPoolEntry;
812   }
813
814
815   private void createJvmMemPoolEntry(MOFactory moFactory) {
816     // Index definition
817
jvmMemPoolEntryIndexes =
818       new MOTableSubIndex[] {
819             moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
820
821     jvmMemPoolEntryIndex =
822       moFactory.createIndex(jvmMemPoolEntryIndexes,
823                             false,
824                             new MOTableIndexValidator() {
825       public boolean isValidIndex(OID index) {
826         boolean isValidIndex = true;
827      //--AgentGen BEGIN=jvmMemPoolEntry::isValidIndex
828
//--AgentGen END
829
return isValidIndex;
830       }
831     });
832
833     // Columns
834
MOColumn[] jvmMemPoolEntryColumns = new MOColumn[20];
835     jvmMemPoolEntryColumns[idxJvmMemPoolName] =
836       moFactory.createColumn(colJvmMemPoolName,
837                              SMIConstants.SYNTAX_OCTET_STRING,
838                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
839     jvmMemPoolEntryColumns[idxJvmMemPoolType] =
840       moFactory.createColumn(colJvmMemPoolType,
841                              SMIConstants.SYNTAX_INTEGER,
842                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
843     jvmMemPoolEntryColumns[idxJvmMemPoolState] =
844       moFactory.createColumn(colJvmMemPoolState,
845                              SMIConstants.SYNTAX_INTEGER,
846                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
847     jvmMemPoolEntryColumns[idxJvmMemPoolPeakReset] =
848       new MOMutableColumn(colJvmMemPoolPeakReset,
849                           SMIConstants.SYNTAX_COUNTER64,
850                           moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
851                           null);
852     jvmMemPoolEntryColumns[idxJvmMemPoolInitSize] =
853       moFactory.createColumn(colJvmMemPoolInitSize,
854                              SMIConstants.SYNTAX_COUNTER64,
855                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
856     jvmMemPoolEntryColumns[idxJvmMemPoolUsed] =
857       moFactory.createColumn(colJvmMemPoolUsed,
858                              SMIConstants.SYNTAX_COUNTER64,
859                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
860     jvmMemPoolEntryColumns[idxJvmMemPoolCommitted] =
861       moFactory.createColumn(colJvmMemPoolCommitted,
862                              SMIConstants.SYNTAX_COUNTER64,
863                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
864     jvmMemPoolEntryColumns[idxJvmMemPoolMaxSize] =
865       moFactory.createColumn(colJvmMemPoolMaxSize,
866                              SMIConstants.SYNTAX_COUNTER64,
867                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
868     jvmMemPoolEntryColumns[idxJvmMemPoolPeakUsed] =
869       moFactory.createColumn(colJvmMemPoolPeakUsed,
870                              SMIConstants.SYNTAX_COUNTER64,
871                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
872     jvmMemPoolEntryColumns[idxJvmMemPoolPeakCommitted] =
873       moFactory.createColumn(colJvmMemPoolPeakCommitted,
874                              SMIConstants.SYNTAX_COUNTER64,
875                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
876     jvmMemPoolEntryColumns[idxJvmMemPoolPeakMaxSize] =
877       moFactory.createColumn(colJvmMemPoolPeakMaxSize,
878                              SMIConstants.SYNTAX_COUNTER64,
879                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
880     jvmMemPoolEntryColumns[idxJvmMemPoolCollectUsed] =
881       moFactory.createColumn(colJvmMemPoolCollectUsed,
882                              SMIConstants.SYNTAX_COUNTER64,
883                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
884     jvmMemPoolEntryColumns[idxJvmMemPoolCollectCommitted] =
885       moFactory.createColumn(colJvmMemPoolCollectCommitted,
886                              SMIConstants.SYNTAX_COUNTER64,
887                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
888     jvmMemPoolEntryColumns[idxJvmMemPoolCollectMaxSize] =
889       moFactory.createColumn(colJvmMemPoolCollectMaxSize,
890                              SMIConstants.SYNTAX_COUNTER64,
891                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
892     jvmMemPoolEntryColumns[idxJvmMemPoolThreshold] =
893       new MOMutableColumn(colJvmMemPoolThreshold,
894                           SMIConstants.SYNTAX_COUNTER64,
895                           moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
896                           null);
897     jvmMemPoolEntryColumns[idxJvmMemPoolThreshdCount] =
898       moFactory.createColumn(colJvmMemPoolThreshdCount,
899                              SMIConstants.SYNTAX_COUNTER64,
900                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
901     jvmMemPoolEntryColumns[idxJvmMemPoolThreshdSupport] =
902       moFactory.createColumn(colJvmMemPoolThreshdSupport,
903                              SMIConstants.SYNTAX_INTEGER,
904                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
905     jvmMemPoolEntryColumns[idxJvmMemPoolCollectThreshold] =
906       new MOMutableColumn(colJvmMemPoolCollectThreshold,
907                           SMIConstants.SYNTAX_COUNTER64,
908                           moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE),
909                           null);
910     jvmMemPoolEntryColumns[idxJvmMemPoolCollectThreshdCount] =
911       moFactory.createColumn(colJvmMemPoolCollectThreshdCount,
912                              SMIConstants.SYNTAX_COUNTER64,
913                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
914     jvmMemPoolEntryColumns[idxJvmMemPoolCollectThreshdSupport] =
915       moFactory.createColumn(colJvmMemPoolCollectThreshdSupport,
916                              SMIConstants.SYNTAX_INTEGER,
917                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
918     // Table model
919
jvmMemPoolEntryModel =
920       moFactory.createTableModel(oidJvmMemPoolEntry,
921                                  jvmMemPoolEntryIndex,
922                                  jvmMemPoolEntryColumns);
923     jvmMemPoolEntry =
924       moFactory.createTable(oidJvmMemPoolEntry,
925                             jvmMemPoolEntryIndex,
926                             jvmMemPoolEntryColumns,
927                             jvmMemPoolEntryModel);
928   }
929
930   public MOTable getJvmMemMgrPoolRelEntry() {
931     return jvmMemMgrPoolRelEntry;
932   }
933
934
935   private void createJvmMemMgrPoolRelEntry(MOFactory moFactory) {
936     // Index definition
937
jvmMemMgrPoolRelEntryIndexes =
938       new MOTableSubIndex[] {
939             moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1),
940             moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
941
942     jvmMemMgrPoolRelEntryIndex =
943       moFactory.createIndex(jvmMemMgrPoolRelEntryIndexes,
944                             false,
945                             new MOTableIndexValidator() {
946       public boolean isValidIndex(OID index) {
947         boolean isValidIndex = true;
948      //--AgentGen BEGIN=jvmMemMgrPoolRelEntry::isValidIndex
949
//--AgentGen END
950
return isValidIndex;
951       }
952     });
953
954     // Columns
955
MOColumn[] jvmMemMgrPoolRelEntryColumns = new MOColumn[2];
956     jvmMemMgrPoolRelEntryColumns[idxJvmMemMgrRelManagerName] =
957       moFactory.createColumn(colJvmMemMgrRelManagerName,
958                              SMIConstants.SYNTAX_OCTET_STRING,
959                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
960     jvmMemMgrPoolRelEntryColumns[idxJvmMemMgrRelPoolName] =
961       moFactory.createColumn(colJvmMemMgrRelPoolName,
962                              SMIConstants.SYNTAX_OCTET_STRING,
963                              moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
964     // Table model
965
jvmMemMgrPoolRelEntryModel =
966       moFactory.createTableModel(oidJvmMemMgrPoolRelEntry,
967                                  jvmMemMgrPoolRelEntryIndex,
968                                  jvmMemMgrPoolRelEntryColumns);
969     jvmMemMgrPoolRelEntry =
970       moFactory.createTable(oidJvmMemMgrPoolRelEntry,
971                             jvmMemMgrPoolRelEntryIndex,
972                             jvmMemMgrPoolRelEntryColumns,
973                             jvmMemMgrPoolRelEntryModel);
974   }
975
976   public MOTable getJvmThreadInstanceEntry() {
977     return jvmThreadInstanceEntry;
978   }
979
980
981   private void createJvmThreadInstanceEntry(MOFactory moFactory) {
982     // Index definition
983
jvmThreadInstanceEntryIndexes =
984       new MOTableSubIndex[] {
985             moFactory.createSubIndex(SMIConstants.SYNTAX_OCTET_STRING, 8, 8)
986     };
987
988     jvmThreadInstanceEntryIndex =
989       moFactory.createIndex(jvmThreadInstanceEntryIndexes,
990                             false,
991                             new MOTableIndexValidator() {
992       public boolean isValidIndex(OID index) {
993         boolean isValidIndex = true;
994      //--AgentGen BEGIN=jvmThreadInstanceEntry::isValidIndex
995
//--AgentGen END
996
return isValidIndex;
997       }
998     });
999
1000    // Columns
1001
MOColumn[] jvmThreadInstanceEntryColumns = new MOColumn[10];
1002    jvmThreadInstanceEntryColumns[idxJvmThreadInstId] =
1003      moFactory.createColumn(colJvmThreadInstId,
1004                             SMIConstants.SYNTAX_COUNTER64,
1005                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1006    jvmThreadInstanceEntryColumns[idxJvmThreadInstState] =
1007      moFactory.createColumn(colJvmThreadInstState,
1008                             SMIConstants.SYNTAX_BITS,
1009                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1010    jvmThreadInstanceEntryColumns[idxJvmThreadInstBlockCount] =
1011      moFactory.createColumn(colJvmThreadInstBlockCount,
1012                             SMIConstants.SYNTAX_COUNTER64,
1013                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1014    jvmThreadInstanceEntryColumns[idxJvmThreadInstBlockTimeMs] =
1015      moFactory.createColumn(colJvmThreadInstBlockTimeMs,
1016                             SMIConstants.SYNTAX_COUNTER64,
1017                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1018    jvmThreadInstanceEntryColumns[idxJvmThreadInstWaitCount] =
1019      moFactory.createColumn(colJvmThreadInstWaitCount,
1020                             SMIConstants.SYNTAX_COUNTER64,
1021                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1022    jvmThreadInstanceEntryColumns[idxJvmThreadInstWaitTimeMs] =
1023      moFactory.createColumn(colJvmThreadInstWaitTimeMs,
1024                             SMIConstants.SYNTAX_COUNTER64,
1025                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1026    jvmThreadInstanceEntryColumns[idxJvmThreadInstCpuTimeNs] =
1027      moFactory.createColumn(colJvmThreadInstCpuTimeNs,
1028                             SMIConstants.SYNTAX_COUNTER64,
1029                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1030    jvmThreadInstanceEntryColumns[idxJvmThreadInstName] =
1031      moFactory.createColumn(colJvmThreadInstName,
1032                             SMIConstants.SYNTAX_OCTET_STRING,
1033                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1034    jvmThreadInstanceEntryColumns[idxJvmThreadInstLockName] =
1035      moFactory.createColumn(colJvmThreadInstLockName,
1036                             SMIConstants.SYNTAX_OCTET_STRING,
1037                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1038    jvmThreadInstanceEntryColumns[idxJvmThreadInstLockOwnerPtr] =
1039      moFactory.createColumn(colJvmThreadInstLockOwnerPtr,
1040                             SMIConstants.SYNTAX_OBJECT_IDENTIFIER,
1041                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1042    // Table model
1043
jvmThreadInstanceEntryModel =
1044      moFactory.createTableModel(oidJvmThreadInstanceEntry,
1045                                 jvmThreadInstanceEntryIndex,
1046                                 jvmThreadInstanceEntryColumns);
1047    jvmThreadInstanceEntry =
1048      moFactory.createTable(oidJvmThreadInstanceEntry,
1049                            jvmThreadInstanceEntryIndex,
1050                            jvmThreadInstanceEntryColumns,
1051                            jvmThreadInstanceEntryModel);
1052  }
1053
1054  public MOTable getJvmRTInputArgsEntry() {
1055    return jvmRTInputArgsEntry;
1056  }
1057
1058
1059  private void createJvmRTInputArgsEntry(MOFactory moFactory) {
1060    // Index definition
1061
jvmRTInputArgsEntryIndexes =
1062      new MOTableSubIndex[] {
1063            moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
1064
1065    jvmRTInputArgsEntryIndex =
1066      moFactory.createIndex(jvmRTInputArgsEntryIndexes,
1067                            false,
1068                            new MOTableIndexValidator() {
1069      public boolean isValidIndex(OID index) {
1070        boolean isValidIndex = true;
1071     //--AgentGen BEGIN=jvmRTInputArgsEntry::isValidIndex
1072
//--AgentGen END
1073
return isValidIndex;
1074      }
1075    });
1076
1077    // Columns
1078
MOColumn[] jvmRTInputArgsEntryColumns = new MOColumn[1];
1079    jvmRTInputArgsEntryColumns[idxJvmRTInputArgsItem] =
1080      moFactory.createColumn(colJvmRTInputArgsItem,
1081                             SMIConstants.SYNTAX_OCTET_STRING,
1082                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1083    // Table model
1084
jvmRTInputArgsEntryModel =
1085      moFactory.createTableModel(oidJvmRTInputArgsEntry,
1086                                 jvmRTInputArgsEntryIndex,
1087                                 jvmRTInputArgsEntryColumns);
1088    jvmRTInputArgsEntry =
1089      moFactory.createTable(oidJvmRTInputArgsEntry,
1090                            jvmRTInputArgsEntryIndex,
1091                            jvmRTInputArgsEntryColumns,
1092                            jvmRTInputArgsEntryModel);
1093  }
1094
1095  public MOTable getJvmRTBootClassPathEntry() {
1096    return jvmRTBootClassPathEntry;
1097  }
1098
1099
1100  private void createJvmRTBootClassPathEntry(MOFactory moFactory) {
1101    // Index definition
1102
jvmRTBootClassPathEntryIndexes =
1103      new MOTableSubIndex[] {
1104            moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
1105
1106    jvmRTBootClassPathEntryIndex =
1107      moFactory.createIndex(jvmRTBootClassPathEntryIndexes,
1108                            false,
1109                            new MOTableIndexValidator() {
1110      public boolean isValidIndex(OID index) {
1111        boolean isValidIndex = true;
1112     //--AgentGen BEGIN=jvmRTBootClassPathEntry::isValidIndex
1113
//--AgentGen END
1114
return isValidIndex;
1115      }
1116    });
1117
1118    // Columns
1119
MOColumn[] jvmRTBootClassPathEntryColumns = new MOColumn[1];
1120    jvmRTBootClassPathEntryColumns[idxJvmRTBootClassPathItem] =
1121      moFactory.createColumn(colJvmRTBootClassPathItem,
1122                             SMIConstants.SYNTAX_OCTET_STRING,
1123                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1124    // Table model
1125
jvmRTBootClassPathEntryModel =
1126      moFactory.createTableModel(oidJvmRTBootClassPathEntry,
1127                                 jvmRTBootClassPathEntryIndex,
1128                                 jvmRTBootClassPathEntryColumns);
1129    jvmRTBootClassPathEntry =
1130      moFactory.createTable(oidJvmRTBootClassPathEntry,
1131                            jvmRTBootClassPathEntryIndex,
1132                            jvmRTBootClassPathEntryColumns,
1133                            jvmRTBootClassPathEntryModel);
1134  }
1135
1136  public MOTable getJvmRTClassPathEntry() {
1137    return jvmRTClassPathEntry;
1138  }
1139
1140
1141  private void createJvmRTClassPathEntry(MOFactory moFactory) {
1142    // Index definition
1143
jvmRTClassPathEntryIndexes =
1144      new MOTableSubIndex[] {
1145            moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
1146
1147    jvmRTClassPathEntryIndex =
1148      moFactory.createIndex(jvmRTClassPathEntryIndexes,
1149                            false,
1150                            new MOTableIndexValidator() {
1151      public boolean isValidIndex(OID index) {
1152        boolean isValidIndex = true;
1153     //--AgentGen BEGIN=jvmRTClassPathEntry::isValidIndex
1154
//--AgentGen END
1155
return isValidIndex;
1156      }
1157    });
1158
1159    // Columns
1160
MOColumn[] jvmRTClassPathEntryColumns = new MOColumn[1];
1161    jvmRTClassPathEntryColumns[idxJvmRTClassPathItem] =
1162      moFactory.createColumn(colJvmRTClassPathItem,
1163                             SMIConstants.SYNTAX_OCTET_STRING,
1164                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1165    // Table model
1166
jvmRTClassPathEntryModel =
1167      moFactory.createTableModel(oidJvmRTClassPathEntry,
1168                                 jvmRTClassPathEntryIndex,
1169                                 jvmRTClassPathEntryColumns);
1170    jvmRTClassPathEntry =
1171      moFactory.createTable(oidJvmRTClassPathEntry,
1172                            jvmRTClassPathEntryIndex,
1173                            jvmRTClassPathEntryColumns,
1174                            jvmRTClassPathEntryModel);
1175  }
1176
1177  public MOTable getJvmRTLibraryPathEntry() {
1178    return jvmRTLibraryPathEntry;
1179  }
1180
1181
1182  private void createJvmRTLibraryPathEntry(MOFactory moFactory) {
1183    // Index definition
1184
jvmRTLibraryPathEntryIndexes =
1185      new MOTableSubIndex[] {
1186            moFactory.createSubIndex(SMIConstants.SYNTAX_INTEGER, 1, 1) };
1187
1188    jvmRTLibraryPathEntryIndex =
1189      moFactory.createIndex(jvmRTLibraryPathEntryIndexes,
1190                            false,
1191                            new MOTableIndexValidator() {
1192      public boolean isValidIndex(OID index) {
1193        boolean isValidIndex = true;
1194     //--AgentGen BEGIN=jvmRTLibraryPathEntry::isValidIndex
1195
//--AgentGen END
1196
return isValidIndex;
1197      }
1198    });
1199
1200    // Columns
1201
MOColumn[] jvmRTLibraryPathEntryColumns = new MOColumn[1];
1202    jvmRTLibraryPathEntryColumns[idxJvmRTLibraryPathItem] =
1203      moFactory.createColumn(colJvmRTLibraryPathItem,
1204                             SMIConstants.SYNTAX_OCTET_STRING,
1205                             moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY));
1206    // Table model
1207
jvmRTLibraryPathEntryModel =
1208      moFactory.createTableModel(oidJvmRTLibraryPathEntry,
1209                                 jvmRTLibraryPathEntryIndex,
1210                                 jvmRTLibraryPathEntryColumns);
1211    jvmRTLibraryPathEntry =
1212      moFactory.createTable(oidJvmRTLibraryPathEntry,
1213                            jvmRTLibraryPathEntryIndex,
1214                            jvmRTLibraryPathEntryColumns,
1215                            jvmRTLibraryPathEntryModel);
1216  }
1217
1218
1219
1220  public void registerMOs(MOServer server, OctetString context)
1221    throws DuplicateRegistrationException
1222  {
1223    // Scalar Objects
1224
server.register(this.jvmClassesLoadedCount, context);
1225    server.register(this.jvmClassesTotalLoadedCount, context);
1226    server.register(this.jvmClassesUnloadedCount, context);
1227    server.register(this.jvmClassesVerboseLevel, context);
1228    server.register(this.jvmMemoryPendingFinalCount, context);
1229    server.register(this.jvmMemoryGCVerboseLevel, context);
1230    server.register(this.jvmMemoryGCCall, context);
1231    server.register(this.jvmMemoryHeapInitSize, context);
1232    server.register(this.jvmMemoryHeapUsed, context);
1233    server.register(this.jvmMemoryHeapCommitted, context);
1234    server.register(this.jvmMemoryHeapMaxSize, context);
1235    server.register(this.jvmMemoryNonHeapInitSize, context);
1236    server.register(this.jvmMemoryNonHeapUsed, context);
1237    server.register(this.jvmMemoryNonHeapCommitted, context);
1238    server.register(this.jvmMemoryNonHeapMaxSize, context);
1239    server.register(this.jvmThreadCount, context);
1240    server.register(this.jvmThreadDaemonCount, context);
1241    server.register(this.jvmThreadPeakCount, context);
1242    server.register(this.jvmThreadTotalStartedCount, context);
1243    server.register(this.jvmThreadContentionMonitoring, context);
1244    server.register(this.jvmThreadCpuTimeMonitoring, context);
1245    server.register(this.jvmThreadPeakCountReset, context);
1246    server.register(this.jvmRTName, context);
1247    server.register(this.jvmRTVMName, context);
1248    server.register(this.jvmRTVMVendor, context);
1249    server.register(this.jvmRTVMVersion, context);
1250    server.register(this.jvmRTSpecName, context);
1251    server.register(this.jvmRTSpecVendor, context);
1252    server.register(this.jvmRTSpecVersion, context);
1253    server.register(this.jvmRTManagementSpecVersion, context);
1254    server.register(this.jvmRTBootClassPathSupport, context);
1255    server.register(this.jvmRTInputArgsCount, context);
1256    server.register(this.jvmRTUptimeMs, context);
1257    server.register(this.jvmRTStartTimeMs, context);
1258    server.register(this.jvmJITCompilerName, context);
1259    server.register(this.jvmJITCompilerTimeMs, context);
1260    server.register(this.jvmJITCompilerTimeMonitoring, context);
1261    server.register(this.jvmOSName, context);
1262    server.register(this.jvmOSArch, context);
1263    server.register(this.jvmOSVersion, context);
1264    server.register(this.jvmOSProcessorCount, context);
1265    server.register(this.jvmMemManagerEntry, context);
1266    server.register(this.jvmMemGCEntry, context);
1267    server.register(this.jvmMemPoolEntry, context);
1268    server.register(this.jvmMemMgrPoolRelEntry, context);
1269    server.register(this.jvmThreadInstanceEntry, context);
1270    server.register(this.jvmRTInputArgsEntry, context);
1271    server.register(this.jvmRTBootClassPathEntry, context);
1272    server.register(this.jvmRTClassPathEntry, context);
1273    server.register(this.jvmRTLibraryPathEntry, context);
1274//--AgentGen BEGIN=_registerMOs
1275
//--AgentGen END
1276
}
1277
1278  public void unregisterMOs(MOServer server, OctetString context) {
1279    // Scalar Objects
1280
server.unregister(this.jvmClassesLoadedCount, context);
1281    server.unregister(this.jvmClassesTotalLoadedCount, context);
1282    server.unregister(this.jvmClassesUnloadedCount, context);
1283    server.unregister(this.jvmClassesVerboseLevel, context);
1284    server.unregister(this.jvmMemoryPendingFinalCount, context);
1285    server.unregister(this.jvmMemoryGCVerboseLevel, context);
1286    server.unregister(this.jvmMemoryGCCall, context);
1287    server.unregister(this.jvmMemoryHeapInitSize, context);
1288    server.unregister(this.jvmMemoryHeapUsed, context);
1289    server.unregister(this.jvmMemoryHeapCommitted, context);
1290    server.unregister(this.jvmMemoryHeapMaxSize, context);
1291    server.unregister(this.jvmMemoryNonHeapInitSize, context);
1292    server.unregister(this.jvmMemoryNonHeapUsed, context);
1293    server.unregister(this.jvmMemoryNonHeapCommitted, context);
1294    server.unregister(this.jvmMemoryNonHeapMaxSize, context);
1295    server.unregister(this.jvmThreadCount, context);
1296    server.unregister(this.jvmThreadDaemonCount, context);
1297    server.unregister(this.jvmThreadPeakCount, context);
1298    server.unregister(this.jvmThreadTotalStartedCount, context);
1299    server.unregister(this.jvmThreadContentionMonitoring, context);
1300    server.unregister(this.jvmThreadCpuTimeMonitoring, context);
1301    server.unregister(this.jvmThreadPeakCountReset, context);
1302    server.unregister(this.jvmRTName, context);
1303    server.unregister(this.jvmRTVMName, context);
1304    server.unregister(this.jvmRTVMVendor, context);
1305    server.unregister(this.jvmRTVMVersion, context);
1306    server.unregister(this.jvmRTSpecName, context);
1307    server.unregister(this.jvmRTSpecVendor, context);
1308    server.unregister(this.jvmRTSpecVersion, context);
1309    server.unregister(this.jvmRTManagementSpecVersion, context);
1310    server.unregister(this.jvmRTBootClassPathSupport, context);
1311    server.unregister(this.jvmRTInputArgsCount, context);
1312    server.unregister(this.jvmRTUptimeMs, context);
1313    server.unregister(this.jvmRTStartTimeMs, context);
1314    server.unregister(this.jvmJITCompilerName, context);
1315    server.unregister(this.jvmJITCompilerTimeMs, context);
1316    server.unregister(this.jvmJITCompilerTimeMonitoring, context);
1317    server.unregister(this.jvmOSName, context);
1318    server.unregister(this.jvmOSArch, context);
1319    server.unregister(this.jvmOSVersion, context);
1320    server.unregister(this.jvmOSProcessorCount, context);
1321    server.unregister(this.jvmMemManagerEntry, context);
1322    server.unregister(this.jvmMemGCEntry, context);
1323    server.unregister(this.jvmMemPoolEntry, context);
1324    server.unregister(this.jvmMemMgrPoolRelEntry, context);
1325    server.unregister(this.jvmThreadInstanceEntry, context);
1326    server.unregister(this.jvmRTInputArgsEntry, context);
1327    server.unregister(this.jvmRTBootClassPathEntry, context);
1328    server.unregister(this.jvmRTClassPathEntry, context);
1329    server.unregister(this.jvmRTLibraryPathEntry, context);
1330//--AgentGen BEGIN=_unregisterMOs
1331
//--AgentGen END
1332
}
1333
1334  // Notifications
1335
public void jvmLowMemoryPoolUsageNotif(NotificationOriginator notificationOriginator,
1336                                         OctetString context,
1337                                         VariableBinding[] vbs) {
1338    if (vbs.length < 3) {
1339      throw new IllegalArgumentException JavaDoc("Too few notification objects: "+
1340                                         vbs.length+"<3");
1341    }
1342    if (!(vbs[0].getOid().startsWith(oidTrapVarJvmMemPoolName))) {
1343      throw new IllegalArgumentException JavaDoc("Variable 0 has wrong OID: "+vbs[0].getOid()+
1344                                         " does not start with "+oidTrapVarJvmMemPoolName);
1345    }
1346    if (!jvmMemPoolEntryIndex.isValidIndex(jvmMemPoolEntry.getIndexPart(vbs[0].getOid()))) {
1347      throw new IllegalArgumentException JavaDoc("Illegal index for variable 0 specified: "+
1348                                         jvmMemPoolEntry.getIndexPart(vbs[0].getOid()));
1349    }
1350    if (!(vbs[1].getOid().startsWith(oidTrapVarJvmMemPoolUsed))) {
1351      throw new IllegalArgumentException JavaDoc("Variable 1 has wrong OID: "+vbs[1].getOid()+
1352                                         " does not start with "+oidTrapVarJvmMemPoolUsed);
1353    }
1354    if (!jvmMemPoolEntryIndex.isValidIndex(jvmMemPoolEntry.getIndexPart(vbs[1].getOid()))) {
1355      throw new IllegalArgumentException JavaDoc("Illegal index for variable 1 specified: "+
1356                                         jvmMemPoolEntry.getIndexPart(vbs[1].getOid()));
1357    }
1358    if (!(vbs[2].getOid().startsWith(oidTrapVarJvmMemPoolThreshdCount))) {
1359      throw new IllegalArgumentException JavaDoc("Variable 2 has wrong OID: "+vbs[2].getOid()+
1360                                         " does not start with "+oidTrapVarJvmMemPoolThreshdCount);
1361    }
1362    if (!jvmMemPoolEntryIndex.isValidIndex(jvmMemPoolEntry.getIndexPart(vbs[2].getOid()))) {
1363      throw new IllegalArgumentException JavaDoc("Illegal index for variable 2 specified: "+
1364                                         jvmMemPoolEntry.getIndexPart(vbs[2].getOid()));
1365    }
1366    notificationOriginator.notify(context, oidJvmLowMemoryPoolUsageNotif, vbs);
1367  }
1368
1369  public void jvmLowMemoryPoolCollectNotif(NotificationOriginator notificationOriginator,
1370                                           OctetString context,
1371                                           VariableBinding[] vbs) {
1372    if (vbs.length < 3) {
1373      throw new IllegalArgumentException JavaDoc("Too few notification objects: "+
1374                                         vbs.length+"<3");
1375    }
1376    if (!(vbs[0].getOid().startsWith(oidTrapVarJvmMemPoolName))) {
1377      throw new IllegalArgumentException JavaDoc("Variable 0 has wrong OID: "+vbs[0].getOid()+
1378                                         " does not start with "+oidTrapVarJvmMemPoolName);
1379    }
1380    if (!jvmMemPoolEntryIndex.isValidIndex(jvmMemPoolEntry.getIndexPart(vbs[0].getOid()))) {
1381      throw new IllegalArgumentException JavaDoc("Illegal index for variable 0 specified: "+
1382                                         jvmMemPoolEntry.getIndexPart(vbs[0].getOid()));
1383    }
1384    if (!(vbs[1].getOid().startsWith(oidTrapVarJvmMemPoolCollectUsed))) {
1385      throw new IllegalArgumentException JavaDoc("Variable 1 has wrong OID: "+vbs[1].getOid()+
1386                                         " does not start with "+oidTrapVarJvmMemPoolCollectUsed);
1387    }
1388    if (!jvmMemPoolEntryIndex.isValidIndex(jvmMemPoolEntry.getIndexPart(vbs[1].getOid()))) {
1389      throw new IllegalArgumentException JavaDoc("Illegal index for variable 1 specified: "+
1390                                         jvmMemPoolEntry.getIndexPart(vbs[1].getOid()));
1391    }
1392    if (!(vbs[2].getOid().startsWith(oidTrapVarJvmMemPoolCollectThreshdCount))) {
1393      throw new IllegalArgumentException JavaDoc("Variable 2 has wrong OID: "+vbs[2].getOid()+
1394                                         " does not start with "+oidTrapVarJvmMemPoolCollectThreshdCount);
1395    }
1396    if (!jvmMemPoolEntryIndex.isValidIndex(jvmMemPoolEntry.getIndexPart(vbs[2].getOid()))) {
1397      throw new IllegalArgumentException JavaDoc("Illegal index for variable 2 specified: "+
1398                                         jvmMemPoolEntry.getIndexPart(vbs[2].getOid()));
1399    }
1400    notificationOriginator.notify(context, oidJvmLowMemoryPoolCollectNotif, vbs);
1401  }
1402
1403
1404  // Scalars
1405

1406  // Value Validators
1407

1408
1409  // Rows and Factories
1410

1411
1412//--AgentGen BEGIN=_METHODS
1413
//--AgentGen END
1414

1415//--AgentGen BEGIN=_CLASSES
1416
//--AgentGen END
1417

1418//--AgentGen BEGIN=_END
1419
//--AgentGen END
1420
}
1421
1422
1423
Popular Tags