/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// java imports
//
// jmx imports
//
// jdmk imports
//
/**
* The class is used for implementing the "JvmMemPoolEntry" group.
*/
/**
* Variable for storing the value of "JvmMemPoolIndex".
*
* "An index value opaquely computed by the agent which uniquely
* identifies a row in the jvmMemPoolTable.
* "
*
*/
final protected int jvmMemPoolIndex;
"jvmMemPoolEntry.getCollectionUsage";
try {
if (m != null) {
m.get(entryMemoryTag);
" found in cache.");
return cached;
}
m.put(entryMemoryTag,u);
return u;
}
// Should never come here.
// Log error!
} catch (RuntimeException x) {
"Failed to get MemoryUsage: " + x);
throw x;
}
}
try {
if (m != null) {
entryPeakMemoryTag + " found in cache.");
return cached;
}
m.put(entryPeakMemoryTag,u);
return u;
}
// Should never come here.
// Log error!
return ZEROS;
} catch (RuntimeException x) {
"Failed to get MemoryUsage: " + x);
throw x;
}
}
try {
if (m != null) {
entryCollectMemoryTag + " found in cache.");
return cached;
}
m.put(entryCollectMemoryTag,u);
return u;
}
// Should never come here.
// Log error!
"ERROR: should never come here!");
return ZEROS;
} catch (RuntimeException x) {
"Failed to get MemoryUsage: " + x);
throw x;
}
}
/**
* Constructor for the "JvmMemPoolEntry" group.
*/
this.jvmMemPoolIndex = index;
}
/**
* Getter for the "JvmMemPoolMaxSize" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolUsed" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolInitSize" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolCommitted" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolPeakMaxSize" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolPeakUsed" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolPeakCommitted" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolCollectMaxSize" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolCollectUsed" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolCollectCommitted" variable.
*/
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolThreshold" variable.
*/
if (!pool.isUsageThresholdSupported())
return JvmMemoryImpl.Long0;
else return JvmMemoryImpl.Long0;
}
/**
* Setter for the "JvmMemPoolThreshold" variable.
*/
if (val < 0 )
// This should never throw an exception has the checks have
// already been performed in checkJvmMemPoolThreshold().
//
}
/**
* Checker for the "JvmMemPoolThreshold" variable.
*/
// if threshold is -1, it means that low memory detection is not
// supported.
if (!pool.isUsageThresholdSupported())
throw new
if (val < 0 )
}
/**
* Getter for the "JvmMemPoolThreshdSupport" variable.
*/
throws SnmpStatusException {
if (pool.isUsageThresholdSupported())
return EnumJvmMemPoolThreshdSupported;
else
return EnumJvmMemPoolThreshdUnsupported;
}
/**
* Getter for the "JvmMemPoolThreshdCount" variable.
*/
throws SnmpStatusException {
if (!pool.isUsageThresholdSupported())
return JvmMemoryImpl.Long0;
else return JvmMemoryImpl.Long0;
}
/**
* Getter for the "JvmMemPoolCollectThreshold" variable.
*/
return JvmMemoryImpl.Long0;
else return JvmMemoryImpl.Long0;
}
/**
* Setter for the "JvmMemPoolCollectThreshold" variable.
*/
throws SnmpStatusException {
if (val < 0 )
// This should never throw an exception has the checks have
// already been performed in checkJvmMemPoolCollectThreshold().
//
}
/**
* Checker for the "JvmMemPoolCollectThreshold" variable.
*/
throws SnmpStatusException {
// if threshold is -1, it means that low memory detection is not
// supported.
throw new
if (val < 0 )
}
/**
* Getter for the "JvmMemPoolThreshdSupport" variable.
*/
throws SnmpStatusException {
else
}
/**
* Getter for the "JvmMemPoolCollectThreshdCount" variable.
*/
throws SnmpStatusException {
return JvmMemoryImpl.Long0;
else return JvmMemoryImpl.Long0;
}
throws SnmpStatusException {
return EnumJvmMemPoolTypeHeap;
return EnumJvmMemPoolTypeNonHeap;
}
/**
* Getter for the "JvmMemPoolType" variable.
*/
}
/**
* Getter for the "JvmMemPoolName" variable.
*/
}
/**
* Getter for the "JvmMemPoolIndex" variable.
*/
return new Integer(jvmMemPoolIndex);
}
/**
* Getter for the "JvmMemPoolState" variable.
*/
throws SnmpStatusException {
return JvmMemPoolStateValid;
else
return JvmMemPoolStateInvalid;
}
/**
* Getter for the "JvmMemPoolPeakReset" variable.
*/
throws SnmpStatusException {
return new Long(jvmMemPoolPeakReset);
}
/**
* Setter for the "JvmMemPoolPeakReset" variable.
*/
throws SnmpStatusException {
final long l = x.longValue();
if (l > jvmMemPoolPeakReset) {
"jvmMemPoolPeakReset="+stamp);
}
}
/**
* Checker for the "JvmMemPoolPeakReset" variable.
*/
}
/* Last time peak usage was reset */
new EnumJvmMemPoolState("valid");
new EnumJvmMemPoolState("invalid");
new EnumJvmMemPoolType("heap");
new EnumJvmMemPoolType("nonheap");
private static final EnumJvmMemPoolThreshdSupport
new EnumJvmMemPoolThreshdSupport("supported");
private static final EnumJvmMemPoolThreshdSupport
new EnumJvmMemPoolThreshdSupport("unsupported");
private static final EnumJvmMemPoolCollectThreshdSupport
new EnumJvmMemPoolCollectThreshdSupport("supported");
private static final EnumJvmMemPoolCollectThreshdSupport
new EnumJvmMemPoolCollectThreshdSupport("unsupported");
}