/* * Copyright © 2017 AT&T, 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.transportpce.common.network; import com.google.common.base.Optional; import com.google.common.util.concurrent.ListenableFuture; import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType; import org.opendaylight.yangtools.yang.binding.DataObject; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; public interface NetworkTransactionService { ListenableFuture> read(LogicalDatastoreType store, InstanceIdentifier path); void delete(LogicalDatastoreType store, InstanceIdentifier path); void put(LogicalDatastoreType store, InstanceIdentifier path, T data, boolean createMissingParents); void put(LogicalDatastoreType store, InstanceIdentifier path,T data); void merge(LogicalDatastoreType store, InstanceIdentifier path, T data); void merge(LogicalDatastoreType store, InstanceIdentifier path, T data, boolean createMissingParents); ListenableFuture submit(); void close(); }