Custom scheme-cache-directory yang models are not replicated among
[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 Timeout actorResponseWaitTime) {
27         this.setup = setup;
28         this.id = id;
29         this.schemaRegistry = setup.getSchemaResourcesDTO().getSchemaRegistry();
30         this.schemaRepository = setup.getSchemaResourcesDTO().getSchemaRepository();
31         this.actorResponseWaitTime = actorResponseWaitTime;
32     }
33
34     public Timeout getActorResponseWaitTime() {
35         return actorResponseWaitTime;
36     }
37
38     public SchemaRepository getSchemaRepository() {
39         return schemaRepository;
40     }
41
42     public RemoteDeviceId getId() {
43         return id;
44     }
45
46     public SchemaSourceRegistry getSchemaRegistry() {
47         return schemaRegistry;
48     }
49
50     public NetconfTopologySetup getSetup() {
51         return setup;
52     }
53 }