org.infinispan.config
Class GlobalConfiguration.SerializationType

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.GlobalConfiguration.SerializationType
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, FluentGlobalConfiguration.SerializationConfig, JAXBUnmarshallable
Enclosing class:
GlobalConfiguration

public static class GlobalConfiguration.SerializationType
extends AbstractConfigurationBean
implements FluentGlobalConfiguration.SerializationConfig

Serialization and marshalling settings.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  GlobalConfiguration.AdvancedExternalizersType externalizerTypes
           
protected  String marshallerClass
           
protected  String version
           
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
GlobalConfiguration.SerializationType()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
<T> FluentGlobalConfiguration.SerializationConfig
addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers)
          Helper method that allows for quick registration of AdvancedExternalizer implementations.
<T> FluentGlobalConfiguration.SerializationConfig
addAdvancedExternalizer(Class<? extends AdvancedExternalizer<T>> clazz)
          Adds an AdvancedExternalizer.
<T> FluentGlobalConfiguration.SerializationConfig
addAdvancedExternalizer(int id, AdvancedExternalizer<T> advancedExternalizer)
          Helper method that allows for quick registration of an AdvancedExternalizer implementation alongside its corresponding identifier.
<T> FluentGlobalConfiguration.SerializationConfig
addAdvancedExternalizer(int id, Class<? extends AdvancedExternalizer<T>> clazz)
          Adds an AdvancedExternalizer with the give id.
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()
           
 GlobalConfiguration build()
           
 GlobalConfiguration build()
           
 CloneableConfigurationComponent clone()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()
           
 String getMarshallerClass()
           
 String getVersion()
           
 FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
          This method allows configuration of the global, or cache manager level, jmx statistics.
 FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
          This method allows configuration of the global, or cache manager level, jmx statistics.
protected  boolean hasComponentStarted()
          Tests whether the component this configuration bean intents to configure has already started.
 void inject(GlobalComponentRegistry gcr, GlobalConfiguration globalConfig)
           
 FluentGlobalConfiguration.SerializationConfig marshallerClass(Class<? extends Marshaller> marshallerClass)
          Fully qualified name of the marshaller to use.
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()
           
 FluentGlobalConfiguration.SerializationConfig serialization()
           
 FluentGlobalConfiguration.SerializationConfig serialization()
           
 void setMarshallerClass(String marshallerClass)
          Deprecated. The visibility of this will be reduced, use marshallerClass(Class) instead
 void setVersion(String version)
          Deprecated. The visibility of this will be reduced, use version(String) instead
 FluentGlobalConfiguration.ShutdownConfig shutdown()
           
 FluentGlobalConfiguration.ShutdownConfig shutdown()
           
 FluentGlobalConfiguration.TransportConfig transport()
           
 FluentGlobalConfiguration.TransportConfig transport()
           
 FluentGlobalConfiguration.SerializationConfig version(short marshallVersion)
          TODO
 FluentGlobalConfiguration.SerializationConfig version(String version)
          Largest allowable version to use when marshalling internal state.
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

marshallerClass

protected String marshallerClass

version

protected String version

externalizerTypes

protected GlobalConfiguration.AdvancedExternalizersType externalizerTypes
Constructor Detail

GlobalConfiguration.SerializationType

public GlobalConfiguration.SerializationType()
Method Detail

accept

public void accept(ConfigurationBeanVisitor v)

getMarshallerClass

public String getMarshallerClass()

setMarshallerClass

@Deprecated
public void setMarshallerClass(String marshallerClass)
Deprecated. The visibility of this will be reduced, use marshallerClass(Class) instead


marshallerClass

public FluentGlobalConfiguration.SerializationConfig marshallerClass(Class<? extends Marshaller> marshallerClass)
Description copied from interface: FluentGlobalConfiguration.SerializationConfig
Fully qualified name of the marshaller to use. It must implement org.infinispan.marshall.StreamingMarshaller

Specified by:
marshallerClass in interface FluentGlobalConfiguration.SerializationConfig

getVersion

public String getVersion()

setVersion

@Deprecated
public void setVersion(String version)
Deprecated. The visibility of this will be reduced, use version(String) instead


version

public FluentGlobalConfiguration.SerializationConfig version(String version)
Description copied from interface: FluentGlobalConfiguration.SerializationConfig
Largest allowable version to use when marshalling internal state. Set this to the lowest version cache instance in your cluster to ensure compatibility of communications. However, setting this too low will mean you lose out on the benefit of improvements in newer versions of the marshaller.

