private synchronized void listLoggers(Snmp snmp, Target target, PDUFactory pduFactory) { TableUtils tableUtils = new TableUtils(snmp, pduFactory); OID lowerBound = null; OID upperBound = null; String filter = (String) ArgumentParser.getValue(parameters, "filter", 0); if (filter != null) { OctetString filterString = new OctetString(filter); lowerBound = filterString.toSubIndex(true); upperBound = lowerBound.nextPeer(); } LoggerListListener lll = new LoggerListListener(); tableUtils.getTable(target, SNMP4J_LOGGER_OIDS, lll, this, lowerBound, upperBound); while (!lll.isFinished()) { try { wait(); } catch (InterruptedException ex) { } } }
private synchronized void listLoggers(Snmp snmp, Target target, PDUFactory pduFactory) { TableUtils tableUtils = new TableUtils(snmp, pduFactory); OID lowerBound = null; OID upperBound = null; String filter = (String) ArgumentParser.getValue(parameters, "filter", 0); if (filter != null) { OctetString filterString = new OctetString(filter); lowerBound = filterString.toSubIndex(true); upperBound = lowerBound.nextPeer(); } LoggerListListener lll = new LoggerListListener(); tableUtils.getTable(target, SNMP4J_LOGGER_OIDS, lll, this, lowerBound, upperBound); while (!lll.isFinished()) { try { wait(); } catch (InterruptedException ex) { // ignore } } }
private synchronized void listLoggers(Snmp snmp, Target target, PDUFactory pduFactory) { TableUtils tableUtils = new TableUtils(snmp, pduFactory); OID lowerBound = null; OID upperBound = null; String filter = (String) ArgumentParser.getValue(parameters, "filter", 0); if (filter != null) { OctetString filterString = new OctetString(filter); lowerBound = filterString.toSubIndex(true); upperBound = lowerBound.nextPeer(); } LoggerListListener lll = new LoggerListListener(); tableUtils.getTable(target, SNMP4J_LOGGER_OIDS, lll, this, lowerBound, upperBound); while (!lll.isFinished()) { try { wait(); } catch (InterruptedException ex) { // ignore } } }