Initial code drop of netconf protocol implementation
[controller.git] / opendaylight / netconf / netconf-mapping-api / src / main / java / org / opendaylight / controller / netconf / mapping / api / NetconfOperationService.java
diff --git a/opendaylight/netconf/netconf-mapping-api/src/main/java/org/opendaylight/controller/netconf/mapping/api/NetconfOperationService.java b/opendaylight/netconf/netconf-mapping-api/src/main/java/org/opendaylight/controller/netconf/mapping/api/NetconfOperationService.java
new file mode 100644 (file)
index 0000000..858636a
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * 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
+ */
+
+package org.opendaylight.controller.netconf.mapping.api;
+
+import java.util.Set;
+
+/**
+ *
+ */
+public interface NetconfOperationService extends AutoCloseable {
+
+    /**
+     * Get capabilities announced by server hello message.
+     */
+    Set<Capability> getCapabilities();
+
+    /**
+     * Get set of netconf operations that are handled by this service.
+     */
+    Set<NetconfOperation> getNetconfOperations();
+
+    Set<NetconfOperationFilter> getFilters();
+
+    /**
+     * Called when netconf session is destroyed.
+     */
+    @Override
+    void close();
+
+}