Questo contenuto non è disponibile nella lingua selezionata.
17.4. 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.3. Enable Remote Querying on the Hot Rod C# Client
- Obtain a connection to the remote JBoss Data Grid server, passing the Protobuf marshaller into the configuration:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install any protobuf entities model:
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 - To process the results convert the protobuf matter into C# objects. The following method demonstrates this conversion:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow