org.infinispan.config
Class GlobalConfiguration

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

public class GlobalConfiguration
extends AbstractConfigurationBean

Configuration component that encapsulates the global configuration.

Note that class GlobalConfiguration contains JAXB annotations. These annotations determine how XML configuration files are read into instances of configuration class hierarchy as well as they provide meta data for configuration file XML schema generation. Please modify these annotations and Java element types they annotate with utmost understanding and care.

Since:
4.0
Author:
Manik Surtani, Vladimir Blagojevic
See Also:
Configuration reference, Serialized Form

Nested Class Summary
static class GlobalConfiguration.ExecutorFactoryType
           
static class GlobalConfiguration.FactoryClassWithPropertiesType
           
static class GlobalConfiguration.GlobalJmxStatisticsType
           
static class GlobalConfiguration.ScheduledExecutorFactoryType
           
static class GlobalConfiguration.SerializationType
           
static class GlobalConfiguration.ShutdownHookBehavior
          Behavior of the JVM shutdown hook registered by the cache
static class GlobalConfiguration.ShutdownType
           
static class GlobalConfiguration.TransportType
           
 
Field Summary
static short DEFAULT_MARSHALL_VERSION
          Default replication version, from Version.getVersionShort().
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
GlobalConfiguration()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 GlobalConfiguration clone()
           
 boolean equals(Object o)
           
 String getAsyncListenerExecutorFactoryClass()
           
 Properties getAsyncListenerExecutorProperties()
           
 String getAsyncTransportExecutorFactoryClass()
           
 Properties getAsyncTransportExecutorProperties()
           
static GlobalConfiguration getClusteredDefault()
          Helper method that gets you a default constructed GlobalConfiguration, preconfigured to use the default clustering stack.
 String getClusterName()
           
 long getDistributedSyncTimeout()
           
 String getEvictionScheduledExecutorFactoryClass()
           
 Properties getEvictionScheduledExecutorProperties()
           
 String getJmxDomain()
           
 String getMarshallerClass()
           
 short getMarshallVersion()
           
 String getMarshallVersionString()
           
 String getMBeanServerLookup()
           
static GlobalConfiguration getNonClusteredDefault()
          Helper method that gets you a default constructed GlobalConfiguration, preconfigured for use in LOCAL mode
 String getReplicationQueueScheduledExecutorFactoryClass()
           
 Properties getReplicationQueueScheduledExecutorProperties()
           
 GlobalConfiguration.ShutdownHookBehavior getShutdownHookBehavior()
           
 String getTransportClass()
           
 String getTransportNodeName()
           
 Properties getTransportProperties()
           
protected  boolean hasComponentStarted()
          Tests whether the component this configuration bean intents to configure has already started.
 int hashCode()
           
 boolean isAllowDuplicateDomains()
           
 boolean isExposeGlobalJmxStatistics()
           
 void setAllowDuplicateDomains(boolean allowDuplicateDomains)
           
 void setAsyncListenerExecutorFactoryClass(String asyncListenerExecutorFactoryClass)
           
 void setAsyncListenerExecutorProperties(Properties asyncListenerExecutorProperties)
           
 void setAsyncListenerExecutorProperties(String asyncListenerExecutorPropertiesString)
           
 void setAsyncTransportExecutorFactoryClass(String asyncTransportExecutorFactoryClass)
           
 void setAsyncTransportExecutorProperties(Properties asyncTransportExecutorProperties)
           
 void setAsyncTransportExecutorProperties(String asyncSerializationExecutorPropertiesString)
           
 void setClusterName(String clusterName)
           
 void setDistributedSyncTimeout(long distributedSyncTimeout)
           
 void setEvictionScheduledExecutorFactoryClass(String evictionScheduledExecutorFactoryClass)
           
 void setEvictionScheduledExecutorProperties(Properties evictionScheduledExecutorProperties)
           
 void setEvictionScheduledExecutorProperties(String evictionScheduledExecutorPropertiesString)
           
 void setExposeGlobalJmxStatistics(boolean exposeGlobalJmxStatistics)
           
 void setJmxDomain(String jmxObjectName)
          If JMX statistics are enabled then all 'published' JMX objects will appear under this name.
 void setMarshallerClass(String marshallerClass)
           
 void setMarshallVersion(short marshallVersion)
           
 void setMarshallVersion(String marshallVersion)
           
 void setMBeanServerLookup(String mBeanServerLookup)
           
 void setReplicationQueueScheduledExecutorFactoryClass(String replicationQueueScheduledExecutorFactoryClass)
           
 void setReplicationQueueScheduledExecutorProperties(Properties replicationQueueScheduledExecutorProperties)
           
 void setReplicationQueueScheduledExecutorProperties(String replicationQueueScheduledExecutorPropertiesString)
           
 void setShutdownHookBehavior(GlobalConfiguration.ShutdownHookBehavior shutdownHookBehavior)
           
 void setShutdownHookBehavior(String shutdownHookBehavior)
           
 void setTransportClass(String transportClass)
           
 void setTransportNodeName(String nodeName)
           
 void setTransportProperties(Properties transportProperties)
           
 void setTransportProperties(String transportPropertiesString)
           
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MARSHALL_VERSION

public static final short DEFAULT_MARSHALL_VERSION
Default replication version, from Version.getVersionShort().

Constructor Detail

GlobalConfiguration

public GlobalConfiguration()
Method Detail

isExposeGlobalJmxStatistics

public boolean isExposeGlobalJmxStatistics()

setExposeGlobalJmxStatistics

public void setExposeGlobalJmxStatistics(boolean exposeGlobalJmxStatistics)

setJmxDomain

public void setJmxDomain(String jmxObjectName)
If JMX statistics are enabled then all 'published' JMX objects will appear under this name. This is optional, if not specified an object name will be created for you by default.


getJmxDomain

public String getJmxDomain()
See Also:
setJmxDomain(String)

getMBeanServerLookup

public String getMBeanServerLookup()

setMBeanServerLookup

public void setMBeanServerLookup(String mBeanServerLookup)

isAllowDuplicateDomains

public boolean isAllowDuplicateDomains()

setAllowDuplicateDomains

public void setAllowDuplicateDomains(boolean allowDuplicateDomains)

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.

getAsyncListenerExecutorFactoryClass

public String getAsyncListenerExecutorFactoryClass()

setAsyncListenerExecutorFactoryClass

public void setAsyncListenerExecutorFactoryClass(String asyncListenerExecutorFactoryClass)

getAsyncTransportExecutorFactoryClass

public String getAsyncTransportExecutorFactoryClass()

setAsyncTransportExecutorFactoryClass

public void setAsyncTransportExecutorFactoryClass(String asyncTransportExecutorFactoryClass)

getEvictionScheduledExecutorFactoryClass

public String getEvictionScheduledExecutorFactoryClass()

setEvictionScheduledExecutorFactoryClass

public void setEvictionScheduledExecutorFactoryClass(String evictionScheduledExecutorFactoryClass)

getReplicationQueueScheduledExecutorFactoryClass

public String getReplicationQueueScheduledExecutorFactoryClass()

setReplicationQueueScheduledExecutorFactoryClass

public void setReplicationQueueScheduledExecutorFactoryClass(String replicationQueueScheduledExecutorFactoryClass)

getMarshallerClass

public String getMarshallerClass()

setMarshallerClass

public void setMarshallerClass(String marshallerClass)

getTransportNodeName

public String getTransportNodeName()

setTransportNodeName

public void setTransportNodeName(String nodeName)

getTransportClass

public String getTransportClass()

setTransportClass

public void setTransportClass(String transportClass)

getTransportProperties

public Properties getTransportProperties()

setTransportProperties

public void setTransportProperties(Properties transportProperties)

setTransportProperties

public void setTransportProperties(String transportPropertiesString)

getClusterName

public String getClusterName()

setClusterName

public void setClusterName(String clusterName)

getShutdownHookBehavior

public GlobalConfiguration.ShutdownHookBehavior getShutdownHookBehavior()

setShutdownHookBehavior

public void setShutdownHookBehavior(GlobalConfiguration.ShutdownHookBehavior shutdownHookBehavior)

setShutdownHookBehavior

public void setShutdownHookBehavior(String shutdownHookBehavior)

getAsyncListenerExecutorProperties

public Properties getAsyncListenerExecutorProperties()

setAsyncListenerExecutorProperties

public void setAsyncListenerExecutorProperties(Properties asyncListenerExecutorProperties)

setAsyncListenerExecutorProperties

public void setAsyncListenerExecutorProperties(String asyncListenerExecutorPropertiesString)

getAsyncTransportExecutorProperties

public Properties getAsyncTransportExecutorProperties()

setAsyncTransportExecutorProperties

public void setAsyncTransportExecutorProperties(Properties asyncTransportExecutorProperties)

setAsyncTransportExecutorProperties

public void setAsyncTransportExecutorProperties(String asyncSerializationExecutorPropertiesString)

getEvictionScheduledExecutorProperties

public Properties getEvictionScheduledExecutorProperties()

setEvictionScheduledExecutorProperties

public void setEvictionScheduledExecutorProperties(Properties evictionScheduledExecutorProperties)

setEvictionScheduledExecutorProperties

public void setEvictionScheduledExecutorProperties(String evictionScheduledExecutorPropertiesString)

getReplicationQueueScheduledExecutorProperties

public Properties getReplicationQueueScheduledExecutorProperties()

setReplicationQueueScheduledExecutorProperties

public void setReplicationQueueScheduledExecutorProperties(Properties replicationQueueScheduledExecutorProperties)

setReplicationQueueScheduledExecutorProperties

public void setReplicationQueueScheduledExecutorProperties(String replicationQueueScheduledExecutorPropertiesString)

getMarshallVersion

public short getMarshallVersion()

getMarshallVersionString

public String getMarshallVersionString()

setMarshallVersion

public void setMarshallVersion(short marshallVersion)

setMarshallVersion

public void setMarshallVersion(String marshallVersion)

getDistributedSyncTimeout

public long getDistributedSyncTimeout()

setDistributedSyncTimeout

public void setDistributedSyncTimeout(long distributedSyncTimeout)

accept

public void accept(ConfigurationBeanVisitor v)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public GlobalConfiguration clone()
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractConfigurationBean

getClusteredDefault

public static GlobalConfiguration getClusteredDefault()
Helper method that gets you a default constructed GlobalConfiguration, preconfigured to use the default clustering stack.

Returns:
a new global configuration

getNonClusteredDefault

public static GlobalConfiguration getNonClusteredDefault()
Helper method that gets you a default constructed GlobalConfiguration, preconfigured for use in LOCAL mode

Returns:
a new global configuration

Google Analytics

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