// Copyright 2014-2015 Boundary, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.boundary.sdk.event.snmp;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;

public class SnmpGetToMeasurement implements Processor {

	@Override
	public void process(Exchange exchange) throws Exception {
		// TODO Auto-generated method stub
	}
}

@@ -627,16 +627,42 @@
 .snmp;%0A%0A
+import java.util.Vector;%0A%0A
 import o
@@ -715,184 +715,1240 @@
 mel.
-Processor;%0A%0Apublic class SnmpGetToMeasurement implements Processor %7B%0A%0A%09@Override%0A%09public void process(Exchange exchange) throws Exception %7B%0A%09%09// TODO Auto-generated method stub
+Message;%0Aimport org.apache.camel.Processor;%0Aimport org.apache.camel.component.snmp.SnmpMessage;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.snmp4j.PDU;%0Aimport org.snmp4j.mp.SnmpConstants;%0Aimport org.snmp4j.smi.OID;%0Aimport org.snmp4j.smi.Variable;%0Aimport org.snmp4j.smi.VariableBinding;%0A%0Apublic class SnmpGetToMeasurement implements Processor %7B%0A%0A%09private static Logger LOG = LoggerFactory.getLogger(SNMPRouteBuilder.class);%0A%0A%09private SnmpPollerConfiguration config;%0A%0A%09public SnmpGetToMeasurement(SnmpPollerConfiguration config) %7B%0A%09%09this.config = config;%0A%09%7D%0A%0A%09@Override%0A%09public void process(Exchange exchange) throws Exception %7B%0A%09%09// Extract the SnmpMessage and PDU instances from the Camel Exchange%0A%09%09Message message = exchange.getIn();%0A%09%09SnmpMessage snmpMessage = message.getBody(SnmpMessage.class);%0A%09%09PDU pdu = snmpMessage.getSnmpMessage();%0A%09%09%0A%09%09// Get the variable bindings from the trap and create properties in the event%0A%09%09Vector%3C? extends VariableBinding%3E varBinds = pdu.getVariableBindings();%0A%09%09for (VariableBinding var : varBinds) %7B%0A%09%09%09OID oid = var.getOid();%0A%09%09%09Variable variable = var.getVariable();%0A%09%09%09LOG.info(%22oid: %7B%7D, value: %7B%7D, syntax: %7B%7D%22,oid,variable.toLong(),variable.getSyntaxString());%0A%09%09%7D
 %0A%09%7D%0A

Check in preliminary