use of org.opendaylight.netconf.topology.singleton.messages.transactions.ReadRequest in project netconf by opendaylight.
the class ReadAdapter method handle.
@SuppressWarnings("checkstyle:IllegalThrows")
public void handle(final Object message, final ActorRef sender, final ActorRef self) {
if (message instanceof ReadRequest) {
final ReadRequest readRequest = (ReadRequest) message;
final YangInstanceIdentifier path = readRequest.getPath();
final LogicalDatastoreType store = readRequest.getStore();
read(path, store, sender, self);
} else if (message instanceof ExistsRequest) {
final ExistsRequest readRequest = (ExistsRequest) message;
final YangInstanceIdentifier path = readRequest.getPath();
final LogicalDatastoreType store = readRequest.getStore();
exists(path, store, sender, self);
}
}
Aggregations