- java.lang.Object
-
- org.snmp4j.agent.mo.snmp4j.Snmp4jLogMib
-
- All Implemented Interfaces:
java.util.EventListener
,MOTableRowListener
,RowStatusListener
,MOGroup
,MOServerLookupListener
public class Snmp4jLogMib extends java.lang.Object implements MOGroup, MOServerLookupListener, MOTableRowListener, RowStatusListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Snmp4jLogMib.Snmp4jLogConsoleHandlerTargetEnum
static class
Snmp4jLogMib.Snmp4jLogFileHandlerAppendEnum
static class
Snmp4jLogMib.Snmp4jLogFileHandlerBufferedIOEnum
class
Snmp4jLogMib.Snmp4jLogLoggerRow
static class
Snmp4jLogMib.Snmp4jLogLoggerToHandlerThresholdEnum
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Snmp4jLogMib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MOTable
getSnmp4jLogConsoleHandlerEntry()
MOTable
getSnmp4jLogFileHandlerEntry()
MOTable
getSnmp4jLogHandlerEntry()
MOTable
getSnmp4jLogLoggerEntry()
MOTable
getSnmp4jLogLoggerToHandlerEntry()
void
lookupEvent(MOServerLookupEvent event)
AMOServer
instance has looked up a managed object for which the listener has been registered.void
queryEvent(MOServerLookupEvent event)
AMOServer
instance is about to check if the managed object for which the listener had been registered matches a query.void
registerMOs(MOServer server, org.snmp4j.smi.OctetString context)
Registers the managed objects of this group with the server for the supplied context.void
rowChanged(MOTableRowEvent event)
A column or a complete row is changed/has been changed.void
rowStatusChanged(RowStatusEvent event)
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.void
updateLoggerTable()
-
Methods inherited from interface org.snmp4j.agent.MOServerLookupListener
completedUse
-
-
-
-
Field Detail
-
oidSnmp4jLogSysDescr
public static final org.snmp4j.smi.OID oidSnmp4jLogSysDescr
-
oidSnmp4jLogFactory
public static final org.snmp4j.smi.OID oidSnmp4jLogFactory
-
oidSnmp4jLogRootLevel
public static final org.snmp4j.smi.OID oidSnmp4jLogRootLevel
-
oidSnmp4jLogLoggerEntry
public static final org.snmp4j.smi.OID oidSnmp4jLogLoggerEntry
-
colSnmp4jLogLoggerIndex
public static final int colSnmp4jLogLoggerIndex
- See Also:
- Constant Field Values
-
colSnmp4jLogLoggerLevel
public static final int colSnmp4jLogLoggerLevel
- See Also:
- Constant Field Values
-
colSnmp4jLogLoggerEffectiveLevel
public static final int colSnmp4jLogLoggerEffectiveLevel
- See Also:
- Constant Field Values
-
colSnmp4jLogLoggerStorageType
public static final int colSnmp4jLogLoggerStorageType
- See Also:
- Constant Field Values
-
colSnmp4jLogLoggerRowStatus
public static final int colSnmp4jLogLoggerRowStatus
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerIndex
public static final int idxSnmp4jLogLoggerIndex
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerLevel
public static final int idxSnmp4jLogLoggerLevel
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerEffectiveLevel
public static final int idxSnmp4jLogLoggerEffectiveLevel
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerStorageType
public static final int idxSnmp4jLogLoggerStorageType
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerRowStatus
public static final int idxSnmp4jLogLoggerRowStatus
- See Also:
- Constant Field Values
-
oidSnmp4jLogLoggerToHandlerEntry
public static final org.snmp4j.smi.OID oidSnmp4jLogLoggerToHandlerEntry
-
colSnmp4jLogLoggerToHandlerThreshold
public static final int colSnmp4jLogLoggerToHandlerThreshold
- See Also:
- Constant Field Values
-
colSnmp4jLogLoggerToHandlerStorageType
public static final int colSnmp4jLogLoggerToHandlerStorageType
- See Also:
- Constant Field Values
-
colSnmp4jLogLoggerToHandlerRowStatus
public static final int colSnmp4jLogLoggerToHandlerRowStatus
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerToHandlerThreshold
public static final int idxSnmp4jLogLoggerToHandlerThreshold
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerToHandlerStorageType
public static final int idxSnmp4jLogLoggerToHandlerStorageType
- See Also:
- Constant Field Values
-
idxSnmp4jLogLoggerToHandlerRowStatus
public static final int idxSnmp4jLogLoggerToHandlerRowStatus
- See Also:
- Constant Field Values
-
oidSnmp4jLogHandlerEntry
public static final org.snmp4j.smi.OID oidSnmp4jLogHandlerEntry
-
colSnmp4jLogHandlerType
public static final int colSnmp4jLogHandlerType
- See Also:
- Constant Field Values
-
colSnmp4jLogHandlerStorageType
public static final int colSnmp4jLogHandlerStorageType
- See Also:
- Constant Field Values
-
colSnmp4jLogHandlerRowStatus
public static final int colSnmp4jLogHandlerRowStatus
- See Also:
- Constant Field Values
-
idxSnmp4jLogHandlerType
public static final int idxSnmp4jLogHandlerType
- See Also:
- Constant Field Values
-
idxSnmp4jLogHandlerStorageType
public static final int idxSnmp4jLogHandlerStorageType
- See Also:
- Constant Field Values
-
idxSnmp4jLogHandlerRowStatus
public static final int idxSnmp4jLogHandlerRowStatus
- See Also:
- Constant Field Values
-
oidSnmp4jLogFileHandlerEntry
public static final org.snmp4j.smi.OID oidSnmp4jLogFileHandlerEntry
-
colSnmp4jLogFileHandlerPath
public static final int colSnmp4jLogFileHandlerPath
- See Also:
- Constant Field Values
-
colSnmp4jLogFileHandlerAppend
public static final int colSnmp4jLogFileHandlerAppend
- See Also:
- Constant Field Values
-
colSnmp4jLogFileHandlerBufferedIO
public static final int colSnmp4jLogFileHandlerBufferedIO
- See Also:
- Constant Field Values
-
colSnmp4jLogFileHandlerBufferSize
public static final int colSnmp4jLogFileHandlerBufferSize
- See Also:
- Constant Field Values
-
idxSnmp4jLogFileHandlerPath
public static final int idxSnmp4jLogFileHandlerPath
- See Also:
- Constant Field Values
-
idxSnmp4jLogFileHandlerAppend
public static final int idxSnmp4jLogFileHandlerAppend
- See Also:
- Constant Field Values
-
idxSnmp4jLogFileHandlerBufferedIO
public static final int idxSnmp4jLogFileHandlerBufferedIO
- See Also:
- Constant Field Values
-
idxSnmp4jLogFileHandlerBufferSize
public static final int idxSnmp4jLogFileHandlerBufferSize
- See Also:
- Constant Field Values
-
oidSnmp4jLogConsoleHandlerEntry
public static final org.snmp4j.smi.OID oidSnmp4jLogConsoleHandlerEntry
-
colSnmp4jLogConsoleHandlerTarget
public static final int colSnmp4jLogConsoleHandlerTarget
- See Also:
- Constant Field Values
-
idxSnmp4jLogConsoleHandlerTarget
public static final int idxSnmp4jLogConsoleHandlerTarget
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSnmp4jLogLoggerEntry
public MOTable getSnmp4jLogLoggerEntry()
-
getSnmp4jLogLoggerToHandlerEntry
public MOTable getSnmp4jLogLoggerToHandlerEntry()
-
getSnmp4jLogHandlerEntry
public MOTable getSnmp4jLogHandlerEntry()
-
getSnmp4jLogFileHandlerEntry
public MOTable getSnmp4jLogFileHandlerEntry()
-
getSnmp4jLogConsoleHandlerEntry
public MOTable getSnmp4jLogConsoleHandlerEntry()
-
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).
-
lookupEvent
public void lookupEvent(MOServerLookupEvent event)
Description copied from interface:MOServerLookupListener
AMOServer
instance has looked up a managed object for which the listener has been registered.- Specified by:
lookupEvent
in interfaceMOServerLookupListener
- Parameters:
event
- aMOServerLookupEvent
describing the lookup query and the managed object that has been looked up.
-
queryEvent
public void queryEvent(MOServerLookupEvent event)
Description copied from interface:MOServerLookupListener
AMOServer
instance is about to check if the managed object for which the listener had been registered matches a query. A managed object with dynamic content like a non-static table might use this event to update its content.- Specified by:
queryEvent
in interfaceMOServerLookupListener
- Parameters:
event
- aMOServerLookupEvent
describing the lookup query and the managed object that is to be queried.
-
updateLoggerTable
public void updateLoggerTable()
-
rowStatusChanged
public void rowStatusChanged(RowStatusEvent event)
- Specified by:
rowStatusChanged
in interfaceRowStatusListener
-
rowChanged
public void rowChanged(MOTableRowEvent event)
Description copied from interface:MOTableRowListener
A column or a complete row is changed/has been changed.- Specified by:
rowChanged
in interfaceMOTableRowListener
- Parameters:
event
- aMOTableRowEvent
describing the event. To veto the event theMOTableRowEvent.setVetoStatus(int)
and optionally also theMOTableRowEvent.setVetoColumn(int)
can be called. IfMOTableRowEvent.getNumberOfConsecutiveEventsOfSameOrigin()
is greater than zero you need to setMOTableRowEvent.setSendNextEventsOfSameOrigin(boolean)
totrue
in order to receive those consecutive events too. Otherwise they will be ignored and not been propagated to this listener.
-
-