use of org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService in project netconf by opendaylight.
the class ProxyNetconfDataTreeService method lock.
@Override
public synchronized ListenableFuture<DOMRpcResult> lock() {
final Future<Object> masterActor = Patterns.ask(masterNode, new NetconfDataTreeServiceRequest(), askTimeout);
proxyNetconfService = new ProxyNetconfService(id, masterActor, executionContext, askTimeout);
return proxyNetconfService.lock();
}
use of org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService in project netconf by opendaylight.
the class ProxyNetconfDataTreeService method getConfig.
@Override
public ListenableFuture<Optional<NormalizedNode>> getConfig(final YangInstanceIdentifier path) {
final Future<Object> masterActor = Patterns.ask(masterNode, new NetconfDataTreeServiceRequest(), askTimeout);
ProxyNetconfService netconfService = new ProxyNetconfService(id, masterActor, executionContext, askTimeout);
return netconfService.getConfig(path);
}
use of org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService in project netconf by opendaylight.
the class ProxyNetconfDataTreeService method getConfig.
@Override
public ListenableFuture<Optional<NormalizedNode>> getConfig(final YangInstanceIdentifier path, final List<YangInstanceIdentifier> fields) {
final Future<Object> masterActor = Patterns.ask(masterNode, new NetconfDataTreeServiceRequest(), askTimeout);
ProxyNetconfService netconfService = new ProxyNetconfService(id, masterActor, executionContext, askTimeout);
return netconfService.getConfig(path, fields);
}
use of org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService in project netconf by opendaylight.
the class ProxyNetconfDataTreeService method get.
@Override
public ListenableFuture<Optional<NormalizedNode>> get(final YangInstanceIdentifier path) {
final Future<Object> masterActor = Patterns.ask(masterNode, new NetconfDataTreeServiceRequest(), askTimeout);
ProxyNetconfService netconfService = new ProxyNetconfService(id, masterActor, executionContext, askTimeout);
return netconfService.get(path);
}
use of org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService in project netconf by opendaylight.
the class ProxyNetconfDataTreeService method get.
@Override
public ListenableFuture<Optional<NormalizedNode>> get(final YangInstanceIdentifier path, final List<YangInstanceIdentifier> fields) {
final Future<Object> masterActor = Patterns.ask(masterNode, new NetconfDataTreeServiceRequest(), askTimeout);
ProxyNetconfService netconfService = new ProxyNetconfService(id, masterActor, executionContext, askTimeout);
return netconfService.get(path, fields);
}
Aggregations