|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.config.AbstractConfigurationBean
org.infinispan.config.GlobalConfiguration
public class GlobalConfiguration
Configuration component that encapsulates the global configuration.
A default instance of this bean takes default values for each attribute. Please see the individual setters for details of what these defaults are.
Nested Class Summary | |
---|---|
static class |
GlobalConfiguration.ExecutorFactoryType
|
static class |
GlobalConfiguration.FactoryClassWithPropertiesType
|
static class |
GlobalConfiguration.GlobalJmxStatisticsType
This element specifies whether global statistics are gathered and reported via JMX for all caches under this cache manager. |
static class |
GlobalConfiguration.ScheduledExecutorFactoryType
|
static class |
GlobalConfiguration.SerializationType
Serialization and marshalling settings. |
static class |
GlobalConfiguration.ShutdownHookBehavior
Behavior of the JVM shutdown hook registered by the cache |
static class |
GlobalConfiguration.ShutdownType
This element specifies behavior when the JVM running the cache instance shuts down. |
static class |
GlobalConfiguration.TransportType
This element configures the transport used for network communications across the cluster. |
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()
|
String |
getCacheManagerName()
|
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 |
getMachineId()
|
String |
getMarshallerClass()
|
short |
getMarshallVersion()
|
String |
getMarshallVersionString()
|
String |
getMBeanServerLookup()
|
MBeanServerLookup |
getMBeanServerLookupInstance()
|
Properties |
getMBeanServerProperties()
|
static GlobalConfiguration |
getNonClusteredDefault()
Helper method that gets you a default constructed GlobalConfiguration, preconfigured for use in LOCAL mode |
String |
getRackId()
|
String |
getReplicationQueueScheduledExecutorFactoryClass()
|
Properties |
getReplicationQueueScheduledExecutorProperties()
|
GlobalConfiguration.ShutdownHookBehavior |
getShutdownHookBehavior()
|
String |
getSiteId()
|
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 |
hasTopologyInfo()
|
boolean |
isAllowDuplicateDomains()
|
boolean |
isExposeGlobalJmxStatistics()
|
boolean |
isStrictPeerToPeer()
|
void |
setAllowDuplicateDomains(boolean allowDuplicateDomains)
If true, multiple cache manager instances could be configured under the same configured JMX domain. |
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 |
setCacheManagerName(String cacheManagerName)
If JMX statistics are enabled, this property represents the name of this cache manager. |
void |
setClusterName(String clusterName)
Defines the name of the cluster. |
void |
setDistributedSyncTimeout(long distributedSyncTimeout)
|
void |
setEvictionScheduledExecutorFactoryClass(String evictionScheduledExecutorFactoryClass)
|
void |
setEvictionScheduledExecutorProperties(Properties evictionScheduledExecutorProperties)
|
void |
setEvictionScheduledExecutorProperties(String evictionScheduledExecutorPropertiesString)
|
void |
setExposeGlobalJmxStatistics(boolean exposeGlobalJmxStatistics)
Toggle to enable/disable global statistics being exported via JMX |
void |
setJmxDomain(String jmxObjectName)
If JMX statistics are enabled then all 'published' JMX objects will appear under this name. |
void |
setMachineId(String machineId)
The id of the machine where this node runs. |
void |
setMarshallerClass(String marshallerClass)
Fully qualified name of the marshaller to use. |
void |
setMarshallVersion(short marshallVersion)
Largest allowable version to use when marshalling internal state. |
void |
setMarshallVersion(String marshallVersion)
Largest allowable version to use when marshalling internal state. |
void |
setMBeanServerLookup(MBeanServerLookup mBeanServerLookup)
Deprecated. Use setMBeanServerLookupInstance(org.infinispan.jmx.MBeanServerLookup) instead. |
void |
setMBeanServerLookup(String mBeanServerLookupClass)
Fully qualified name of class that will attempt to locate a JMX MBean server to bind to |
void |
setMBeanServerLookupInstance(MBeanServerLookup mBeanServerLookupInstance)
Sets the instance of the MBeanServerLookup class to be used to
bound JMX MBeans to. |
void |
setMBeanServerProperties(Properties properties)
Sets properties which are then passed to the MBean Server Lookup implementation specified. |
void |
setRackId(String rackId)
The id of the rack where this node runs. |
void |
setReplicationQueueScheduledExecutorFactoryClass(String replicationQueueScheduledExecutorFactoryClass)
|
void |
setReplicationQueueScheduledExecutorProperties(Properties replicationQueueScheduledExecutorProperties)
|
void |
setReplicationQueueScheduledExecutorProperties(String replicationQueueScheduledExecutorPropertiesString)
|
void |
setShutdownHookBehavior(GlobalConfiguration.ShutdownHookBehavior shutdownHookBehavior)
Behavior of the JVM shutdown hook registered by the cache. |
void |
setShutdownHookBehavior(String shutdownHookBehavior)
|
void |
setSiteId(String siteId)
The id of the site where this node runs. |
void |
setStrictPeerToPeer(boolean strictPeerToPeer)
If set to true, RPC operations will fail if the named cache does not exist on remote nodes with a NamedCacheNotFoundException. |
void |
setTransportClass(String transportClass)
Fully qualified name of a class that represents a network transport. |
void |
setTransportNodeName(String nodeName)
Name of the current node. |
void |
setTransportProperties(Properties transportProperties)
|
void |
setTransportProperties(String transportPropertiesString)
|
Methods inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short DEFAULT_MARSHALL_VERSION
Version.getVersionShort()
.
Constructor Detail |
---|
public GlobalConfiguration()
Method Detail |
---|
public boolean isExposeGlobalJmxStatistics()
public void setExposeGlobalJmxStatistics(boolean exposeGlobalJmxStatistics)
exposeGlobalJmxStatistics
- public void setJmxDomain(String jmxObjectName)
jmxObjectName
- public String getJmxDomain()
setJmxDomain(String)
public String getMBeanServerLookup()
public Properties getMBeanServerProperties()
public void setMBeanServerProperties(Properties properties)
properties
- properties to pass to the MBean Server Lookuppublic void setMBeanServerLookup(String mBeanServerLookupClass)
mBeanServerLookupClass
- fully qualified class name of the MBean Server Lookup class implementation@Deprecated public void setMBeanServerLookup(MBeanServerLookup mBeanServerLookup)
setMBeanServerLookupInstance(org.infinispan.jmx.MBeanServerLookup)
instead.
public void setMBeanServerLookupInstance(MBeanServerLookup mBeanServerLookupInstance)
MBeanServerLookup
class to be used to
bound JMX MBeans to.
mBeanServerLookupInstance
- An instance of MBeanServerLookup
public MBeanServerLookup getMBeanServerLookupInstance()
public boolean isAllowDuplicateDomains()
public void setAllowDuplicateDomains(boolean allowDuplicateDomains)
allowDuplicateDomains
- public String getCacheManagerName()
public void setCacheManagerName(String cacheManagerName)
cacheManagerName
- public boolean isStrictPeerToPeer()
public void setStrictPeerToPeer(boolean strictPeerToPeer)
strictPeerToPeer
- flag controlling this behaviorpublic boolean hasTopologyInfo()
protected boolean hasComponentStarted()
AbstractConfigurationBean
hasComponentStarted
in class AbstractConfigurationBean
public String getAsyncListenerExecutorFactoryClass()
public void setAsyncListenerExecutorFactoryClass(String asyncListenerExecutorFactoryClass)
public String getAsyncTransportExecutorFactoryClass()
public void setAsyncTransportExecutorFactoryClass(String asyncTransportExecutorFactoryClass)
public String getEvictionScheduledExecutorFactoryClass()
public void setEvictionScheduledExecutorFactoryClass(String evictionScheduledExecutorFactoryClass)
public String getReplicationQueueScheduledExecutorFactoryClass()
public void setReplicationQueueScheduledExecutorFactoryClass(String replicationQueueScheduledExecutorFactoryClass)
public String getMarshallerClass()
public void setMarshallerClass(String marshallerClass)
marshallerClass
- public String getTransportNodeName()
public void setTransportNodeName(String nodeName)
nodeName
- public String getTransportClass()
public void setTransportClass(String transportClass)
transportClass
- public Properties getTransportProperties()
public void setTransportProperties(Properties transportProperties)
public void setTransportProperties(String transportPropertiesString)
public String getClusterName()
public void setClusterName(String clusterName)
clusterName
- public void setMachineId(String machineId)
public String getMachineId()
setMachineId(String)
public void setRackId(String rackId)
public String getRackId()
setRackId(String)
public void setSiteId(String siteId)
public String getSiteId()
setSiteId(String)
public GlobalConfiguration.ShutdownHookBehavior getShutdownHookBehavior()
public void setShutdownHookBehavior(GlobalConfiguration.ShutdownHookBehavior shutdownHookBehavior)
shutdownHookBehavior
- public void setShutdownHookBehavior(String shutdownHookBehavior)
public Properties getAsyncListenerExecutorProperties()
public void setAsyncListenerExecutorProperties(Properties asyncListenerExecutorProperties)
public void setAsyncListenerExecutorProperties(String asyncListenerExecutorPropertiesString)
public Properties getAsyncTransportExecutorProperties()
public void setAsyncTransportExecutorProperties(Properties asyncTransportExecutorProperties)
public void setAsyncTransportExecutorProperties(String asyncSerializationExecutorPropertiesString)
public Properties getEvictionScheduledExecutorProperties()
public void setEvictionScheduledExecutorProperties(Properties evictionScheduledExecutorProperties)
public void setEvictionScheduledExecutorProperties(String evictionScheduledExecutorPropertiesString)
public Properties getReplicationQueueScheduledExecutorProperties()
public void setReplicationQueueScheduledExecutorProperties(Properties replicationQueueScheduledExecutorProperties)
public void setReplicationQueueScheduledExecutorProperties(String replicationQueueScheduledExecutorPropertiesString)
public short getMarshallVersion()
public String getMarshallVersionString()
public void setMarshallVersion(short marshallVersion)
marshallVersion
- public void setMarshallVersion(String marshallVersion)
marshallVersion
- public long getDistributedSyncTimeout()
public void setDistributedSyncTimeout(long distributedSyncTimeout)
public void accept(ConfigurationBeanVisitor v)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public GlobalConfiguration clone()
clone
in interface CloneableConfigurationComponent
clone
in class AbstractConfigurationBean
public static GlobalConfiguration getClusteredDefault()
public static GlobalConfiguration getNonClusteredDefault()
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |