Package org.snmp4j

Examples of org.snmp4j.Target


  @Override
  public ResponseEvent informSync(final A address, final VariableBinding... bindings) throws IOException {

    checkNoNulls(address, bindings);

    final Target target = this.createTarget(address);
    final PDU requestPdu = this.createRequestPdu(PDU.INFORM, target, bindings);
    return this.getSnmp().send(requestPdu, target);
  }
View Full Code Here


  @Override
  public void notify(final A address, final VariableBinding... bindings) throws IOException {

    checkNoNulls(address, bindings);

    final Target target = this.createTarget(address);
    final PDU requestPdu = this.createRequestPdu(PDU.NOTIFICATION, target, bindings);
    this.getSnmp().send(requestPdu, target);
  }
View Full Code Here

  public void getBulkAsync(final A address, final int maxRepetitions, final int nonRepeaters,
      final ResponseListener listener, final Object handle, final OID... oids) throws IOException {

    checkNoNulls(address, listener, oids);

    final Target target = this.createTarget(address);
    final PDU requestPdu = this.createRequestPdu(PDU.GETBULK, target, VariableBindings.wrapOids(oids));
    requestPdu.setMaxRepetitions(maxRepetitions);
    requestPdu.setNonRepeaters(nonRepeaters);
    this.getSnmp().send(requestPdu, target, handle, listener);
  }
View Full Code Here

  public ResponseEvent getBulkSync(final A address, final int maxRepetitions, final int nonRepeaters,
      final OID... oids) throws IOException {

    checkNoNulls(address, oids);

    final Target target = this.createTarget(address);
    final PDU requestPdu = this.createRequestPdu(PDU.GETBULK, target, VariableBindings.wrapOids(oids));
    requestPdu.setMaxRepetitions(maxRepetitions);
    requestPdu.setNonRepeaters(nonRepeaters);
    return this.getSnmp().send(requestPdu, target);
  }
View Full Code Here

  public void informAsync(final A address, final ResponseListener listener, final Object handle,
      final VariableBinding... bindings) throws IOException {

    checkNoNulls(address, listener, bindings);

    final Target target = this.createTarget(address);
    final PDU requestPdu = this.createRequestPdu(PDU.INFORM, target, bindings);
    this.getSnmp().send(requestPdu, target, handle, listener);
  }
View Full Code Here

  @Override
  public ResponseEvent informSync(final A address, final VariableBinding... bindings) throws IOException {

    checkNoNulls(address, bindings);

    final Target target = this.createTarget(address);
    final PDU requestPdu = this.createRequestPdu(PDU.INFORM, target, bindings);
    return this.getSnmp().send(requestPdu, target);
  }
View Full Code Here

  @Override
  public void notify(final A address, final VariableBinding... bindings) throws IOException {

    checkNoNulls(address, bindings);

    final Target target = this.createTarget(address);
    final PDU requestPdu = this.createRequestPdu(PDU.NOTIFICATION, target, bindings);
    this.getSnmp().send(requestPdu, target);
  }
View Full Code Here

TOP

Related Classes of org.snmp4j.Target

Copyright © 2018 www.massapicom. 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.