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
9 package org.opendaylight.netconf.topology.singleton.messages;
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;
17 public class RefreshSlaveActor {
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;
25 public RefreshSlaveActor(final NetconfTopologySetup setup, final RemoteDeviceId id,
26 final Timeout actorResponseWaitTime) {
29 this.schemaRegistry = setup.getSchemaResourcesDTO().getSchemaRegistry();
30 this.schemaRepository = setup.getSchemaResourcesDTO().getSchemaRepository();
31 this.actorResponseWaitTime = actorResponseWaitTime;
34 public Timeout getActorResponseWaitTime() {
35 return actorResponseWaitTime;
38 public SchemaRepository getSchemaRepository() {
39 return schemaRepository;
42 public RemoteDeviceId getId() {
46 public SchemaSourceRegistry getSchemaRegistry() {
47 return schemaRegistry;
50 public NetconfTopologySetup getSetup() {