- java.lang.Object
-
- org.snmp4j.agent.mo.snmp4j.example.Snmp4jHeartbeatMib
-
- All Implemented Interfaces:
java.util.EventListener
,MOTableRowListener<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow>
,RowStatusListener
,MOGroup
public class Snmp4jHeartbeatMib extends java.lang.Object implements MOGroup, RowStatusListener, MOTableRowListener<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow
static class
Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlRowStatusEnum
static class
Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlStorageTypeEnum
class
Snmp4jHeartbeatMib.Snmp4jAgentHBRefTime
-
Field Summary
Fields Modifier and Type Field Description static int
colSnmp4jAgentHBCtrlDelay
static int
colSnmp4jAgentHBCtrlEvents
static int
colSnmp4jAgentHBCtrlLastChange
static int
colSnmp4jAgentHBCtrlMaxEvents
static int
colSnmp4jAgentHBCtrlPeriod
static int
colSnmp4jAgentHBCtrlRowStatus
static int
colSnmp4jAgentHBCtrlStartTime
static int
colSnmp4jAgentHBCtrlStorageType
static int
idxSnmp4jAgentHBCtrlDelay
static int
idxSnmp4jAgentHBCtrlEvents
static int
idxSnmp4jAgentHBCtrlLastChange
static int
idxSnmp4jAgentHBCtrlMaxEvents
static int
idxSnmp4jAgentHBCtrlPeriod
static int
idxSnmp4jAgentHBCtrlRowStatus
static int
idxSnmp4jAgentHBCtrlStartTime
static int
idxSnmp4jAgentHBCtrlStorageType
static org.snmp4j.smi.OID
oidSnmp4jAgentHBCtrlEntry
static org.snmp4j.smi.OID
oidSnmp4jAgentHBEvent
static org.snmp4j.smi.OID
oidSnmp4jAgentHBRefTime
static org.snmp4j.smi.OID
oidTrapVarSnmp4jAgentHBCtrlEvents
-
Constructor Summary
Constructors Constructor Description Snmp4jHeartbeatMib(NotificationOriginator notificationOriginator, org.snmp4j.smi.OctetString context, SysUpTime upTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MOTable
getSnmp4jAgentHBCtrlEntry()
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
snmp4jAgentHBEvent(NotificationOriginator notificationOriginator, org.snmp4j.smi.OctetString context, org.snmp4j.smi.VariableBinding[] vbs)
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
-
oidSnmp4jAgentHBRefTime
public static final org.snmp4j.smi.OID oidSnmp4jAgentHBRefTime
-
oidSnmp4jAgentHBEvent
public static final org.snmp4j.smi.OID oidSnmp4jAgentHBEvent
-
oidTrapVarSnmp4jAgentHBCtrlEvents
public static final org.snmp4j.smi.OID oidTrapVarSnmp4jAgentHBCtrlEvents
-
oidSnmp4jAgentHBCtrlEntry
public static final org.snmp4j.smi.OID oidSnmp4jAgentHBCtrlEntry
-
colSnmp4jAgentHBCtrlStartTime
public static final int colSnmp4jAgentHBCtrlStartTime
- See Also:
- Constant Field Values
-
colSnmp4jAgentHBCtrlDelay
public static final int colSnmp4jAgentHBCtrlDelay
- See Also:
- Constant Field Values
-
colSnmp4jAgentHBCtrlPeriod
public static final int colSnmp4jAgentHBCtrlPeriod
- See Also:
- Constant Field Values
-
colSnmp4jAgentHBCtrlMaxEvents
public static final int colSnmp4jAgentHBCtrlMaxEvents
- See Also:
- Constant Field Values
-
colSnmp4jAgentHBCtrlEvents
public static final int colSnmp4jAgentHBCtrlEvents
- See Also:
- Constant Field Values
-
colSnmp4jAgentHBCtrlLastChange
public static final int colSnmp4jAgentHBCtrlLastChange
- See Also:
- Constant Field Values
-
colSnmp4jAgentHBCtrlStorageType
public static final int colSnmp4jAgentHBCtrlStorageType
- See Also:
- Constant Field Values
-
colSnmp4jAgentHBCtrlRowStatus
public static final int colSnmp4jAgentHBCtrlRowStatus
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlStartTime
public static final int idxSnmp4jAgentHBCtrlStartTime
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlDelay
public static final int idxSnmp4jAgentHBCtrlDelay
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlPeriod
public static final int idxSnmp4jAgentHBCtrlPeriod
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlMaxEvents
public static final int idxSnmp4jAgentHBCtrlMaxEvents
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlEvents
public static final int idxSnmp4jAgentHBCtrlEvents
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlLastChange
public static final int idxSnmp4jAgentHBCtrlLastChange
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlStorageType
public static final int idxSnmp4jAgentHBCtrlStorageType
- See Also:
- Constant Field Values
-
idxSnmp4jAgentHBCtrlRowStatus
public static final int idxSnmp4jAgentHBCtrlRowStatus
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Snmp4jHeartbeatMib
public Snmp4jHeartbeatMib(NotificationOriginator notificationOriginator, org.snmp4j.smi.OctetString context, SysUpTime upTime)
-
-
Method Detail
-
getSnmp4jAgentHBCtrlEntry
public MOTable getSnmp4jAgentHBCtrlEntry()
-
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).
-
snmp4jAgentHBEvent
public void snmp4jAgentHBEvent(NotificationOriginator notificationOriginator, org.snmp4j.smi.OctetString context, org.snmp4j.smi.VariableBinding[] vbs)
-
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<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow>
- 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.
-
-