protected boolean processErrors(int errorStatus, int errorIndex) throws SnmpException { return m_responseProcessor.processErrors(errorStatus, errorIndex); }
protected void processResponse(SnmpObjId receivedOid, SnmpValue val) { m_responseProcessor.processResponse(receivedOid, val); }
protected boolean processErrors(int errorStatus, int errorIndex) { return m_responseProcessor.processErrors(errorStatus, errorIndex); }
protected void processResponse(SnmpObjId receivedOid, SnmpValue val) throws SnmpException { m_responseProcessor.processResponse(receivedOid, val); }
@Override public boolean processErrors(int errorStatus, int errorIndex) throws SnmpException { /* * errorIndex is varBind index (1 based array of vars) * * */ int columnIndex = (errorIndex - 1) % m_processors.size(); ResponseProcessor rp = m_processors.get(columnIndex); return rp.processErrors(errorStatus, 1); }
@Override public void processResponse(SnmpObjId responseObjId, SnmpValue val) { try { ResponseProcessor rp = m_processors.get(m_currentIndex); if (++m_currentIndex == m_processors.size()) { m_currentIndex = 0; } rp.processResponse(responseObjId, val); } catch (Exception e) { LOG.warn("Failed to process response", e); } }
public boolean processErrors(int errorStatus, int errorIndex) { /* * errorIndex is varBind index (1 based array of vars) * * */ int columnIndex = (errorIndex - 1) % m_processors.size(); ResponseProcessor rp = m_processors.get(columnIndex); return rp.processErrors(errorStatus, 1); }
public void processResponse(SnmpObjId responseObjId, SnmpValue val) { try { ResponseProcessor rp = m_processors.get(m_currentIndex); if (++m_currentIndex == m_processors.size()) { m_currentIndex = 0; } rp.processResponse(responseObjId, val); } catch (Exception e) { e.printStackTrace(); } }
public boolean processChildError(int errorStatus, int errorIndex) throws SnmpException { int canonicalIndex = getCanonicalIndex(errorIndex-1); ChildTrackerPduBuilder childBuilder = getChildBuilder(canonicalIndex); int childIndex = childBuilder.getChildIndex(canonicalIndex); return childBuilder.getResponseProcessor().processErrors(errorStatus, childIndex+1); }
@Override public void processResponse(SnmpObjId snmpObjId, SnmpValue val) throws SnmpException { ChildTrackerPduBuilder childBuilder = getChildBuilder(m_currResponseIndex++); childBuilder.getResponseProcessor().processResponse(snmpObjId, val); }
public boolean processChildError(int errorStatus, int errorIndex) { int canonicalIndex = getCanonicalIndex(errorIndex-1); ChildTrackerPduBuilder childBuilder = getChildBuilder(canonicalIndex); int childIndex = childBuilder.getChildIndex(canonicalIndex); return childBuilder.getResponseProcessor().processErrors(errorStatus, childIndex+1); }
public void processResponse(SnmpObjId snmpObjId, SnmpValue val) { ChildTrackerPduBuilder childBuilder = getChildBuilder(m_currResponseIndex++); childBuilder.getResponseProcessor().processResponse(snmpObjId, val); }