Package org.opennms.netmgt.snmp.proxy
Class CorrelationIdUtils
- java.lang.Object
-
- org.opennms.netmgt.snmp.proxy.CorrelationIdUtils
-
public class CorrelationIdUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CorrelationIdUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
popIndexFromCollerationId(WalkResponse walkResponse, java.util.Map<java.lang.Integer,java.util.List<WalkResponse>> responsesByIndex)
Retrieves the most recent (first one in the string) index from the correlation id on the given response, and adds the (modified) response to the map at that index.static void
pushIndexToCorrelationId(WalkRequest walkRequest, int idx)
Prepends the index to the correlation id on the given request.
-
-
-
Method Detail
-
pushIndexToCorrelationId
public static void pushIndexToCorrelationId(WalkRequest walkRequest, int idx)
Prepends the index to the correlation id on the given request.
-
popIndexFromCollerationId
public static void popIndexFromCollerationId(WalkResponse walkResponse, java.util.Map<java.lang.Integer,java.util.List<WalkResponse>> responsesByIndex)
Retrieves the most recent (first one in the string) index from the correlation id on the given response, and adds the (modified) response to the map at that index. The responses in the map contain the same results, but their correlation ids are modified to remove index at which they were mapped.
-
-