2 * Copyright (c) 2013 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
8 package org.opendaylight.controller.sal.binding.api.data;
10 import java.util.EventListener;
12 import org.opendaylight.controller.md.sal.common.api.TransactionStatus;
13 import org.opendaylight.controller.md.sal.common.api.data.DataModification;
14 import org.opendaylight.yangtools.concepts.ListenerRegistration;
15 import org.opendaylight.yangtools.concepts.Registration;
16 import org.opendaylight.yangtools.yang.binding.DataObject;
17 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
19 public interface DataModificationTransaction extends DataModification<InstanceIdentifier<? extends DataObject>, DataObject> {
21 ListenerRegistration<DataTransactionListener> registerListener(DataTransactionListener listener);
24 //FIXME: After 0.6 Release of YANG-Binding
25 //public <T extends DataObject> T readOperationalData(InstanceIdentifier<T> path);
26 //public <T extends DataObject> T readConfigurationData(InstanceIdentifier<T> path);
28 public interface DataTransactionListener extends EventListener {
29 void onStatusUpdated(DataModificationTransaction transaction,TransactionStatus status);