95798f66ac0a883c037e9ce26a3e8ee5b0057dfc
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / RefreshSlaveActor.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.util.Timeout;
12 import org.opendaylight.netconf.sal.connect.util.RemoteDeviceId;
13 import org.opendaylight.netconf.topology.singleton.impl.utils.NetconfTopologySetup;
14 import org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository;
15 import org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceRegistry;
16
17 public class RefreshSlaveActor {
18
19     private final SchemaRepository schemaRepository;
20     private final RemoteDeviceId id;
21     private final SchemaSourceRegistry schemaRegistry;
22     private final NetconfTopologySetup setup;
23     private final Timeout actorResponseWaitTime;
24
25     public RefreshSlaveActor(final NetconfTopologySetup setup, final RemoteDeviceId id,
26                              final SchemaSourceRegistry schemaRegistry, final SchemaRepository schemaRepository,
27                              final Timeout actorResponseWaitTime) {
28         this.setup = setup;
29         this.id = id;
30         this.schemaRegistry = schemaRegistry;
31         this.schemaRepository = schemaRepository;
32         this.actorResponseWaitTime = actorResponseWaitTime;
33     }
34
35     public Timeout getActorResponseWaitTime() {
36         return actorResponseWaitTime;
37     }
38
39     public SchemaRepository getSchemaRepository() {
40         return schemaRepository;
41     }
42
43     public RemoteDeviceId getId() {
44         return id;
45     }
46
47     public SchemaSourceRegistry getSchemaRegistry() {
48         return schemaRegistry;
49     }
50
51     public NetconfTopologySetup getSetup() {
52         return setup;
53     }
54 }