Specified by:
version in interface FluentGlobalConfiguration.SerializationConfig

version

public FluentGlobalConfiguration.SerializationConfig version(short marshallVersion)
Description copied from interface: FluentGlobalConfiguration.SerializationConfig
TODO

Specified by:
version in interface FluentGlobalConfiguration.SerializationConfig
Returns:

addAdvancedExternalizer

public <T> FluentGlobalConfiguration.SerializationConfig addAdvancedExternalizer(Class<? extends AdvancedExternalizer<T>> clazz)
Description copied from interface: FluentGlobalConfiguration.SerializationConfig
Adds an AdvancedExternalizer.

Specified by:
addAdvancedExternalizer in interface FluentGlobalConfiguration.SerializationConfig
Type Parameters:
T - type of the object that the AdvancedExternalizer marshalls
Parameters:
clazz - externalizer class
Returns:
this ExternalizersConfig

addAdvancedExternalizer

public <T> FluentGlobalConfiguration.SerializationConfig addAdvancedExternalizer(int id,
                                                                                 Class<? extends AdvancedExternalizer<T>> clazz)
Description copied from interface: FluentGlobalConfiguration.SerializationConfig
Adds an AdvancedExternalizer with the give id.

Specified by:
addAdvancedExternalizer in interface FluentGlobalConfiguration.SerializationConfig
Type Parameters:
T - type of the object that the AdvancedExternalizer marshalls
Parameters:
id - id of externlizer
clazz - externalizer class
Returns:
this ExternalizersConfig

addAdvancedExternalizer

public <T> FluentGlobalConfiguration.SerializationConfig addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers)
Description copied from interface: FluentGlobalConfiguration.SerializationConfig
Helper method that allows for quick registration of AdvancedExternalizer implementations.

Specified by:
addAdvancedExternalizer in interface FluentGlobalConfiguration.SerializationConfig

addAdvancedExternalizer

public <T> FluentGlobalConfiguration.SerializationConfig addAdvancedExternalizer(int id,
                                                                                 AdvancedExternalizer<T> advancedExternalizer)
Description copied from interface: FluentGlobalConfiguration.SerializationConfig
Helper method that allows for quick registration of an AdvancedExternalizer implementation alongside its corresponding identifier. Remember that the identifier needs to a be positive number, including 0, and cannot clash with other identifiers in the system.

Specified by:
addAdvancedExternalizer in interface FluentGlobalConfiguration.SerializationConfig

transport

public FluentGlobalConfiguration.TransportConfig transport()

globalJmxStatistics

public FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
This method allows configuration of the global, or cache manager level, jmx statistics. When this method is called, it automatically enables global jmx statistics. So, if you want it to be disabled, make sure you call FluentGlobalConfiguration.GlobalJmxStatisticsConfig.disable()


serialization

public FluentGlobalConfiguration.SerializationConfig serialization()

asyncTransportExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()

asyncListenerExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()

evictionScheduledExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()

replicationQueueScheduledExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()

shutdown

public FluentGlobalConfiguration.ShutdownConfig shutdown()

build

public GlobalConfiguration build()

inject

public void inject(GlobalComponentRegistry gcr,
                   GlobalConfiguration globalConfig)

hasComponentStarted

protected boolean hasComponentStarted()
Description copied from class: AbstractConfigurationBean
Tests whether the component this configuration bean intents to configure has already started.

Specified by:
hasComponentStarted in class AbstractConfigurationBean
Returns:
true if the component has started; false otherwise.

clone

public CloneableConfigurationComponent clone()
                                      throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractConfigurationBean
Throws:
CloneNotSupportedException

transport

public FluentGlobalConfiguration.TransportConfig transport()

globalJmxStatistics

public FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
This method allows configuration of the global, or cache manager level, jmx statistics. When this method is called, it automatically enables global jmx statistics. So, if you want it to be disabled, make sure you call FluentGlobalConfiguration.GlobalJmxStatisticsConfig.disable()


serialization

public FluentGlobalConfiguration.SerializationConfig serialization()

asyncListenerExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()

asyncTransportExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()

evictionScheduledExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()

replicationQueueScheduledExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()

shutdown

public FluentGlobalConfiguration.ShutdownConfig shutdown()

build

public GlobalConfiguration build()

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.