org.snmp4j.agent.mo.snmp
Class NotificationLogMib

java.lang.Object
  extended by org.snmp4j.agent.mo.snmp.NotificationLogMib
All Implemented Interfaces:
java.util.EventListener, NotificationLogListener, RowStatusListener, MOGroup

public class NotificationLogMib
extends java.lang.Object
implements MOGroup, NotificationLogListener, RowStatusListener


Nested Class Summary
 class NotificationLogMib.NlmConfigGlobalAgeOut
           
 class NotificationLogMib.NlmConfigGlobalEntryLimit
           
static class NotificationLogMib.NlmConfigLogAdminStatusEnum
           
 class NotificationLogMib.NlmConfigLogEntryRow
           
static class NotificationLogMib.NlmConfigLogOperStatusEnum
           
 class NotificationLogMib.NlmLogEntryRow
           
 class NotificationLogMib.NlmLogVariableEntryRow
           
static class NotificationLogMib.NlmLogVariableValueTypeEnum
           
 class NotificationLogMib.NlmStatsLogEntryRow
           
static class NotificationLogMib.Snmp4jNotificationLogModeEnum
           
 class NotificationLogMib.SnmpAdminString
           
 class NotificationLogMib.SnmpEngineID
           
 class NotificationLogMib.TAddress
           
 class NotificationLogMib.TDomain
           
 
Field Summary
static int colNlmConfigLogAdminStatus
           
static int colNlmConfigLogEntryLimit
           
static int colNlmConfigLogEntryStatus
           
static int colNlmConfigLogFilterName
           
static int colNlmConfigLogOperStatus
           
static int colNlmConfigLogStorageType
           
static int colNlmLogContextEngineID
           
static int colNlmLogContextName
           
static int colNlmLogDateAndTime
           
static int colNlmLogEngineID
           
static int colNlmLogEngineTAddress
           
static int colNlmLogEngineTDomain
           
static int colNlmLogNotificationID
           
static int colNlmLogTime
           
static int colNlmLogVariableCounter32Val
           
static int colNlmLogVariableCounter64Val
           
static int colNlmLogVariableID
           
static int colNlmLogVariableInteger32Val
           
static int colNlmLogVariableIpAddressVal
           
static int colNlmLogVariableOctetStringVal
           
static int colNlmLogVariableOidVal
           
static int colNlmLogVariableOpaqueVal
           
static int colNlmLogVariableTimeTicksVal
           
static int colNlmLogVariableUnsigned32Val
           
static int colNlmLogVariableValueType
           
static int colNlmStatsLogNotificationsBumped
           
static int colNlmStatsLogNotificationsLogged
           
static int idxNlmConfigLogAdminStatus
           
static int idxNlmConfigLogEntryLimit
           
static int idxNlmConfigLogEntryStatus
           
static int idxNlmConfigLogFilterName
           
static int idxNlmConfigLogOperStatus
           
static int idxNlmConfigLogStorageType
           
static int idxNlmLogContextEngineID
           
static int idxNlmLogContextName
           
static int idxNlmLogDateAndTime
           
static int idxNlmLogEngineID
           
static int idxNlmLogEngineTAddress
           
static int idxNlmLogEngineTDomain
           
static int idxNlmLogNotificationID
           
static int idxNlmLogTime
           
static int idxNlmLogVariableCounter32Val
           
static int idxNlmLogVariableCounter64Val
           
static int idxNlmLogVariableID
           
static int idxNlmLogVariableInteger32Val
           
static int idxNlmLogVariableIpAddressVal
           
static int idxNlmLogVariableOctetStringVal
           
static int idxNlmLogVariableOidVal
           
static int idxNlmLogVariableOpaqueVal
           
static int idxNlmLogVariableTimeTicksVal
           
static int idxNlmLogVariableUnsigned32Val
           
static int idxNlmLogVariableValueType
           
static int idxNlmStatsLogNotificationsBumped
           
static int idxNlmStatsLogNotificationsLogged
           
static org.snmp4j.smi.OID oidNlmConfigGlobalAgeOut
           
