1d9bffd346c95bcb0deee73ee72f32e88c96ed8a
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / TransactionMerge.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.access.commands;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13
14 /**
15  * Merge a {@link NormalizedNode} tree onto a specific path.
16  *
17  * @author Robert Varga
18  */
19 @Beta
20 public final class TransactionMerge extends TransactionDataModification {
21     public TransactionMerge(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data) {
22         super(path, data);
23     }
24
25     @Override
26     byte getType() {
27         return TYPE_MERGE;
28     }
29 }