org.snmp4j.agent.example
Class Snmp4jDemoMib

java.lang.Object
  extended by org.snmp4j.agent.example.Snmp4jDemoMib
All Implemented Interfaces:
MOGroup

public class Snmp4jDemoMib
extends java.lang.Object
implements MOGroup


Nested Class Summary
 class Snmp4jDemoMib.Snmp4jDemoEntryRow
           
 class Snmp4jDemoMib.Snmp4jDemoScalar
           
static class Snmp4jDemoMib.Snmp4jDemoTableRowModificationEnum
           
 
Field Summary
static int colSnmp4jDemoEntryCol1
           
static int colSnmp4jDemoEntryCol2
           
static int colSnmp4jDemoEntryCol3
           
static int colSnmp4jDemoEntryCol4
           
static int colSnmp4jDemoEntryCol5
           
static int colSnmp4jDemoEntryCol6
           
static int colSnmp4jDemoTableRowModification
           
static int idxSnmp4jDemoEntryCol1
           
static int idxSnmp4jDemoEntryCol2
           
static int idxSnmp4jDemoEntryCol3
           
static int idxSnmp4jDemoEntryCol4
           
static int idxSnmp4jDemoEntryCol5
           
static int idxSnmp4jDemoEntryCol6
           
static int idxSnmp4jDemoTableRowModification
           
static org.snmp4j.smi.OID oidSnmp4jDemoEntry
           
static org.snmp4j.smi.OID oidSnmp4jDemoEntryIndex1
           
static org.snmp4j.smi.OID oidSnmp4jDemoEntryIndex2
           
static org.snmp4j.smi.OID oidSnmp4jDemoEvent
           
static org.snmp4j.smi.OID oidSnmp4jDemoScalar
           
static org.snmp4j.smi.OID oidTrapVarSnmp4jDemoEntryCol3
           
static org.snmp4j.smi.OID oidTrapVarSnmp4jDemoTableRowModification
           
static java.lang.String tcDefRowStatus
           
static java.lang.String tcDefStorageType
           
static java.lang.String tcDefTimeStamp
           
static java.lang.String tcModuleSNMPv2Tc
           
 
Constructor Summary
protected Snmp4jDemoMib()
          Constructs a Snmp4jDemoMib instance without actually creating its ManagedObject instances.
  Snmp4jDemoMib(MOFactory moFactory)
          Constructs a Snmp4jDemoMib instance and actually creates its ManagedObject instances using the supplied MOFactory (by calling createMO(MOFactory moFactory)).
 
Method Summary
protected  void addImportedTCsToFactory(MOFactory moFactory)
           
protected  void addTCsToFactory(MOFactory moFactory)
           
protected  void createMO(MOFactory moFactory)
          Create the ManagedObjects defined for this MIB module using the specified MOFactory.
 MOTable getSnmp4jDemoEntry()
           
 MOScalar getSnmp4jDemoScalar()
           
 void registerMOs(MOServer server, org.snmp4j.smi.OctetString context)
          Registers the managed objects of this group with the server for the supplied context.
 void snmp4jDemoEvent(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

oidSnmp4jDemoScalar

public static final org.snmp4j.smi.OID oidSnmp4jDemoScalar

oidSnmp4jDemoEvent

public static final org.snmp4j.smi.OID oidSnmp4jDemoEvent

oidTrapVarSnmp4jDemoEntryCol3

public static final org.snmp4j.smi.OID oidTrapVarSnmp4jDemoEntryCol3

oidTrapVarSnmp4jDemoTableRowModification

public static final org.snmp4j.smi.OID oidTrapVarSnmp4jDemoTableRowModification

oidSnmp4jDemoEntry

public static final org.snmp4j.smi.OID oidSnmp4jDemoEntry

oidSnmp4jDemoEntryIndex1

public static final org.snmp4j.smi.OID oidSnmp4jDemoEntryIndex1

oidSnmp4jDemoEntryIndex2

public static final org.snmp4j.smi.OID oidSnmp4jDemoEntryIndex2

tcModuleSNMPv2Tc

public static final java.lang.String tcModuleSNMPv2Tc
See Also:
Constant Field Values

tcDefTimeStamp

public static final java.lang.String tcDefTimeStamp
See Also:
Constant Field Values

tcDefStorageType

public static final java.lang.String tcDefStorageType
See Also:
Constant Field Values

tcDefRowStatus

public static final java.lang.String tcDefRowStatus
See Also:
Constant Field Values

colSnmp4jDemoEntryCol1

public static final int colSnmp4jDemoEntryCol1
See Also:
Constant Field Values

colSnmp4jDemoEntryCol2

public static final int colSnmp4jDemoEntryCol2
See Also:
Constant Field Values

colSnmp4jDemoEntryCol3

public static final int colSnmp4jDemoEntryCol3
See Also:
Constant Field Values

colSnmp4jDemoEntryCol4

public static final int colSnmp4jDemoEntryCol4
See Also:
Constant Field Values

colSnmp4jDemoEntryCol5

public static final int colSnmp4jDemoEntryCol5
See Also:
Constant Field Values

colSnmp4jDemoEntryCol6

public static final int colSnmp4jDemoEntryCol6
See Also:
Constant Field Values

colSnmp4jDemoTableRowModification

public static final int colSnmp4jDemoTableRowModification
See Also:
Constant Field Values

idxSnmp4jDemoEntryCol1

public static final int idxSnmp4jDemoEntryCol1
See Also:
Constant Field Values

idxSnmp4jDemoEntryCol2

public static final int idxSnmp4jDemoEntryCol2
See Also:
Constant Field Values

idxSnmp4jDemoEntryCol3

public static final int idxSnmp4jDemoEntryCol3
See Also:
Constant Field Values

idxSnmp4jDemoEntryCol4

public static final int idxSnmp4jDemoEntryCol4
See Also:
Constant Field Values

idxSnmp4jDemoEntryCol5

public static final int idxSnmp4jDemoEntryCol5
See Also:
Constant Field Values

idxSnmp4jDemoEntryCol6

public static final int idxSnmp4jDemoEntryCol6
See Also:
Constant Field Values

idxSnmp4jDemoTableRowModification

public static final int idxSnmp4jDemoTableRowModification
See Also:
Constant Field Values
Constructor Detail

Snmp4jDemoMib

protected Snmp4jDemoMib()
Constructs a Snmp4jDemoMib instance without actually creating its ManagedObject instances. This has to be done in a sub-class constructor or after construction by calling createMO(MOFactory moFactory).


Snmp4jDemoMib

public Snmp4jDemoMib(MOFactory moFactory)
Constructs a Snmp4jDemoMib instance and actually creates its ManagedObject instances using the supplied MOFactory (by calling createMO(MOFactory moFactory)).

Parameters:
moFactory - the MOFactory to be used to create the managed objects for this module.
Method Detail

createMO

protected void createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module using the specified MOFactory.

Parameters:
moFactory - the MOFactory instance to use for object creation.

getSnmp4jDemoScalar

public MOScalar getSnmp4jDemoScalar()

getSnmp4jDemoEntry

public MOTable getSnmp4jDemoEntry()

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

snmp4jDemoEvent

public void snmp4jDemoEvent(NotificationOriginator notificationOriginator,
                            org.snmp4j.smi.OctetString context,
                            org.snmp4j.smi.VariableBinding[] vbs)

addTCsToFactory

protected void addTCsToFactory(MOFactory moFactory)

addImportedTCsToFactory

protected void addImportedTCsToFactory(MOFactory moFactory)

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.