|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.snmp.manager.SnmpMain
This class creates a socket and then starts all servers required to do SNMP operation.
This class assumes only one SnmpMain
per Java Virtual Machine.
Method Summary | |
void |
finalize()
Sets all the references to the SnmpMain
object to null . |
static MibStoreIfSrv |
getMibStore()
Gets the MibStore associated with this SnmpMain . |
static SnmpTrapAgent |
getSnmpTrapAgent()
Gets the SnmpTrapAgent (an Snmp Trap Handler) associated with this SnmpMain . |
static void |
initializeSNMP()
Initializes this SnmpMain object. |
static void |
initializeSNMP(MibStoreIfSrv mib)
Initializes this SnmpMain object with the specified mib value. |
static void |
setSnmpTrapAgent(SnmpTrapAgent trapAgent)
Sets the SnmpTrapAgent (an Snmp Trap Handler) associated with this SnmpMain . |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static void initializeSNMP(MibStoreIfSrv mib) throws SnmpStatusException
SnmpMain
object with the specified mib value.
If there is no SnmpMain
object already instantiated, a new one is created
and its MibStore
is updated with the specified mib value.
Otherwise, the specified mib value is simply added to the MibStore
.mib
- The mib value.public static void initializeSNMP() throws SnmpStatusException
SnmpMain
object.
If there is no SnmpMain
object already instantiated, a new one is created.
Otherwise, nothing is done.public static MibStoreIfSrv getMibStore()
MibStore
associated with this SnmpMain
.MibStore
.public static SnmpTrapAgent getSnmpTrapAgent()
SnmpTrapAgent
(an Snmp Trap Handler) associated with this SnmpMain
.SnmpTrapAgent
.public static void setSnmpTrapAgent(SnmpTrapAgent trapAgent)
SnmpTrapAgent
(an Snmp Trap Handler) associated with this SnmpMain
.trapAgent
- The SnmpTrapAgent
.public void finalize()
SnmpMain
object to null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |