org.snmp4j.agent.mo.snmp4j.example
Class Snmp4jHeartbeatMib

java.lang.Object
  extended by org.snmp4j.agent.mo.snmp4j.example.Snmp4jHeartbeatMib
All Implemented Interfaces:
java.util.EventListener, MOTableRowListener, RowStatusListener, MOGroup

public class Snmp4jHeartbeatMib
extends java.lang.Object
implements MOGroup, RowStatusListener, MOTableRowListener


Nested Class Summary
 class Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlEntryRow
           
static class Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlRowStatusEnum
           
static class Snmp4jHeartbeatMib.Snmp4jAgentHBCtrlStorageTypeEnum
           
 class Snmp4jHeartbeatMib.Snmp4jAgentHBRefTime
           
 
Field Summary
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
Snmp4jHeartbeatMib(NotificationOriginator notificationOriginator, org.snmp4j.smi.OctetString context, SysUpTime upTime)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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).

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 interface RowStatusListener

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 interface MOTableRowListener
Parameters:
event - a MOTableRowEvent describing the event. To veto the event the MOTableRowEvent.setVetoStatus(int) and optionally also the MOTableRowEvent.setVetoColumn(int) can be called.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.