- 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 classSnmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRowstatic classSnmp4jHeartbeatMib.Snmp4jAgentHBCtrlRowStatusEnumstatic classSnmp4jHeartbeatMib.Snmp4jAgentHBCtrlStorageTypeEnumclassSnmp4jHeartbeatMib.Snmp4jAgentHBRefTime
-
Field Summary
Fields Modifier and Type Field Description static intcolSnmp4jAgentHBCtrlDelaystatic intcolSnmp4jAgentHBCtrlEventsstatic intcolSnmp4jAgentHBCtrlLastChangestatic intcolSnmp4jAgentHBCtrlMaxEventsstatic intcolSnmp4jAgentHBCtrlPeriodstatic intcolSnmp4jAgentHBCtrlRowStatusstatic intcolSnmp4jAgentHBCtrlStartTimestatic intcolSnmp4jAgentHBCtrlStorageTypestatic intidxSnmp4jAgentHBCtrlDelaystatic intidxSnmp4jAgentHBCtrlEventsstatic intidxSnmp4jAgentHBCtrlLastChangestatic intidxSnmp4jAgentHBCtrlMaxEventsstatic intidxSnmp4jAgentHBCtrlPeriodstatic intidxSnmp4jAgentHBCtrlRowStatusstatic intidxSnmp4jAgentHBCtrlStartTimestatic intidxSnmp4jAgentHBCtrlStorageTypestatic org.snmp4j.smi.OIDoidSnmp4jAgentHBCtrlEntrystatic org.snmp4j.smi.OIDoidSnmp4jAgentHBEventstatic org.snmp4j.smi.OIDoidSnmp4jAgentHBRefTimestatic org.snmp4j.smi.OIDoidTrapVarSnmp4jAgentHBCtrlEvents
-
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<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow,MOColumn,MOMutableTableModel<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow>>getSnmp4jAgentHBCtrlEntry()voidregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)Registers the managed objects of this group with the server for the supplied context.voidrowChanged(MOTableRowEvent<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow> event)A column or a complete row is changed/has been changed.voidrowStatusChanged(RowStatusEvent event)voidsnmp4jAgentHBEvent(NotificationOriginator notificationOriginator, org.snmp4j.smi.OctetString context, org.snmp4j.smi.VariableBinding[] vbs)voidunregisterMOs(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<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow,MOColumn,MOMutableTableModel<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow>> getSnmp4jAgentHBCtrlEntry()
-
registerMOs
public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException
Description copied from interface:MOGroupRegisters the managed objects of this group with the server for the supplied context.- Specified by:
registerMOsin interfaceMOGroup- Parameters:
server- theMOServerwhere to register the managed objects.context- the context to use (may benullif 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:MOGroupUnregisters the managed objects of this group from the supplied server and from the supplied context.- Specified by:
unregisterMOsin interfaceMOGroup- Parameters:
server- theMOServerwhere to unregister the managed objects.context- the context to use (may benullif 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:
rowStatusChangedin interfaceRowStatusListener
-
rowChanged
public void rowChanged(MOTableRowEvent<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow> event)
Description copied from interface:MOTableRowListenerA column or a complete row is changed/has been changed.- Specified by:
rowChangedin interfaceMOTableRowListener<Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow>- Parameters:
event- aMOTableRowEventdescribing 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)totruein order to receive those consecutive events too. Otherwise they will be ignored and not been propagated to this listener.
-
-