Slave mount point registration hardening/resiliency
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / AskForMasterMountPoint.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
14 /**
15  * After master is connected, slaves send the message to master and master triggers registering slave mount point
16  * with reply 'RegisterMountPoint' which includes needed parameters.
17  */
18 public class AskForMasterMountPoint implements Serializable {
19     private static final long serialVersionUID = 1L;
20
21     private final ActorRef slaveActorRef;
22
23     public AskForMasterMountPoint(ActorRef slaveActorRef) {
24         this.slaveActorRef = slaveActorRef;
25     }
26
27     public ActorRef getSlaveActorRef() {
28         return slaveActorRef;
29     }
30
31     @Override
32     public String toString() {
33         return "AskForMasterMountPoint [slaveActorRef=" + slaveActorRef + "]";
34     }
35 }