org.infinispan.config
Class AdvancedExternalizerConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AdvancedExternalizerConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable

public class AdvancedExternalizerConfig
extends AbstractConfigurationBean

Defines custom Externalizers to be registered with marshalling framework

Since:
5.0
Author:
Vladimir Blagojevic
See Also:
Serialized Form

Field Summary
protected  String externalizerClass
           
protected  Integer id
           
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
AdvancedExternalizerConfig()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()
           
 GlobalConfiguration build()
           
 CloneableConfigurationComponent clone()
           
 boolean equals(Object o)
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()
           
 AdvancedExternalizer getAdvancedExternalizer()
           
 String getExternalizerClass()
           
 Integer getId()
           
 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.
 int hashCode()
           
 void inject(GlobalComponentRegistry gcr, GlobalConfiguration globalConfig)
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()
           
 FluentGlobalConfiguration.SerializationConfig serialization()
           
 AdvancedExternalizerConfig setAdvancedExternalizer(AdvancedExternalizer advancedExternalizer)
           
 AdvancedExternalizerConfig setExternalizerClass(String externalizerClass)
          Fully qualified class name of an AdvancedExternalizer implementation that knows how to marshall or unmarshall instances of one, or several, user-defined, types.
 AdvancedExternalizerConfig setId(Integer id)
          This identifier distinguishes between different user-defined AdvancedExternalizer implementations, providing a more performant way to ship class information around rather than passing class names or class information in general around.
 FluentGlobalConfiguration.ShutdownConfig shutdown()
           
 String toString()
           
 FluentGlobalConfiguration.TransportConfig transport()
           
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

externalizerClass

protected String externalizerClass

id

protected Integer id
Constructor Detail

AdvancedExternalizerConfig

public AdvancedExternalizerConfig()
Method Detail

getExternalizerClass

public String getExternalizerClass()

setExternalizerClass

public AdvancedExternalizerConfig setExternalizerClass(String externalizerClass)
Fully qualified class name of an AdvancedExternalizer implementation that knows how to marshall or unmarshall instances of one, or several, user-defined, types.

Parameters:
externalizerClass -

getId

public Integer getId()

setId

public AdvancedExternalizerConfig setId(Integer id)
This identifier distinguishes between different user-defined AdvancedExternalizer implementations, providing a more performant way to ship class information around rather than passing class names or class information in general around. Only positive ids are allowed, and you can use any number as long as it does not clash with an already existing number for a AdvancedExternalizer implementation. If there're any clashes, Infinispan will abort startup and will provide class information of the ids clashing.

Parameters:
id -

getAdvancedExternalizer

public AdvancedExternalizer getAdvancedExternalizer()

setAdvancedExternalizer

public AdvancedExternalizerConfig setAdvancedExternalizer(AdvancedExternalizer advancedExternalizer)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

accept

public void accept(ConfigurationBeanVisitor v)

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.