コード例 #1
0
 /** WARNING: This should probably be moved to JvmMemPoolTableMetaImpl */
 private SnmpTableHandler getJvmMemPoolTableHandler(Object userData) {
   final SnmpMibTable meta = getRegisteredTableMeta("JvmMemPoolTable");
   if (!(meta instanceof JvmMemPoolTableMetaImpl)) {
     final String err =
         ((meta == null)
             ? "No metadata for JvmMemPoolTable"
             : "Bad metadata class for JvmMemPoolTable: " + meta.getClass().getName());
     log.error("getJvmMemPoolTableHandler", err);
     return null;
   }
   final JvmMemPoolTableMetaImpl memPoolTable = (JvmMemPoolTableMetaImpl) meta;
   return memPoolTable.getHandler(userData);
 }
コード例 #2
0
 public synchronized void addEntry(SnmpOid rowOid, ObjectName objname, Object entry)
     throws SnmpStatusException {
   if (!(entry instanceof JvmRTLibraryPathEntryMBean))
     throw new ClassCastException(
         "Entries for Table \""
             + "JvmRTLibraryPathTable"
             + "\" must implement the \""
             + "JvmRTLibraryPathEntryMBean"
             + "\" interface.");
   super.addEntry(rowOid, objname, entry);
 }