Examples of PDUFactory


Examples of org.snmp4j.util.PDUFactory

   * @return A fully constructed request {@link PDU}.
   */
  protected PDU createRequestPdu(final int type, final Target target, final VariableBinding... bindings) {

    /* Build the request PDU */
    final PDUFactory pduFactory = new DefaultPDUFactory(type);
    final PDU requestPdu = pduFactory.createPDU(target);

    /* Load up the OIDs or VariableBindings */
    if ((type == PDU.GET) || (type == PDU.GETBULK) || (type == PDU.GETNEXT)) {
      requestPdu.addAllOIDs(bindings);
    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.