2 * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.netconf.topology.singleton.messages;
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;
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;
23 public RefreshSlaveActor(final NetconfTopologySetup setup, final RemoteDeviceId id,
24 final Timeout actorResponseWaitTime) {
27 schemaRegistry = setup.getSchemaResourcesDTO().getSchemaRegistry();
28 schemaRepository = setup.getSchemaResourcesDTO().getSchemaRepository();
29 this.actorResponseWaitTime = actorResponseWaitTime;
32 public Timeout getActorResponseWaitTime() {
33 return actorResponseWaitTime;
36 public SchemaRepository getSchemaRepository() {
37 return schemaRepository;
40 public RemoteDeviceId getId() {
44 public SchemaSourceRegistry getSchemaRegistry() {
45 return schemaRegistry;
48 public NetconfTopologySetup getSetup() {