이 콘텐츠는 선택한 언어로 제공되지 않습니다.
17.3. Performing Remote Queries via the Hot Rod C++ Client
The Hot Rod C++ client allows remote querying, using Google's Protocol Buffers, once the
RemoteCacheManager
has been configured with the Protobuf marshaller.
Important
Remote Querying is a Technology Preview feature of the C++ client in JBoss Data Grid 7.0.0.
Procedure 17.2. Enable Remote Querying on the Hot Rod C++ Client
- Obtain a connection to the remote JBoss Data Grid server:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Create the Protobuf metadata cache with the Protobuf Marshaller:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the data model in the Protobuf metadata cache:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - This step adds data to the cache for the purposes of this demonstration, and may be ignored when simply querying a remote cache:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Query the remote cache:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional Query Examples
The following examples are included to demonstrate more complicated queries, and may be used on the same dataset found in the above procedure.
Example 17.3. Using a query with a conditional
Example 17.4. Using a query with a projection