Initial implementation of ListenerRegistration actor and all related messages
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / ModifyData.java
1 /*
2  * Copyright (c) 2014 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
9 package org.opendaylight.controller.cluster.datastore.messages;
10
11 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13
14 public abstract class ModifyData {
15   private final InstanceIdentifier path;
16   private final NormalizedNode<?,?> data;
17
18   public ModifyData(InstanceIdentifier path, NormalizedNode<?, ?> data) {
19     this.path = path;
20     this.data = data;
21   }
22
23   public InstanceIdentifier getPath() {
24     return path;
25   }
26
27   public NormalizedNode<?, ?> getData() {
28     return data;
29   }
30
31 }