static org.snmp4j.smi.OID oidNlmConfigGlobalEntryLimit
           
static org.snmp4j.smi.OID oidNlmConfigLogEntry
           
static org.snmp4j.smi.OID oidNlmLogEntry
           
static org.snmp4j.smi.OID oidNlmLogIndex
           
static org.snmp4j.smi.OID oidNlmLogName
           
static org.snmp4j.smi.OID oidNlmLogVariableEntry
           
static org.snmp4j.smi.OID oidNlmLogVariableIndex
           
static org.snmp4j.smi.OID oidNlmStatsGlobalNotificationsBumped
           
static org.snmp4j.smi.OID oidNlmStatsGlobalNotificationsLogged
           
static org.snmp4j.smi.OID oidNlmStatsLogEntry
           
static org.snmp4j.smi.OID oidNotificationLogMib
          OID of this MIB module for usage which can be used for its identification.
static org.snmp4j.smi.OID oidSnmp4jNotificationLogMode
           
static java.lang.String tcDefDateAndTime
           
static java.lang.String tcDefRowStatus
           
static java.lang.String tcDefSnmpAdminString
           
static java.lang.String tcDefSnmpEngineID
           
static java.lang.String tcDefStorageType
           
static java.lang.String tcDefTAddress
           
static java.lang.String tcDefTDomain
           
static java.lang.String tcDefTimeStamp
           
static java.lang.String tcModuleSnmpFrameworkMib
           
static java.lang.String tcModuleSNMPv2Tc
           
 
Constructor Summary
protected NotificationLogMib()
          Constructs a NotificationLogMib instance without actually creating its ManagedObject instances.
  NotificationLogMib(MOFactory moFactory)
          Constructs a NotificationLogMib instance and actually creates its ManagedObject instances using the supplied MOFactory (by calling createMO(MOFactory moFactory)).
  NotificationLogMib(MOFactory moFactory, VACM vacm, SnmpNotificationMIB snmpNotificationMIB)
           
 
Method Summary
 void addImportedTCsToFactory(MOFactory moFactory)
           
protected  void addTCsToFactory(MOFactory moFactory)
           
protected  void createMO(MOFactory moFactory)
          Create the ManagedObjects defined for this MIB module using the specified MOFactory.
 int getLogMode()
          Returns the current log mode as defined by #Snmp4jNotificationLogModeEnum.
 MOScalar getNlmConfigGlobalAgeOut()
           
 MOScalar getNlmConfigGlobalEntryLimit()
           
 MOTable getNlmConfigLogEntry()
           
 MOTable getNlmLogEntry()
           
 MOTable getNlmLogVariableEntry()
           
 MOScalar getNlmStatsGlobalNotificationsBumped()
           
 MOScalar getNlmStatsGlobalNotificationsLogged()
           
 MOTable getNlmStatsLogEntry()
           
 void notificationLogEvent(NotificationLogEvent notificationLogEvent)
          Process a notification log event.
 void registerMOs(MOServer server, org.snmp4j.smi.OctetString context)
          Registers the managed objects of this group with the server for the supplied context.
 void rowStatusChanged(RowStatusEvent event)
           
 void setLogMode(int loggerMode)
          Sets the log mode of the events.
 void unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
          Unregisters the managed objects of this group from the supplied server and from the supplied context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oidNotificationLogMib

public static final org.snmp4j.smi.OID oidNotificationLogMib
OID of this MIB module for usage which can be used for its identification.


oidNlmConfigGlobalEntryLimit

public static final org.snmp4j.smi.OID oidNlmConfigGlobalEntryLimit

oidNlmConfigGlobalAgeOut

public static final org.snmp4j.smi.OID oidNlmConfigGlobalAgeOut

oidNlmStatsGlobalNotificationsLogged

public static final org.snmp4j.smi.OID oidNlmStatsGlobalNotificationsLogged

oidNlmStatsGlobalNotificationsBumped

public static final org.snmp4j.smi.OID oidNlmStatsGlobalNotificationsBumped

oidNlmConfigLogEntry

public static final org.snmp4j.smi.OID oidNlmConfigLogEntry

oidNlmLogName

public static final org.snmp4j.smi.OID oidNlmLogName

tcModuleSnmpFrameworkMib

public static final java.lang.String tcModuleSnmpFrameworkMib
See Also:
Constant Field Values

tcDefSnmpAdminString

public static final java.lang.String tcDefSnmpAdminString
See Also:
Constant Field Values

tcModuleSNMPv2Tc

public static final java.lang.String tcModuleSNMPv2Tc
See Also:
Constant Field Values

tcDefStorageType

public static final java.lang.String tcDefStorageType
See Also:
Constant Field Values

tcDefRowStatus

public static final java.lang.String tcDefRowStatus
See Also:
Constant Field Values

colNlmConfigLogFilterName

public static final int colNlmConfigLogFilterName
See Also:
Constant Field Values

colNlmConfigLogEntryLimit

public static final int colNlmConfigLogEntryLimit
See Also:
Constant Field Values

colNlmConfigLogAdminStatus

public static final int colNlmConfigLogAdminStatus
See Also:
Constant Field Values

colNlmConfigLogOperStatus

public static final int colNlmConfigLogOperStatus
See Also:
Constant Field Values

colNlmConfigLogStorageType

public static final int colNlmConfigLogStorageType
See Also:
Constant Field Values

colNlmConfigLogEntryStatus

public static final int colNlmConfigLogEntryStatus
See Also:
Constant Field Values

idxNlmConfigLogFilterName

public static final int idxNlmConfigLogFilterName
See Also:
Constant Field Values

idxNlmConfigLogEntryLimit

public static final int idxNlmConfigLogEntryLimit
See Also:
Constant Field Values

idxNlmConfigLogAdminStatus

public static final int idxNlmConfigLogAdminStatus
See Also:
Constant Field Values

idxNlmConfigLogOperStatus

public static final int idxNlmConfigLogOperStatus
See Also:
Constant Field Values

idxNlmConfigLogStorageType

public static final int idxNlmConfigLogStorageType
See Also:
Constant Field Values

idxNlmConfigLogEntryStatus

public static final int idxNlmConfigLogEntryStatus
See Also:
Constant Field Values

oidNlmStatsLogEntry

public static final org.snmp4j.smi.OID oidNlmStatsLogEntry

colNlmStatsLogNotificationsLogged

public static final int colNlmStatsLogNotificationsLogged
See Also:
Constant Field Values

colNlmStatsLogNotificationsBumped

public static final int colNlmStatsLogNotificationsBumped
See Also:
Constant Field Values

idxNlmStatsLogNotificationsLogged

public static final int idxNlmStatsLogNotificationsLogged
See Also:
Constant Field Values

idxNlmStatsLogNotificationsBumped

public static final int idxNlmStatsLogNotificationsBumped
See Also:
Constant Field Values

oidNlmLogEntry

public static final org.snmp4j.smi.OID oidNlmLogEntry

oidNlmLogIndex

public static final org.snmp4j.smi.OID oidNlmLogIndex

tcDefTimeStamp

public static final java.lang.String tcDefTimeStamp
See Also:
Constant Field Values

tcDefDateAndTime

public static final java.lang.String tcDefDateAndTime
See Also:
Constant Field Values

tcDefSnmpEngineID

public static final java.lang.String tcDefSnmpEngineID
See Also:
Constant Field Values

tcDefTAddress

public static final java.lang.String tcDefTAddress
See Also:
Constant Field Values

tcDefTDomain

public static final java.lang.String tcDefTDomain
See Also:
Constant Field Values

colNlmLogTime

public static final int colNlmLogTime
See Also:
Constant Field Values

colNlmLogDateAndTime

public static final int colNlmLogDateAndTime
See Also:
Constant Field Values

colNlmLogEngineID

public static final int colNlmLogEngineID
See Also:
Constant Field Values

colNlmLogEngineTAddress

public static final int colNlmLogEngineTAddress
See Also:
Constant Field Values

