/** * <p>setParameters.</p> * * @param conParams a {@link java.util.Map} object. */ public void setParameters(Map<String, String> conParams) { if (conParams!=null) { this.retries = convertStringToIntParam("retries", conParams.get("retries"), 3); this.timeout = convertStringToIntParam("timeout", conParams.get("timeout"), 1000); this.maxSizeRequestPDU = convertStringToIntParam("maxSizeRequestPDU", conParams.get("maxSizeRequestPDU"), 1000); this.maxRepetitions = convertStringToIntParam("maxRepetitions", conParams.get("maxRepetitions"), 10); doSetParameters(conParams); } }
/** {@inheritDoc} */ @Override public void doSetParameters(Map<String, String> conParams) { int destinationPort = super.convertStringToIntParam("destinationPort",conParams.get("destinationPort"),161); this.tcpAddress = new TcpAddress(conParams.get("ipAddress")+"/"+destinationPort); this.snmpCommunity=conParams.get("snmpCommunity"); }
/** {@inheritDoc} */ @Override protected void doSetParameters(Map<String, String> conParams) { int destinationPort = super.convertStringToIntParam("destinationPort",conParams.get("destinationPort"),161); this.tcpAddress = new TcpAddress(conParams.get("ipAddress")+"/"+destinationPort); this.snmpCommunity=conParams.get("snmpCommunity"); }
/** {@inheritDoc} */ @Override public void doSetParameters(Map<String, String> conParams) { int destinationPort = super.convertStringToIntParam("destinationPort",conParams.get("destinationPort"),161); this.udpAddress = new UdpAddress(conParams.get("ipAddress")+"/"+destinationPort); this.snmpCommunity=conParams.get("snmpCommunity"); }
/** {@inheritDoc} */ @Override protected void doSetParameters(Map<String, String> conParams) { int destinationPort = super.convertStringToIntParam("destinationPort",conParams.get("destinationPort"),161); this.udpAddress = new UdpAddress(conParams.get("ipAddress")+"/"+destinationPort); this.snmpCommunity=conParams.get("snmpCommunity"); }
/** {@inheritDoc} */ @Override public void doSetParameters(Map<String, String> conParams) { int destinationPort = super.convertStringToIntParam("destinationPort",conParams.get("destinationPort"),161); this.tcpAddress = new TcpAddress(conParams.get("ipAddress")+"/"+destinationPort); this.ver3Username = conParams.get("ver3Username"); this.ver3AuthPasscode = conParams.get("ver3Username"); this.authenticationProtocol = conParams.get("authenticationProtocol"); this.privacyProtocol = conParams.get("privacyProtocol"); this.privacyProtocolPassShare = conParams.get("privacyProtocolPassShare"); }
/** {@inheritDoc} */ @Override public void doSetParameters(Map<String, String> conParams) { int destinationPort = super.convertStringToIntParam("destinationPort",conParams.get("destinationPort"),161); this.udpAddress = new UdpAddress(conParams.get("ipAddress")+"/"+destinationPort); this.ver3Username = conParams.get("ver3Username"); this.ver3AuthPasscode = conParams.get("ver3AuthPasscode"); this.authenticationProtocol = conParams.get("authenticationProtocol"); this.privacyProtocol = conParams.get("privacyProtocol"); this.privacyProtocolPassShare = conParams.get("privacyProtocolPassShare"); setVer3Mode(conParams.get("ver3mode")); }