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]);