colNlmLogEngineTDomain

public static final int colNlmLogEngineTDomain
See Also:
Constant Field Values

colNlmLogContextEngineID

public static final int colNlmLogContextEngineID
See Also:
Constant Field Values

colNlmLogContextName

public static final int colNlmLogContextName
See Also:
Constant Field Values

colNlmLogNotificationID

public static final int colNlmLogNotificationID
See Also:
Constant Field Values

idxNlmLogTime

public static final int idxNlmLogTime
See Also:
Constant Field Values

idxNlmLogDateAndTime

public static final int idxNlmLogDateAndTime
See Also:
Constant Field Values

idxNlmLogEngineID

public static final int idxNlmLogEngineID
See Also:
Constant Field Values

idxNlmLogEngineTAddress

public static final int idxNlmLogEngineTAddress
See Also:
Constant Field Values

idxNlmLogEngineTDomain

public static final int idxNlmLogEngineTDomain
See Also:
Constant Field Values

idxNlmLogContextEngineID

public static final int idxNlmLogContextEngineID
See Also:
Constant Field Values

idxNlmLogContextName

public static final int idxNlmLogContextName
See Also:
Constant Field Values

idxNlmLogNotificationID

public static final int idxNlmLogNotificationID
See Also:
Constant Field Values

oidNlmLogVariableEntry

public static final org.snmp4j.smi.OID oidNlmLogVariableEntry

oidNlmLogVariableIndex

public static final org.snmp4j.smi.OID oidNlmLogVariableIndex

colNlmLogVariableID

public static final int colNlmLogVariableID
See Also:
Constant Field Values

colNlmLogVariableValueType

public static final int colNlmLogVariableValueType
See Also:
Constant Field Values

colNlmLogVariableCounter32Val

public static final int colNlmLogVariableCounter32Val
See Also:
Constant Field Values

colNlmLogVariableUnsigned32Val

public static final int colNlmLogVariableUnsigned32Val
See Also:
Constant Field Values

colNlmLogVariableTimeTicksVal

public static final int colNlmLogVariableTimeTicksVal
See Also:
Constant Field Values

colNlmLogVariableInteger32Val

public static final int colNlmLogVariableInteger32Val
See Also:
Constant Field Values

colNlmLogVariableOctetStringVal

public static final int colNlmLogVariableOctetStringVal
See Also:
Constant Field Values

colNlmLogVariableIpAddressVal

public static final int colNlmLogVariableIpAddressVal
See Also:
Constant Field Values

colNlmLogVariableOidVal

public static final int colNlmLogVariableOidVal
See Also:
Constant Field Values

colNlmLogVariableCounter64Val

public static final int colNlmLogVariableCounter64Val
See Also:
Constant Field Values

colNlmLogVariableOpaqueVal

public static final int colNlmLogVariableOpaqueVal
See Also:
Constant Field Values

idxNlmLogVariableID

public static final int idxNlmLogVariableID
See Also:
Constant Field Values

idxNlmLogVariableValueType

public static final int idxNlmLogVariableValueType
See Also:
Constant Field Values

idxNlmLogVariableCounter32Val

public static final int idxNlmLogVariableCounter32Val
See Also:
Constant Field Values

idxNlmLogVariableUnsigned32Val

public static final int idxNlmLogVariableUnsigned32Val
See Also:
Constant Field Values

idxNlmLogVariableTimeTicksVal

public static final int idxNlmLogVariableTimeTicksVal
See Also:
Constant Field Values

idxNlmLogVariableInteger32Val

public static final int idxNlmLogVariableInteger32Val
See Also:
Constant Field Values

idxNlmLogVariableOctetStringVal

public static final int idxNlmLogVariableOctetStringVal
See Also:
Constant Field Values

idxNlmLogVariableIpAddressVal

public static final int idxNlmLogVariableIpAddressVal
See Also:
Constant Field Values

idxNlmLogVariableOidVal

public static final int idxNlmLogVariableOidVal
See Also:
Constant Field Values

