Search in sources :

Example 1 with ProxyNetconfService

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();
}
Also used : ProxyNetconfService(org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService) NetconfDataTreeServiceRequest(org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest)

Example 2 with ProxyNetconfService

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);
}
Also used : ProxyNetconfService(org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService) NetconfDataTreeServiceRequest(org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest)

Example 3 with ProxyNetconfService

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);
}
Also used : ProxyNetconfService(org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService) NetconfDataTreeServiceRequest(org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest)

Example 4 with ProxyNetconfService

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);
}
Also used : ProxyNetconfService(org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService) NetconfDataTreeServiceRequest(org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest)

Example 5 with ProxyNetconfService

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);
}
Also used : ProxyNetconfService(org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService) NetconfDataTreeServiceRequest(org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest)

Aggregations

ProxyNetconfService (org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService)5 NetconfDataTreeServiceRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest)5