|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.amx.duet.tools.net.snmp.SNMPTrapConnection
This class is not complete...
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
SNMPTrapConnection(java.net.InetAddress hostAddress,
java.lang.String deviceMakeOID,
java.lang.String community,
SNMPTrapConnectionListener listener)
|
|
SNMPTrapConnection(int version,
java.net.InetAddress hostAddress,
java.lang.String deviceMakeOID,
java.lang.String community,
SNMPTrapConnectionListener listener)
|
|
SNMPTrapConnection(int version,
java.lang.String hostAddress,
java.lang.String deviceMakeOID,
java.lang.String community,
SNMPTrapConnectionListener listener)
|
|
SNMPTrapConnection(java.lang.String hostAddress,
java.lang.String deviceMakeOID,
java.lang.String community,
SNMPTrapConnectionListener listener)
|
Method Summary | |
void |
dispose()
|
int |
getDebugState()
Gets the current diagnostic state. |
java.lang.String |
getDeviceMakeOID()
Retrieves the device's company Object Identifier in a String object. |
void |
processv1Trap(SNMPv1TrapPDU trapPDU)
|
void |
processv2Trap(SNMPv2TrapPDU trapPDU)
|
void |
run()
|
void |
setDebug(boolean bState)
Deprecated. Do not use this method; use setDebugState instead |
void |
setDebugState(int nState)
Puts the class into a debug diagnostic state. |
boolean |
setDeviceMakeOID(java.lang.String makeOID)
Defines the device's company Object Identifier. |
void |
startReceiving()
|
void |
stopReceiving()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SNMPTrapConnection(int version, java.net.InetAddress hostAddress, java.lang.String deviceMakeOID, java.lang.String community, SNMPTrapConnectionListener listener)
version
- hostAddress
- deviceMakeOID
- community
- listener
- public SNMPTrapConnection(int version, java.lang.String hostAddress, java.lang.String deviceMakeOID, java.lang.String community, SNMPTrapConnectionListener listener)
version
- hostAddress
- deviceMakeOID
- community
- listener
- public SNMPTrapConnection(java.net.InetAddress hostAddress, java.lang.String deviceMakeOID, java.lang.String community, SNMPTrapConnectionListener listener)
hostAddress
- deviceMakeOID
- community
- listener
- public SNMPTrapConnection(java.lang.String hostAddress, java.lang.String deviceMakeOID, java.lang.String community, SNMPTrapConnectionListener listener)
hostAddress
- deviceMakeOID
- community
- listener
- Method Detail |
public boolean setDeviceMakeOID(java.lang.String makeOID)
The MIB hierarchy can be depicted as a tree with a nameless root, the levels of which are assigned by different organizations. Vendors usually define private branches that include managed objects for their products. The level prior to the products branch is the company's OID.
Example:
If the OID to get to a device variable looked like this: 1.3.6.1.4.1.9.3.3.1 The product OID might be: 1.3.6.1.4.1.9.3 And the company OID might be: 1.3.6.1.4 The call should look like this: boolean success = setDeviceMakeOID("1.3.6.1.4");Basically, the company OID is the prefix ID for the product ID and the product ID is the prefix for the variable OID.
makeOID
- String containing the company OID.
true
if the OID was valid; false
otherwise.public java.lang.String getDeviceMakeOID()
public void startReceiving()
public void stopReceiving()
public void processv1Trap(SNMPv1TrapPDU trapPDU)
processv1Trap
in interface SNMPv1TrapListener
public void processv2Trap(SNMPv2TrapPDU trapPDU)
processv2Trap
in interface SNMPv2TrapListener
public void dispose()
public void run()
run
in interface java.lang.Runnable
public void setDebug(boolean bState)
bState
- public void setDebugState(int nState)
nState
- public int getDebugState()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |