6.2.5. Indexing Protobuf Encoded Entities
Once the client has been configured to use Protobuf, indexing can be configured for caches on the server side.
To be able to index the entries, the server must extract relevant metadata from the same binary descriptor as the client, that is, the
.protobin file. The descriptor is supplied to the server by remotely invoking the ProtobufMetadataManager MBean via JMX.
The
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
ProtobufMetadataManager is a cluster-wide replicated repository of protobuf descriptors. For each running cache manager a separate ProtobufMetadataManager MBean instance exists. The ProtobufMetadataManager ObjectName uses the following pattern:
<jmx domain>:type=RemoteQuery,name=<cache manager name>,component=ProtobufMetadataManager
<jmx domain>:type=RemoteQuery,name=<cache manager
name>,component=ProtobufMetadataManager
The following signature is used by the method that registers the Protobuf descriptor file:
void registerProtofile(byte[] descriptorFile)
void registerProtofile(byte[] descriptorFile)
Note
Once indexing is enabled for a cache, all fields with Protobuf encoded entries will be indexed.