- java.lang.Object
-
- org.snmp4j.agent.mo.snmp.NotificationLogMib
-
- All Implemented Interfaces:
EventListener
,NotificationLogListener
,RowStatusListener
,MOGroup
public class NotificationLogMib extends Object implements MOGroup, NotificationLogListener, RowStatusListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
NotificationLogMib()
Constructs a NotificationLogMib instance without actually creating itsManagedObject
instances.NotificationLogMib(MOFactory moFactory)
Constructs a NotificationLogMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).NotificationLogMib(MOFactory moFactory, VACM vacm, SnmpNotificationMIB snmpNotificationMIB)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImportedTCsToFactory(MOFactory moFactory)
protected void
addTCsToFactory(MOFactory moFactory)
protected void
createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module using the specifiedMOFactory
.int
getLogMode()
Returns the current log mode as defined by #Snmp4jNotificationLogModeEnum.MOScalar<org.snmp4j.smi.UnsignedInteger32>
getNlmConfigGlobalAgeOut()
MOScalar<org.snmp4j.smi.UnsignedInteger32>
getNlmConfigGlobalEntryLimit()
MOTable<NotificationLogMib.NlmConfigLogEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmConfigLogEntryRow>>
getNlmConfigLogEntry()
MOTable<NotificationLogMib.NlmLogEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmLogEntryRow>>
getNlmLogEntry()
MOTable<NotificationLogMib.NlmLogVariableEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmLogVariableEntryRow>>
getNlmLogVariableEntry()
MOScalar<org.snmp4j.smi.Counter32>
getNlmStatsGlobalNotificationsBumped()
MOScalar<org.snmp4j.smi.Counter32>
getNlmStatsGlobalNotificationsLogged()
MOTable<NotificationLogMib.NlmStatsLogEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmStatsLogEntryRow>>
getNlmStatsLogEntry()
<A extends org.snmp4j.smi.Address>
voidnotificationLogEvent(NotificationLogEvent<A> 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.
-
-
-
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 String tcModuleSnmpFrameworkMib
- See Also:
- Constant Field Values
-
tcDefSnmpAdminString
public static final String tcDefSnmpAdminString
- See Also:
- Constant Field Values
-
tcModuleSNMPv2Tc
public static final String tcModuleSNMPv2Tc
- See Also:
- Constant Field Values
-
tcDefStorageType
public static final String tcDefStorageType
- See Also:
- Constant Field Values
-
tcDefRowStatus
public static final 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 String tcDefTimeStamp
- See Also:
- Constant Field Values
-
tcDefDateAndTime
public static final String tcDefDateAndTime
- See Also:
- Constant Field Values
-
tcDefSnmpEngineID
public static final String tcDefSnmpEngineID
- See Also:
- Constant Field Values
-
tcDefTAddress
public static final String tcDefTAddress
- See Also:
- Constant Field Values
-
tcDefTDomain
public static final 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 itsManagedObject
instances. This has to be done in a sub-class constructor or after construction by callingcreateMO(MOFactory moFactory)
.
-
NotificationLogMib
public NotificationLogMib(MOFactory moFactory)
Constructs a NotificationLogMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).- Parameters:
moFactory
- theMOFactory
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 specifiedMOFactory
.- Parameters:
moFactory
- theMOFactory
instance to use for object creation.
-
getNlmConfigGlobalEntryLimit
public MOScalar<org.snmp4j.smi.UnsignedInteger32> getNlmConfigGlobalEntryLimit()
-
getNlmConfigGlobalAgeOut
public MOScalar<org.snmp4j.smi.UnsignedInteger32> getNlmConfigGlobalAgeOut()
-
getNlmStatsGlobalNotificationsLogged
public MOScalar<org.snmp4j.smi.Counter32> getNlmStatsGlobalNotificationsLogged()
-
getNlmStatsGlobalNotificationsBumped
public MOScalar<org.snmp4j.smi.Counter32> getNlmStatsGlobalNotificationsBumped()
-
getNlmConfigLogEntry
public MOTable<NotificationLogMib.NlmConfigLogEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmConfigLogEntryRow>> getNlmConfigLogEntry()
-
getNlmStatsLogEntry
public MOTable<NotificationLogMib.NlmStatsLogEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmStatsLogEntryRow>> getNlmStatsLogEntry()
-
getNlmLogEntry
public MOTable<NotificationLogMib.NlmLogEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmLogEntryRow>> getNlmLogEntry()
-
getNlmLogVariableEntry
public MOTable<NotificationLogMib.NlmLogVariableEntryRow,MOColumn,MOTableModel<NotificationLogMib.NlmLogVariableEntryRow>> 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 interfaceMOGroup
- Parameters:
server
- theMOServer
where to register the managed objects.context
- the context to use (may benull
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 interfaceMOGroup
- Parameters:
server
- theMOServer
where to unregister the managed objects.context
- the context to use (may benull
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 <A extends org.snmp4j.smi.Address> void notificationLogEvent(NotificationLogEvent<A> notificationLogEvent)
Description copied from interface:NotificationLogListener
Process a notification log event.- Specified by:
notificationLogEvent
in interfaceNotificationLogListener
- Type Parameters:
A
- type of the peerAddress
.- Parameters:
notificationLogEvent
- a NotificationLogEvent instance describing a notification.
-
rowStatusChanged
public void rowStatusChanged(RowStatusEvent event)
- Specified by:
rowStatusChanged
in interfaceRowStatusListener
-
addTCsToFactory
protected void addTCsToFactory(MOFactory moFactory)
-
addImportedTCsToFactory
public void addImportedTCsToFactory(MOFactory moFactory)
-
-