Package org.snmp4j.agent.mo.snmp.NotificationLogMib

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


        (getLogMode() == Snmp4jNotificationLogModeEnum.sent)) {
      Integer32 enabledStatus = new Integer32(NlmConfigLogAdminStatusEnum.
                                              enabled);
      synchronized (nlmConfigLogEntryModel) {
        for (Iterator it = nlmConfigLogEntryModel.iterator(); it.hasNext(); ) {
          NlmConfigLogEntryRow row = (NlmConfigLogEntryRow) it.next();
          if (enabledStatus.equals(row.getNlmConfigLogAdminStatus())) {
            OctetString profileName = new OctetString();
            profileName.fromSubIndex(row.getIndex(), false);
            OctetString filterName = row.getNlmConfigLogFilterName();
            if (filterName == null) {
              continue;
            }
            else if ((profileName.length() == 0) ||
                     (checkAccess(notificationLogEvent.getNotificationID(),
View Full Code Here


            removeRows(index, index.nextPeer());
        ((Counter32)nlmStatsGlobalNotificationsBumped.getValue()).increment();
      }
    }
    if (profileName != null) {
      NlmConfigLogEntryRow profile = (NlmConfigLogEntryRow)
          nlmConfigLogEntry.getModel().getRow(profileName.toSubIndex(false));
      if (profile != null) {
        UnsignedInteger32 limit = profile.getNlmConfigLogEntryLimit();
        if (limit != null) {
          long l = limit.getValue();
          if (l > 0) {
            deleteLogRows(l, profileName);
          }
View Full Code Here

        extends DefaultMOMutableRow2PCFactory
  {
    public synchronized MOTableRow createRow(OID index, Variable[] values)
        throws UnsupportedOperationException
    {
      NlmConfigLogEntryRow row =
        new NlmConfigLogEntryRow(index, values);
     //--AgentGen BEGIN=nlmConfigLogEntry::createRow
      if (values.length < nlmConfigLogEntry.getColumnCount()+1) {
        Variable[] extended = new Variable[nlmConfigLogEntry.getColumnCount()+1];
        System.arraycopy(values, 0, extended, 0, values.length);
        extended[values.length] = new OctetString();
        row = new NlmConfigLogEntryRow(index, extended);
      }
     //--AgentGen END
      return row;
    }
View Full Code Here

  protected void initNotificationLogMIB(VACM vacm,
                                        SnmpNotificationMIB notifyMIB) {
    notificationLogMIB = new NotificationLogMib(moFactory, vacm, notifyMIB);
    // init default log
    NlmConfigLogEntryRow row = (NlmConfigLogEntryRow)
        notificationLogMIB.getNlmConfigLogEntry().
        createRow(new OID(new int[] { 0 }), new Variable[] {
      new OctetString(),
      notificationLogDefaultLimit,
      new Integer32(NotificationLogMib.NlmConfigLogAdminStatusEnum.enabled),
View Full Code Here

TOP

Related Classes of org.snmp4j.agent.mo.snmp.NotificationLogMib.NlmConfigLogEntryRow

Copyright © 2018 www.massapicom. 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.