Examples of NlmLogEntryRow


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

                  Address addr =
                      notificationLogEvent.getOriginatorTarget().getAddress();
                  addrString = addressFactory.getAddress(addr);
                  domainOID = addressFactory.getTransportDomain(addr);
                }
                NlmLogEntryRow logRow = (NlmLogEntryRow)
                    nlmLogEntry.createRow(logIndex,
                                          new Variable[] {
                                          SNMPv2MIB.getSysUpTime(null).get(),
                                          DateAndTime.makeDateAndTime(new
                    GregorianCalendar()),
                                          notificationLogEvent.
                                          getOriginatorEngineID(),
                                          addrString,
                                          domainOID,
                                          notificationLogEvent.getContextEngineID(),
                                          notificationLogEvent.getContext(),
                                          notificationLogEvent.getNotificationID()
                });
                if (nlmLogEntry.addRow(logRow)) {
                  nlmLogEntries.add(logRow.getIndex());
                }
                for (int i = 0; i < notificationLogEvent.getVariables().length;
                     i++) {
                  addVariable(logIndex, i + 1,
                              notificationLogEvent.getVariables()[i]);
View Full Code Here

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

    if (ageOut > 0) {
      List victims = new ArrayList();
      synchronized (nlmLogEntryModel) {
        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());
          }
View Full Code Here

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

        extends DefaultMOMutableRow2PCFactory
  {
    public synchronized MOTableRow createRow(OID index, Variable[] values)
        throws UnsupportedOperationException
    {
      NlmLogEntryRow row =
        new NlmLogEntryRow(index, values);
     //--AgentGen BEGIN=nlmLogEntry::createRow
     //--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.