Examples of SnmpClient


Examples of com.davfx.ninio.snmp.SnmpClient

      }
      @Override
      public void connect(SnmpClientHandler clientHandler) {
        Hold c = clients.get(address);
        if (c == null) {
          SnmpClient snmpClient = new SnmpClient();
          if (community != null) {
            snmpClient.withCommunity(community);
          }
          if ((authLogin != null) && (authPassword != null) && (authDigestAlgorithm != null) && (privLogin != null) && (privPassword != null) && (privEncryptionAlgorithm != null)) {
            snmpClient.withLoginPassword(authLogin, authPassword, authDigestAlgorithm, privLogin, privPassword, privEncryptionAlgorithm);
          }

          if (bulkSize >= 0) {
            snmpClient.withBulkSize(bulkSize);
          }
          if (getLimit >= 0) {
            snmpClient.withBulkSize(getLimit);
          }
          if (!Double.isNaN(minTimeToRepeat)) {
            snmpClient.withMinTimeToRepeat(minTimeToRepeat);
          }
          if (!Double.isNaN(repeatTime)) {
            snmpClient.withRepeatTime(repeatTime);
          }
          if (!Double.isNaN(timeoutFromBeginning)) {
            snmpClient.withTimeoutFromBeginning(timeoutFromBeginning);
          }
          if (!Double.isNaN(timeoutFromLastReception)) {
            snmpClient.withTimeoutFromLastReception(timeoutFromLastReception);
          }
          if (readyFactory != null) {
            snmpClient.override(readyFactory);
          }
          c = new Hold(snmpClient.withAddress(address).withQueue(queue, repeatExecutor));
         
          final Hold cc = c;
          clients.put(address, cc);
          c.handlers.add(clientHandler);
         
View Full Code Here

Examples of com.davfx.ninio.snmp.SnmpClient

      }
      @Override
      public void connect(SnmpClientHandler clientHandler) {
        Hold c = clients.get(address);
        if (c == null) {
          SnmpClient snmpClient = new SnmpClient();
          if (community != null) {
            snmpClient.withCommunity(community);
          }
          if (bulkSize >= 0) {
            snmpClient.withBulkSize(bulkSize);
          }
          if (getLimit >= 0) {
            snmpClient.withBulkSize(getLimit);
          }
          if (!Double.isNaN(minTimeToRepeat)) {
            snmpClient.withMinTimeToRepeat(minTimeToRepeat);
          }
          if (!Double.isNaN(repeatTime)) {
            snmpClient.withRepeatTime(repeatTime);
          }
          if (!Double.isNaN(timeoutFromBeginning)) {
            snmpClient.withTimeoutFromBeginning(timeoutFromBeginning);
          }
          if (!Double.isNaN(timeoutFromLastReception)) {
            snmpClient.withTimeoutFromLastReception(timeoutFromLastReception);
          }
          if (readyFactory != null) {
            snmpClient.override(readyFactory);
          }
          c = new Hold(snmpClient.withAddress(address).withQueue(queue, repeatExecutor));
         
          Hold cc = c;
          clients.put(address, cc);
          c.handlers.add(clientHandler);
         
View Full Code Here

Examples of org.rhq.plugins.www.snmp.SNMPClient

    public void start(ResourceContext<PlatformComponent> resourceContext) throws Exception {
        LOG.info("Initializing Resource component for Apache Server [" + resourceContext.getResourceKey() + "]...");

        this.resourceContext = resourceContext;
        this.eventContext = resourceContext.getEventContext();
        this.snmpClient = new SNMPClient();

        boolean configured = false;

        try {
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.