Search in sources :

Example 6 with NetconfDataTreeServiceRequest

use of org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest 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

NetconfDataTreeServiceRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.NetconfDataTreeServiceRequest)6 ProxyNetconfService (org.opendaylight.netconf.topology.singleton.impl.netconf.ProxyNetconfService)5 ActorRef (akka.actor.ActorRef)1 Failure (akka.actor.Status.Failure)1 Success (akka.actor.Status.Success)1 AskTimeoutException (akka.pattern.AskTimeoutException)1 IOException (java.io.IOException)1 DOMDataTreeReadTransaction (org.opendaylight.mdsal.dom.api.DOMDataTreeReadTransaction)1 DOMDataTreeReadWriteTransaction (org.opendaylight.mdsal.dom.api.DOMDataTreeReadWriteTransaction)1 DOMDataTreeWriteTransaction (org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction)1 AskForMasterMountPoint (org.opendaylight.netconf.topology.singleton.messages.AskForMasterMountPoint)1 CreateInitialMasterActorData (org.opendaylight.netconf.topology.singleton.messages.CreateInitialMasterActorData)1 MasterActorDataInitialized (org.opendaylight.netconf.topology.singleton.messages.MasterActorDataInitialized)1 NotMasterException (org.opendaylight.netconf.topology.singleton.messages.NotMasterException)1 RefreshSetupMasterActorData (org.opendaylight.netconf.topology.singleton.messages.RefreshSetupMasterActorData)1 RefreshSlaveActor (org.opendaylight.netconf.topology.singleton.messages.RefreshSlaveActor)1 RegisterMountPoint (org.opendaylight.netconf.topology.singleton.messages.RegisterMountPoint)1 UnregisterSlaveMountPoint (org.opendaylight.netconf.topology.singleton.messages.UnregisterSlaveMountPoint)1 YangTextSchemaSourceRequest (org.opendaylight.netconf.topology.singleton.messages.YangTextSchemaSourceRequest)1 InvokeActionMessage (org.opendaylight.netconf.topology.singleton.messages.action.InvokeActionMessage)1