Package org.snmp4j.smi

Examples of org.snmp4j.smi.Counter32


  }

  protected void createMO(MOFactory moFactory)
  {
    MOAccess readOnly = moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_ONLY);
    _scalars.add(moFactory.createScalar(OID_MESSAGES_RECEIVED, readOnly, new Counter32()));
    _scalars.add(moFactory.createScalar(OID_MESSAGES_SENT, readOnly, new Counter32()));
    _scalars.add(moFactory.createScalar(OID_SIP_VERSION, readOnly, new OctetString()));
  }
View Full Code Here


  public synchronized void incrementCounter(CounterEvent event) {
    OID id = event.getOid();
    VariableBinding counter = (VariableBinding) counters.get(id);
    if (counter == null) {
      counter = new VariableBinding(id, new Counter32(1));
      counters.put(id, counter);
    }
    else {
      ((Counter32)counter.getVariable()).increment();
    }
View Full Code Here

  public synchronized void incrementCounter(CounterEvent event) {
    OID id = event.getOid();
    VariableBinding counter = (VariableBinding) counters.get(id);
    if (counter == null) {
      counter = new VariableBinding(id, new Counter32(1));
      counters.put(id, counter);
    }
    else {
      ((Counter32)counter.getVariable()).increment();
    }
View Full Code Here

TOP

Related Classes of org.snmp4j.smi.Counter32

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.