Slave mount point registration hardening/resiliency
[netconf.git] / netconf / 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
9 package org.opendaylight.netconf.topology.singleton.messages;
10
11 import akka.actor.ActorRef;
12 import java.io.Serializable;
13 import java.util.List;
14 import org.opendaylight.yangtools.yang.model.repo.api.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     private static final long serialVersionUID = 1L;
21
22     private final List<SourceIdentifier> allSourceIdentifiers;
23     private final ActorRef masterActorRef;
24
25     public RegisterMountPoint(final List<SourceIdentifier> allSourceIdentifiers, ActorRef masterActorRef) {
26         this.allSourceIdentifiers = allSourceIdentifiers;
27         this.masterActorRef = masterActorRef;
28     }
29
30     public List<SourceIdentifier> getSourceIndentifiers() {
31         return allSourceIdentifiers;
32     }
33
34     public ActorRef getMasterActorRef() {
35         return masterActorRef;
36     }
37
38     @Override
39     public String toString() {
40         return "RegisterMountPoint [allSourceIdentifiers=" + allSourceIdentifiers + ", masterActorRef=" + masterActorRef
41                 + "]";
42     }
43 }