3151a008912c81b395902aedc19f290de58d3446
[netconf.git] / apps / 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 package org.opendaylight.netconf.topology.singleton.messages;
9
10 import akka.util.Timeout;
11 import org.opendaylight.netconf.client.mdsal.api.RemoteDeviceId;
12 import org.opendaylight.netconf.topology.singleton.impl.utils.NetconfTopologySetup;
13 import org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository;
14 import org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceRegistry;
15
16 public class RefreshSlaveActor {
17     private final SchemaRepository schemaRepository;
18     private final RemoteDeviceId id;
19     private final SchemaSourceRegistry schemaRegistry;
20     private final NetconfTopologySetup setup;
21     private final Timeout actorResponseWaitTime;
22
23     public RefreshSlaveActor(final NetconfTopologySetup setup, final RemoteDeviceId id,
24                              final Timeout actorResponseWaitTime) {
25         this.setup = setup;
26         this.id = id;
27         schemaRegistry = setup.getSchemaResourcesDTO().getSchemaRegistry();
28         schemaRepository = setup.getSchemaResourcesDTO().getSchemaRepository();
29         this.actorResponseWaitTime = actorResponseWaitTime;
30     }
31
32     public Timeout getActorResponseWaitTime() {
33         return actorResponseWaitTime;
34     }
35
36     public SchemaRepository getSchemaRepository() {
37         return schemaRepository;
38     }
39
40     public RemoteDeviceId getId() {
41         return id;
42     }
43
44     public SchemaSourceRegistry getSchemaRegistry() {
45         return schemaRegistry;
46     }
47
48     public NetconfTopologySetup getSetup() {
49         return setup;
50     }
51 }