+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/**
- * @author Ashwin Raveendran
- */
+
public class Insert<E extends TableSchema<E>> extends Operation<E> {
public static final String INSERT = "insert";
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Queue;
import java.util.concurrent.ExecutorService;
-/**
- * @author araveendrann
- */
+
public class OpenVswitch {
ExecutorService executorService;
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.database;
-/**
- * @author araveendrann
- */
+
public class Column<E extends Table> {
ColumnSchema schema;
}
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.database;
-/**
- * @author araveendrann
- */
+
public class Table<E extends Table> {
TableSchema schema;
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.jsonrpc;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
-/**
- * @author araveendrann
- */
+
public class JsonUtils {
static ObjectMapper mapper = new ObjectMapper();
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.message.operations;
import org.opendaylight.ovsdb.lib.notation.Condition;
/**
* Represents an Operation type that accepts acondition, for e.g Update, Select etc
- * @author araveendrann
*/
public interface ConditionalOperation {
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.Set;
-/**
- * @author araveendrann
- */
public abstract class BaseType<E extends BaseType<E>> {
private static BaseType[] types = new BaseType[]{
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta;
import com.fasterxml.jackson.databind.JsonNode;
import org.opendaylight.ovsdb.lib.notation.Condition;
import org.opendaylight.ovsdb.lib.notation.Function;
-/**
- * @author ashw7n
- */
public class ColumnSchema<E extends TableSchema<E>, D> {
String name;
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta;
import com.fasterxml.jackson.databind.JsonNode;
import org.opendaylight.ovsdb.lib.jsonrpc.JsonUtils;
-/**
- * @author araveendrann
- */
+
public abstract class ColumnType {
BaseType baseType;
int min = 0;
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.Iterator;
import java.util.Map;
-/**
- * @author araveendrann
- */
+
public class DatabaseSchema {
public static Logger logger = LoggerFactory.getLogger(DatabaseSchema.class);
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta;
import com.fasterxml.jackson.databind.JsonNode;
import java.util.Iterator;
import java.util.Map;
-/**
- * @author araveendrann
- */
+
public class TableSchema<E extends TableSchema<E>> {
protected static final Logger logger = LoggerFactory.getLogger(TableSchema.class);
private String name;
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta.temp;
-/**
- * @author araveendrann
- */
+
public class Reference {
}
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta.temp;
import org.opendaylight.ovsdb.OpenVswitch;
import org.opendaylight.ovsdb.lib.meta.ColumnSchema;
import org.opendaylight.ovsdb.lib.meta.TableSchema;
-/**
- * @author araveendrann
- */
+
public class SchemaObjs {
public static class Bridge extends TableSchema<Bridge> {
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb;
import com.google.common.util.concurrent.ListenableFuture;
import static org.opendaylight.ovsdb.OpenVswitch.Operations.op;
-/**
- * @author Ashwin Raveendran
- */
+
public class OpenVswitchTestIT extends OvsdbTestBase {
Logger logger = LoggerFactory.getLogger(OpenVswitchTestIT.class);
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb;
import com.google.common.util.concurrent.ListenableFuture;
import static org.opendaylight.ovsdb.OpenVswitch.Operations.op;
-/**
- * @author Ashwin Raveendran
- */
public class OpenVswitchTestITTyped extends OvsdbTestBase {
Logger logger = LoggerFactory.getLogger(OpenVswitchTestITTyped.class);
+/*
+ * Copyright (C) 2014 EBay Software Foundation
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Ashwin Raveendran
+ */
package org.opendaylight.ovsdb.lib.meta;
import com.fasterxml.jackson.databind.JsonNode;
import java.io.IOException;
import java.io.InputStream;
-/**
- * @author araveendrann
- */
+
public class OvsDBSchemaTest {
@Test