C++#
Basic API#
Configures runtime modes and system parameters. |
|
Determine if openYuanrong has been initialized. |
|
Determine if openYuanrong is in local mode. |
|
Finalizes the openYuanrong system. |
|
Configuration parameters required by the init() interface. |
|
Number of function instances Range configuration parameters. |
|
The exception thrown by openYuanrong. |
Stateful & Stateless Function API#
Register functions for openYuanrong distributed invocation. |
|
Marks a class parameter as state, and openYuanrong will automatically save and recover the state member variables of the class. |
|
Users can use this interface to perform data recovery operations. |
|
Users can use this interface to perform data cleanup or data persistence operations. |
|
Constructs a FunctionHandler for a given function. |
|
Invokes the registered function with the provided arguments. |
|
Set the options for the current invocation, including resources, etc. |
|
Set the URN for the current function invocation, which can be used in conjunction with CppFunction or JavaFunction. |
|
Create an InstanceCreator for constructing an instance of a class. |
|
Execute the creation of an instance and construct an object of the class. |
|
Set options for the instance creation, including resource usage settings. |
|
Set the function URN for the instance creation. |
|
Invokes a remote function by sending the request to a remote backend for execution. |
|
Sets options for the function invocation, such as timeout and retry count. |
|
Named instance that can invoke the Function method of this class to construct member functions of the instance’s class. |
|
Get instance associated with the specified name and nameSpace within a timeout. |
|
Cancel the corresponding function call by specifying an ObjectRef. |
|
Exit the current function instance. |
|
Saves the instance state. |
|
Loads the saved instance state. |
|
Use to set the invoke options. |
|
Configure runtime environment for cross-language invocation of Python functions. |
Data Object API#
Stream API#
Passing ordered unbounded data between openYuanrong functions. |
Collective Communication API#
Complete documentation for collective communication, covering type definitions, group management APIs, and collective operators such as AllReduce, Reduce, AllGather, Broadcast, Scatter, Barrier, Send, Recv. |
Function Interoperation API#
Used for C++ to call Python functions, constructs a call to a Python function. |
|
Creates a |
|
Create a |
|
Create a |
|
Create a |
|
Create a |
Function Group API#
A class for managing the lifecycle of grouped instances. |
KV Cache API#
Sets the value of a key. |
|
A transactional interface for setting multiple binary data entries in a batch. |
|
Writes the value of a key. |
|
Sets multiple key-value pairs. |
|
Writes the value (raw bytes) of a key. |
|
Retrieves a value associated with a specified key, similar to Redis’s GET command. |
|
Retrieves multiple values associated with specified keys with additional parameters, supporting offset-based reading. |
|
Retrieves the value of a key. |
|
Retrieves the value of a key written by WriteRaw. |
|
Deletes a key and its associated data, similar to Redis’s DEL command. |
Multithreaded Parallel API#
ParallelFor is a function framework for parallel computing, enabling tasks to be executed in parallel across multiple threads to improve computational efficiency. |
Affinity Scheduling#
Affinity Scheduling Configuration Parameters. |