2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.groupbasedpolicy.renderer.opflex;
11 import java.util.concurrent.ScheduledExecutorService;
13 import org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction;
14 import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
17 * Interface for managing operations with the Endpoint Registry.
18 * An operation is the smallest granularity of interaction with
19 * the Endpoint Registry. Put (create/update), Delete, and Read
20 * operations are supported.
25 public interface EprOperation {
27 * Callback interface used to provide notifications
33 public interface EprOpCallback {
34 public void callback(EprOperation op);
38 * Perform a PUT operation, which can be either a
39 * creation or update of an element of the Endpoint
44 public void put(WriteTransaction wt);
47 * Perform a DELETE operation for the requested Endpoint.
51 public void delete(WriteTransaction wt);
54 * Return the data associated with the requested Endpoint.
59 public void read(ReadOnlyTransaction rot,
60 ScheduledExecutorService executor);
63 * Set the callback notification
67 public void setCallback(EprOpCallback callback);