idxNlmLogVariableCounter64Val

public static final int idxNlmLogVariableCounter64Val
See Also:
Constant Field Values

idxNlmLogVariableOpaqueVal

public static final int idxNlmLogVariableOpaqueVal
See Also:
Constant Field Values

oidSnmp4jNotificationLogMode

public static final org.snmp4j.smi.OID oidSnmp4jNotificationLogMode
Constructor Detail

NotificationLogMib

protected NotificationLogMib()
Constructs a NotificationLogMib instance without actually creating its ManagedObject instances. This has to be done in a sub-class constructor or after construction by calling createMO(MOFactory moFactory).


NotificationLogMib

public NotificationLogMib(MOFactory moFactory)
Constructs a NotificationLogMib instance and actually creates its ManagedObject instances using the supplied MOFactory (by calling createMO(MOFactory moFactory)).

Parameters:
moFactory - the MOFactory to be used to create the managed objects for this module.

NotificationLogMib

public NotificationLogMib(MOFactory moFactory,
                          VACM vacm,
                          SnmpNotificationMIB snmpNotificationMIB)
Method Detail

createMO

protected void createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module using the specified MOFactory.

Parameters:
moFactory - the MOFactory instance to use for object creation.

getNlmConfigGlobalEntryLimit

public MOScalar getNlmConfigGlobalEntryLimit()

getNlmConfigGlobalAgeOut

public MOScalar getNlmConfigGlobalAgeOut()

getNlmStatsGlobalNotificationsLogged

public MOScalar getNlmStatsGlobalNotificationsLogged()

getNlmStatsGlobalNotificationsBumped

public MOScalar getNlmStatsGlobalNotificationsBumped()

getNlmConfigLogEntry

public MOTable getNlmConfigLogEntry()

getNlmStatsLogEntry

public MOTable getNlmStatsLogEntry()

getNlmLogEntry

public MOTable getNlmLogEntry()

getNlmLogVariableEntry

public MOTable getNlmLogVariableEntry()

registerMOs

public void registerMOs(MOServer server,
                        org.snmp4j.smi.OctetString context)
                 throws DuplicateRegistrationException
Description copied from interface: MOGroup
Registers the managed objects of this group with the server for the supplied context.

Specified by:
registerMOs in interface MOGroup
Parameters:
server - the MOServer where to register the managed objects.
context - the context to use (may be null if no specific context is selected).
Throws:
DuplicateRegistrationException - if a managed object's scope (i.e. lower bound) is already registered at the server.

unregisterMOs

public void unregisterMOs(MOServer server,
                          org.snmp4j.smi.OctetString context)
Description copied from interface: MOGroup
Unregisters the managed objects of this group from the supplied server and from the supplied context.

Specified by:
unregisterMOs in interface MOGroup
Parameters:
server - the MOServer where to unregister the managed objects.
context - the context to use (may be null if no specific context is selected).

setLogMode

public void setLogMode(int loggerMode)
Sets the log mode of the events. Possible values are defined by #Snmp4jNotificationLogModeEnum.

Parameters:
loggerMode - 1 to set log mode to log fired notification events only, 2 to set log mode to log sent notifications only.
Since:
1.4.2

getLogMode

public int getLogMode()
Returns the current log mode as defined by #Snmp4jNotificationLogModeEnum.

Returns:
1 if fired notification events are logged only, 2 if sent notifications are logged only.
Since:
1.4.2

notificationLogEvent

public void notificationLogEvent(NotificationLogEvent notificationLogEvent)
Description copied from interface: NotificationLogListener
Process a notification log event.

Specified by:
notificationLogEvent in interface NotificationLogListener
Parameters:
notificationLogEvent - a NotificationLogEvent instance describing a notification.

rowStatusChanged

public void rowStatusChanged(RowStatusEvent event)
Specified by:
rowStatusChanged in interface RowStatusListener

addTCsToFactory

protected void addTCsToFactory(MOFactory moFactory)

addImportedTCsToFactory

public void addImportedTCsToFactory(MOFactory moFactory)

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.