public class SnmpContext extends AbstractSnmpContext implements SnmpContextFace, Cloneable
anyPduExpectingResponse, bindAddr, hostname, hostPort, isDestroyed, maxRecvSize, pduSupport, trapSupport, typeSocketDEFAULT_COMMUNITYDEFAULT_PORT, MAXPDU, MSS, STANDARD_SOCKET, TCP_SOCKET| Constructor and Description |
|---|
SnmpContext(String host,
int port) |
SnmpContext(String host,
int port,
String typeSocketA) |
SnmpContext(String host,
int port,
String bindAddress,
String typeSocketA) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
byte[] |
encodePacket(byte msg_type,
int rId,
int errstat,
int errind,
Enumeration ve,
Object obj) |
byte[] |
encodePacket(byte msg_type,
String enterprise,
byte[] IpAddress,
int generic_trap,
int specific_trap,
long timeTicks,
Enumeration ve) |
String |
getCommunity() |
String |
getHashKey() |
int |
getVersion() |
Pdu |
processIncomingPdu(byte[] message) |
protected void |
processIncomingResponse(ByteArrayInputStream in) |
void |
setCommunity(String newCommunity) |
String |
toString() |
activate, addPdu, addRequestPduListener, addRequestPduListener, addRequestPduListener, addTrapListener, addTrapListener, addTrapListener, destroy, freeTransmitters, getBindAddress, getDebugString, getHost, getHostAddress, getMaxRecvSize, getPort, getReceivedFromHostAddress, getSendToHostAddress, getTypeSocket, isDestroyed, rawPduReceived, removePdu, removeRequestPduListener, removeRequestPduListener, removeRequestPduListener, removeTrapListener, removeTrapListener, removeTrapListener, run, sendPacket, setMaxRecvSize, stopequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPdu, addRequestPduListener, addRequestPduListener, addRequestPduListener, addTrapListener, addTrapListener, addTrapListener, destroy, getBindAddress, getHost, getPort, getReceivedFromHostAddress, getSendToHostAddress, getTypeSocket, isDestroyed, removePdu, removeRequestPduListener, removeRequestPduListener, removeRequestPduListener, removeTrapListener, removeTrapListener, removeTrapListener, sendPacketpublic SnmpContext(String host, int port) throws IOException
IOExceptionpublic SnmpContext(String host, int port, String typeSocketA) throws IOException
IOExceptionpublic SnmpContext(String host, int port, String bindAddress, String typeSocketA) throws IOException
IOExceptionpublic int getVersion()
getVersion in interface SnmpContextBasisFacegetVersion in class AbstractSnmpContextpublic String getCommunity()
getCommunity in interface SnmpContextFacepublic void setCommunity(String newCommunity)
setCommunity in interface SnmpContextFacepublic byte[] encodePacket(byte msg_type,
int rId,
int errstat,
int errind,
Enumeration ve,
Object obj)
throws IOException,
EncodingException
encodePacket in interface SnmpContextBasisFaceencodePacket in class AbstractSnmpContextIOExceptionEncodingExceptionpublic byte[] encodePacket(byte msg_type,
String enterprise,
byte[] IpAddress,
int generic_trap,
int specific_trap,
long timeTicks,
Enumeration ve)
throws IOException,
EncodingException
IOExceptionEncodingExceptionprotected void processIncomingResponse(ByteArrayInputStream in) throws DecodingException, IOException
processIncomingResponse in class AbstractSnmpContextDecodingExceptionIOExceptionpublic Pdu processIncomingPdu(byte[] message) throws DecodingException, IOException
processIncomingPdu in interface SnmpContextBasisFaceprocessIncomingPdu in class AbstractSnmpContextDecodingExceptionIOExceptionpublic Object clone() throws CloneNotSupportedException
clone in interface SnmpContextBasisFaceclone in class AbstractSnmpContextCloneNotSupportedExceptionpublic String getHashKey()
getHashKey in interface SnmpContextBasisFacegetHashKey in class AbstractSnmpContextCopyright © 2019. All rights reserved.