Search in sources :

Example 1 with ProtobufMetadataManager

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()));
}
Also used : ProtobufMetadataManager(org.infinispan.query.remote.ProtobufMetadataManager)

Example 2 with ProtobufMetadataManager

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));
    }
}
Also used : ProtobufMetadataManager(org.infinispan.query.remote.ProtobufMetadataManager)

Example 3 with ProtobufMetadataManager

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);
}
Also used : EncoderRegistry(org.infinispan.marshall.core.EncoderRegistry) ProtobufMetadataManager(org.infinispan.query.remote.ProtobufMetadataManager)

Aggregations

ProtobufMetadataManager (org.infinispan.query.remote.ProtobufMetadataManager)3 EncoderRegistry (org.infinispan.marshall.core.EncoderRegistry)1