public class SnmpClientFixture extends Object implements SnmpClient
| Constructor and Description |
|---|
SnmpClientFixture()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static SnmpResponse |
copy(SnmpRequest request)
Helper method to copy a request into a response (used for fixtures/testing).
|
void |
sendRequest(SnmpRequest request)
Main entry point for sending requests to a SNMP server.
|
void |
sendTrap(SnmpTrapRequest trap)
Main entry point for sending traps to a SNMP receiver.
|
void |
setErrorType(SnmpRequest.ErrorType errorType) |
void |
setRemoteAddress(IpAddress remoteAddress) |
void |
stop()
Shutdown the client and underlying engine.
|
public static SnmpResponse copy(SnmpRequest request)
request - original SNMP requestpublic void setErrorType(SnmpRequest.ErrorType errorType)
public void setRemoteAddress(IpAddress remoteAddress)
public void stop()
SnmpClientstop in interface SnmpClientpublic void sendTrap(SnmpTrapRequest trap)
SnmpClientsendTrap in interface SnmpClienttrap - SNMP trappublic void sendRequest(SnmpRequest request)
SnmpClientsendRequest in interface SnmpClientrequest - SNMP request (all required fields must be setup properly)Copyright © 2014. All Rights Reserved.