Examples of NlmStatsLogEntryRow


Examples of org.snmp4j.agent.mo.snmp.NotificationLogMib.NlmStatsLogEntryRow

                     i++) {
                  addVariable(logIndex, i + 1,
                              notificationLogEvent.getVariables()[i]);
                }
                synchronized (nlmStatsLogEntryModel) {
                  NlmStatsLogEntryRow statsRow = (NlmStatsLogEntryRow)
                      nlmStatsLogEntryModel.getRow(profileName.toSubIndex(false));
                  if (statsRow != null) {
                    statsRow.getNlmStatsLogNotificationsLogged().increment();
                  }
                }
                ((Counter32) nlmStatsGlobalNotificationsLogged.getValue()).
                    increment();
                checkLimits(profileName);
View Full Code Here

Examples of org.snmp4j.agent.mo.snmp.NotificationLogMib.NlmStatsLogEntryRow

        TimeTicks uptime = SNMPv2MIB.getSysUpTime(null).get();
        for (Iterator it = nlmLogEntryModel.iterator(); it.hasNext(); ) {
          NlmLogEntryRow row = (NlmLogEntryRow) it.next();
          if (uptime.getValue() - row.getNlmLogTime().getValue() >
              ageOut * 6000) {
            NlmStatsLogEntryRow statsRow = (NlmStatsLogEntryRow)
                nlmStatsLogEntryModel.getRow(row.getIndex().trim());
            if (statsRow != null) {
              statsRow.getNlmStatsLogNotificationsBumped().increment();
            }
            victims.add(statsRow.getIndex());
          }
        }
      }
      for (Iterator it = victims.iterator(); it.hasNext();) {
        OID index = (OID)it.next();
View Full Code Here

Examples of org.snmp4j.agent.mo.snmp.NotificationLogMib.NlmStatsLogEntryRow

          OID firstIndex = (OID) nlmLogEntries.remove(0);
          if (firstIndex != null) {
            nlmLogEntry.removeRow(firstIndex);
            ((DefaultMOMutableTableModel)
             nlmLogVariableEntryModel).removeRows(firstIndex, firstIndex.nextPeer());
            NlmStatsLogEntryRow statsRow = (NlmStatsLogEntryRow)
                nlmStatsLogEntryModel.getRow(firstIndex.trim());
            if (statsRow != null) {
              statsRow.getNlmStatsLogNotificationsBumped().increment();
            }
            ((Counter32)nlmStatsGlobalNotificationsBumped.getValue()).increment();
            if (profileName != null) {
              NlmStatsLogEntryRow profile = (NlmStatsLogEntryRow)
                  nlmStatsLogEntry.getModel().getRow(profileName.toSubIndex(false));
              if (profile != null) {
                profile.getNlmStatsLogNotificationsBumped().increment();
              }
            }
          }
        }
      }
View Full Code Here

Examples of org.snmp4j.agent.mo.snmp.NotificationLogMib.NlmStatsLogEntryRow

        extends DefaultMOMutableRow2PCFactory
  {
    public synchronized MOTableRow createRow(OID index, Variable[] values)
        throws UnsupportedOperationException
    {
      NlmStatsLogEntryRow row =
        new NlmStatsLogEntryRow(index, values);
     //--AgentGen BEGIN=nlmStatsLogEntry::createRow
      values[idxNlmStatsLogNotificationsLogged] = new Counter32(0);
      values[idxNlmStatsLogNotificationsBumped] = new Counter32(0);
     //--AgentGen END
      return row;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.