Search in sources :

Example 6 with GetRequest

use of org.opendaylight.netconf.topology.singleton.messages.netconf.GetRequest in project netconf by opendaylight.

the class ActorProxyNetconfServiceFacade method get.

@Override
public ListenableFuture<Optional<NormalizedNode>> get(final YangInstanceIdentifier path) {
    LOG.debug("{}: Get {} {} via actor {}", id, OPERATIONAL, path, masterActor);
    final Future<Object> future = Patterns.ask(masterActor, new GetRequest(path), askTimeout);
    return read(future, OPERATIONAL, path);
}
Also used : GetRequest(org.opendaylight.netconf.topology.singleton.messages.netconf.GetRequest)

Aggregations

GetRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetRequest)6 Test (org.junit.Test)4 Optional (java.util.Optional)2 NormalizedNodeMessage (org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage)2 NormalizedNode (org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode)2 ReceiveTimeout (akka.actor.ReceiveTimeout)1 Status (akka.actor.Status)1 ListenableFuture (com.google.common.util.concurrent.ListenableFuture)1 ReadFailedException (org.opendaylight.mdsal.common.api.ReadFailedException)1 CommitRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.CommitRequest)1 CreateEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.CreateEditConfigRequest)1 DeleteEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.DeleteEditConfigRequest)1 DiscardChangesRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.DiscardChangesRequest)1 GetConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetConfigRequest)1 GetConfigWithFieldsRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetConfigWithFieldsRequest)1 GetWithFieldsRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetWithFieldsRequest)1 LockRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.LockRequest)1 MergeEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.MergeEditConfigRequest)1 RemoveEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.RemoveEditConfigRequest)1 ReplaceEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.ReplaceEditConfigRequest)1