public class ProtobufMetadataManager extends Object implements ProtobufMetadataManagerMBean
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_NAME |
Constructor and Description |
---|
ProtobufMetadataManager(org.infinispan.protostream.SerializationContext serCtx) |
Modifier and Type | Method and Description |
---|---|
ObjectName |
getObjectName() |
static org.infinispan.protostream.SerializationContext |
getSerializationContext(EmbeddedCacheManager cacheManager) |
protected void |
injectDependencies(ClusterRegistry<String,String,byte[]> clusterRegistry) |
<T> void |
registerMarshaller(Class<? extends T> clazz,
org.infinispan.protostream.BaseMarshaller<T> marshaller) |
void |
registerProtofile(byte[] descriptorFile) |
void |
registerProtofile(InputStream descriptorFile) |
void |
registerProtofile(String classpathResource) |
void |
setObjectName(ObjectName objectName) |
protected void |
stop() |
public static final String OBJECT_NAME
public ProtobufMetadataManager(org.infinispan.protostream.SerializationContext serCtx)
protected void injectDependencies(ClusterRegistry<String,String,byte[]> clusterRegistry)
protected void stop()
public ObjectName getObjectName()
public void setObjectName(ObjectName objectName)
public <T> void registerMarshaller(Class<? extends T> clazz, org.infinispan.protostream.BaseMarshaller<T> marshaller)
public void registerProtofile(byte[] descriptorFile)
registerProtofile
in interface ProtobufMetadataManagerMBean
public void registerProtofile(InputStream descriptorFile) throws IOException, com.google.protobuf.Descriptors.DescriptorValidationException
IOException
com.google.protobuf.Descriptors.DescriptorValidationException
public void registerProtofile(String classpathResource) throws IOException, com.google.protobuf.Descriptors.DescriptorValidationException
IOException
com.google.protobuf.Descriptors.DescriptorValidationException
public static org.infinispan.protostream.SerializationContext getSerializationContext(EmbeddedCacheManager cacheManager)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.