use of org.infinispan.query.remote.ProtobufMetadataManager in project infinispan by infinispan.
the class ProtobufMetadataCachePreserveStateAcrossRestartsTest method assertFiles.
private void assertFiles(CacheContainer manager, String... expectedFileNames) {
ProtobufMetadataManager pmm = extractGlobalComponent(manager, ProtobufMetadataManager.class);
assertEquals(setOf(expectedFileNames), setOf(pmm.getProtofileNames()));
}
use of org.infinispan.query.remote.ProtobufMetadataManager in project infinispan by infinispan.
the class ProtobufMetadataCachePreserveStateAcrossRestartsTest method assertFilesWithErrors.
private void assertFilesWithErrors(CacheContainer manager, String... expectedFileNames) {
ProtobufMetadataManager pmm = extractGlobalComponent(manager, ProtobufMetadataManager.class);
assertEquals(setOf(expectedFileNames), setOf(pmm.getFilesWithErrors()));
for (String fileName : expectedFileNames) {
assertNotNull(pmm.getFileErrors(fileName));
}
}
use of org.infinispan.query.remote.ProtobufMetadataManager in project infinispan by infinispan.
the class LifecycleManager method initProtobufMetadataManager.
private void initProtobufMetadataManager(BasicComponentRegistry bcr) {
ProtobufMetadataManagerImpl protobufMetadataManager = new ProtobufMetadataManagerImpl();
bcr.registerComponent(ProtobufMetadataManager.class, protobufMetadataManager, true).running();
EncoderRegistry encoderRegistry = bcr.getComponent(EncoderRegistry.class).wired();
encoderRegistry.registerWrapper(ProtobufWrapper.INSTANCE);
}
Aggregations