Executor Service

class ydk::ExecutorService

Executor Service class for supporting execution of RPCs.

ExecutorService()
std::shared_ptr<Entity> execute_rpc(ydk::ServiceProvider &provider, Entity &rpc_entity, std::shared_ptr<Entity> top_entity = nullptr)

Create the rpc entity.

Parameters:
  • provider – An instance of ServiceProvider.
  • rpc_entity – An rpc instance of Entity class defined under a bundle.
  • top_entity – Optional arg that should be provided when expecting data to be returned.
Returns:

The requested data as Entity or nullptr if N/A.

Raises YError:

If an error has occurred.