Bump upstreams
[netconf.git] / apps / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / RegisterMountPoint.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.netconf.topology.singleton.messages;
9
10 import akka.actor.ActorRef;
11 import java.io.Serial;
12 import java.io.Serializable;
13 import java.util.List;
14 import org.opendaylight.yangtools.yang.model.api.source.SourceIdentifier;
15
16 /**
17  * Master sends the message to slave with necessary parameters for creating slave mount point.
18  */
19 public class RegisterMountPoint implements Serializable {
20     @Serial
21     private static final long serialVersionUID = 1L;
22
23     private final List<SourceIdentifier> allSourceIdentifiers;
24     private final ActorRef masterActorRef;
25
26     public RegisterMountPoint(final List<SourceIdentifier> allSourceIdentifiers, final ActorRef masterActorRef) {
27         this.allSourceIdentifiers = allSourceIdentifiers;
28         this.masterActorRef = masterActorRef;
29     }
30
31     public List<SourceIdentifier> getSourceIndentifiers() {
32         return allSourceIdentifiers;
33     }
34
35     public ActorRef getMasterActorRef() {
36         return masterActorRef;
37     }
38
39     @Override
40     public String toString() {
41         return "RegisterMountPoint [allSourceIdentifiers=" + allSourceIdentifiers + ", masterActorRef=" + masterActorRef
42                 + "]";
43     }
44 }