public interface Configuration extends Serializable
Modifier and Type | Method and Description |
---|---|
Set<TransportConfiguration> |
getAcceptorConfigurations()
Returns the acceptors configured for this server.
|
Map<String,AddressSettings> |
getAddressesSettings() |
String |
getBindingsDirectory()
Returns the file system directory used to store bindings.
|
List<BridgeConfiguration> |
getBridgeConfigurations()
Returns the bridges configured for this server.
|
List<BroadcastGroupConfiguration> |
getBroadcastGroupConfigurations()
Returns the broadcast groups configured for this server.
|
List<ClusterConnectionConfiguration> |
getClusterConfigurations()
Returns the cluster connections configured for this server.
|
String |
getClusterPassword()
Returns the cluster password for this server.
|
String |
getClusterUser()
Returns the cluster user for this server.
|
long |
getConnectionTTLOverride()
Returns the connection time to live.
|
Map<String,TransportConfiguration> |
getConnectorConfigurations()
Returns the connectors configured for this server.
|
List<ConnectorServiceConfiguration> |
getConnectorServiceConfigurations() |
Map<String,DiscoveryGroupConfiguration> |
getDiscoveryGroupConfigurations()
Returns the discovery groups configured for this server.
|
List<DivertConfiguration> |
getDivertConfigurations()
Returns the diverts configured for this server.
|
long |
getFailbackDelay() |
long |
getFileDeployerScanPeriod()
Returns the period (in milliseconds) to scan configuration files used by deployment.
|
GroupingHandlerConfiguration |
getGroupingHandlerConfiguration()
Returns the grouping handler configured for this server.
|
int |
getIDCacheSize()
Returns the size of the cache for pre-creating message IDs.
|
List<String> |
getInterceptorClassNames()
Returns the list of interceptors classes used by this server.
|
String |
getJMXDomain()
Returns the domain used by JMX MBeans (provided JMX management is enabled).
|
int |
getJournalBufferSize_AIO()
Returns the buffer size (in bytes) for AIO.
|
int |
getJournalBufferSize_NIO()
Returns the buffer size (in bytes) for NIO.
|
int |
getJournalBufferTimeout_AIO()
Returns the timeout (in nanoseconds) used to flush buffers in the AIO queue.
|
int |
getJournalBufferTimeout_NIO()
Returns the timeout (in nanoseconds) used to flush buffers in the NIO.
|
int |
getJournalCompactMinFiles()
Returns the minimal number of journal files before compacting.
|
int |
getJournalCompactPercentage()
Returns the percentage of live data before compacting the journal.
|
String |
getJournalDirectory()
Returns the file system directory used to store journal log.
|
int |
getJournalFileSize()
Returns the size (in bytes) of each journal files.
|
int |
getJournalMaxIO_AIO()
Returns the maximum number of write requests that can be in the AIO queue at any given time.
|
int |
getJournalMaxIO_NIO()
Returns the maximum number of write requests for NIO journal.
|
int |
getJournalMinFiles()
Returns the number of journal files to pre-create.
|
int |
getJournalPerfBlastPages() |
JournalType |
getJournalType()
Returns the type of journal used by this server (either
NIO or ASYNCIO ). |
String |
getLargeMessagesDirectory()
Returns the file system directory used to store large messages.
|
String |
getLiveConnectorName()
Returns the name of the connector used to connect to the live node - only used when using shared nothing (shared store = false).
|
String |
getLogDelegateFactoryClassName()
Returns the name of the
LogDelegateFactory implementation used by this server
for logging. |
SimpleString |
getManagementAddress()
Returns the management address of this server.
|
SimpleString |
getManagementNotificationAddress()
Returns the management notification address of this server.
|
long |
getMemoryMeasureInterval() |
int |
getMemoryWarningThreshold() |
int |
getMessageCounterMaxDayHistory()
Returns the maximum number of days kept in memory for message counter.
|
long |
getMessageCounterSamplePeriod()
Returns the sample period (in milliseconds) to take message counter snapshot.
|
long |
getMessageExpiryScanPeriod()
Returns the frequency (in milliseconds) to scan messages to detect which messages
have expired.
|
int |
getMessageExpiryThreadPriority()
Returns the priority of the thread used to scan message expiration.
|
String |
getName()
To be used on dependency management on the application server
|
int |
getPageMaxConcurrentIO()
The max number of concurrent reads allowed on paging.
|
String |
getPagingDirectory()
Returns the file system directory used to store paging files.
|
List<CoreQueueConfiguration> |
getQueueConfigurations()
Returns the queues configured for this server.
|
int |
getScheduledThreadPoolMaxSize()
Returns the maximum number of threads in the scheduled thread pool of this server.
|
long |
getSecurityInvalidationInterval()
Returns the interval time (in milliseconds) to invalidate security credentials.
|
Map<String,Set<Role>> |
getSecurityRoles() |
long |
getServerDumpInterval() |
int |
getThreadPoolMaxSize()
Returns the maximum number of threads in the thread pool of this server.
|
long |
getTransactionTimeout()
Returns the timeout (in milliseconds) after which transactions is removed
from the resource manager after it was created.
|
long |
getTransactionTimeoutScanPeriod()
Returns the frequency (in milliseconds) to scan transactions to detect which transactions
have timed out.
|
boolean |
isAllowAutoFailBack()
returns whether a backup will auto die when a live server is failing back
|
boolean |
isAsyncConnectionExecutionEnabled()
Returns whether code coming from connection is executed asynchronously or not.
|
boolean |
isBackup()
Returns
true if this server is a backup, false if it is a live server. |
boolean |
isClustered()
Returns whether this server is clustered.
|
boolean |
isCreateBindingsDir()
Returns whether the bindings directory is created on this server startup.
|
boolean |
isCreateJournalDir()
Returns whether the journal directory is created on this server startup.
|
boolean |
isFailoverOnServerShutdown()
should we notify any clients on close that they should failover
|
boolean |
isFileDeploymentEnabled()
Returns whether this server will use files to configure and deploy its resources.
|
boolean |
isJMXManagementEnabled()
Returns whether this server is manageable using JMX or not.
|
boolean |
isJournalSyncNonTransactional()
Returns whether the journal is synchronized when receiving non-transactional data.
|
boolean |
isJournalSyncTransactional()
Returns whether the journal is synchronized when receiving transactional data.
|
boolean |
isLogJournalWriteRate() |
boolean |
isMessageCounterEnabled()
Returns whether message counter is enabled for this server.
|
boolean |
isPersistDeliveryCountBeforeDelivery()
Returns whether delivery count is persisted before messages are delivered to the consumers.
|
boolean |
isPersistenceEnabled()
Returns whether this server is using persistence and store data.
|
boolean |
isPersistIDCache()
Returns whether message ID cache is persisted.
|
boolean |
isRunSyncSpeedTest() |
boolean |
isSecurityEnabled()
Returns whether security is enabled for this server.
|
boolean |
isSharedStore()
Returns whether this server shares its data store with a corresponding live or backup server.
|
boolean |
isWildcardRoutingEnabled()
Returns whether wildcard routing is supported by this server.
|
void |
setAcceptorConfigurations(Set<TransportConfiguration> infos)
Sets the acceptors configured for this server.
|
void |
setAddressesSettings(Map<String,AddressSettings> addressesSettings) |
void |
setAllowAutoFailBack(boolean allowAutoFailBack)
whether a backup will auto die when a live server is failing back
|
void |
setBackup(boolean backup)
Sets whether this server is a backup or not.
|
void |
setBindingsDirectory(String dir)
Sets the file system directory used to store bindings.
|
void |
setBridgeConfigurations(List<BridgeConfiguration> configs)
Sets the bridges configured for this server.
|
void |
setBroadcastGroupConfigurations(List<BroadcastGroupConfiguration> configs)
Sets the broadcast groups configured for this server.
|
void |
setClusterConfigurations(List<ClusterConnectionConfiguration> configs)
Sets the cluster connections configured for this server.
|
void |
setClustered(boolean clustered)
Sets whether this server is clustered or not.
|
void |
setClusterPassword(String password)
Sets the cluster password for this server.
|
void |
setClusterUser(String user)
Sets the cluster user for this server.
|
void |
setConnectionTTLOverride(long ttl)
Sets the connection time to live.
|
void |
setConnectorConfigurations(Map<String,TransportConfiguration> infos)
Sets the connectors configured for this server.
|
void |
setConnectorServiceConfigurations(List<ConnectorServiceConfiguration> configs) |
void |
setCreateBindingsDir(boolean create)
Sets whether the bindings directory is created on this server startup.
|
void |
setCreateJournalDir(boolean create)
Sets whether the journal directory is created on this server startup.
|
void |
setDiscoveryGroupConfigurations(Map<String,DiscoveryGroupConfiguration> configs)
Sets the discovery groups configured for this server.
|
void |
setDivertConfigurations(List<DivertConfiguration> configs)
Sets the diverts configured for this server.
|
void |
setEnabledAsyncConnectionExecution(boolean enabled)
Sets whether code coming from connection is executed asynchronously or not.
|
void |
setFailbackDelay(long delay) |
void |
setFailoverOnServerShutdown(boolean failoverOnServerShutdown) |
void |
setFileDeployerScanPeriod(long period)
Sets the period to scan configuration files used by deployment.
|
void |
setFileDeploymentEnabled(boolean enable)
Sets whether this server will use files to configure and deploy its resources.
|
void |
setGroupingHandlerConfiguration(GroupingHandlerConfiguration groupingHandlerConfiguration)
Sets the grouping handler configured for this server.
|
void |
setIDCacheSize(int idCacheSize)
Sets the size of the cache for pre-creating message IDs.
|
void |
setInterceptorClassNames(List<String> interceptors)
Sets the list of interceptors classes used by this server.
|
void |
setJMXDomain(String domain)
Sets the domain used by JMX MBeans (provided JMX management is enabled).
|
void |
setJMXManagementEnabled(boolean enabled)
Sets whether this server is manageable using JMX or not.
|
void |
setJournalBufferSize_AIO(int journalBufferSize)
Sets the buffer size (in bytes) for AIO.
|
void |
setJournalBufferSize_NIO(int journalBufferSize)
Sets the buffer size (in bytes) for NIO.
|
void |
setJournalBufferTimeout_AIO(int journalBufferTimeout)
Sets the timeout (in nanoseconds) used to flush buffers in the AIO queue.
|
void |
setJournalBufferTimeout_NIO(int journalBufferTimeout)
Sets the timeout (in nanoseconds) used to flush buffers in the NIO.
|
void |
setJournalCompactMinFiles(int minFiles)
Sets the minimal number of journal files before compacting.
|
void |
setJournalCompactPercentage(int percentage)
Sets the percentage of live data before compacting the journal.
|
void |
setJournalDirectory(String dir)
Sets the file system directory used to store journal log.
|
void |
setJournalFileSize(int size)
Sets the size (in bytes) of each journal files.
|
void |
setJournalMaxIO_AIO(int journalMaxIO)
Sets the maximum number of write requests that can be in the AIO queue at any given time.
|
void |
setJournalMaxIO_NIO(int journalMaxIO)
Sets the maximum number of write requests for NIO journal.
|
void |
setJournalMinFiles(int files)
Sets the number of journal files to pre-create.
|
void |
setJournalPerfBlastPages(int pages) |
void |
setJournalSyncNonTransactional(boolean sync)
Sets whether the journal is synchronized when receiving non-transactional data.
|
void |
setJournalSyncTransactional(boolean sync)
Sets whether the journal is synchronized when receiving transactional data.
|
void |
setJournalType(JournalType type)
Sets the type of journal used by this server (either
NIO or ASYNCIO ). |
void |
setLargeMessagesDirectory(String directory)
Sets the file system directory used to store large messages.
|
void |
setLiveConnectorName(String name)
Sets the name of the connector used to connect to the live node - only used when using shared nothing (shared store = false).
|
void |
setLogDelegateFactoryClassName(String className)
Sets the name of the
LogDelegateFactory implementation used by this server
for logging. |
void |
setLogJournalWriteRate(boolean rate) |
void |
setManagementAddress(SimpleString address)
Sets the management address of this server.
|
void |
setManagementNotificationAddress(SimpleString address)
Sets the management notification address of this server.
|
void |
setMemoryMeasureInterval(long memoryMeasureInterval) |
void |
setMemoryWarningThreshold(int memoryWarningThreshold) |
void |
setMessageCounterEnabled(boolean enabled)
Sets whether message counter is enabled for this server.
|
void |
setMessageCounterMaxDayHistory(int maxDayHistory)
Sets the maximum number of days kept in memory for message counter.
|
void |
setMessageCounterSamplePeriod(long period)
Sets the sample period to take message counter snapshot.
|
void |
setMessageExpiryScanPeriod(long messageExpiryScanPeriod)
Sets the frequency (in milliseconds) to scan messages to detect which messages
have expired.
|
void |
setMessageExpiryThreadPriority(int messageExpiryThreadPriority)
Sets the priority of the thread used to scan message expiration.
|
void |
setName(String name)
To be used on dependency management on the application server
|
void |
setPageMaxConcurrentIO(int maxIO)
The max number of concurrent reads allowed on paging.
|
void |
setPagingDirectory(String dir)
Sets the file system directory used to store paging files.
|
void |
setPersistDeliveryCountBeforeDelivery(boolean persistDeliveryCountBeforeDelivery)
Sets whether delivery count is persisted before messages are delivered to consumers.
|
void |
setPersistenceEnabled(boolean enable)
Sets whether this server is using persistence and store data.
|
void |
setPersistIDCache(boolean persist)
Sets whether message ID cache is persisted.
|
void |
setQueueConfigurations(List<CoreQueueConfiguration> configs)
Sets the queues configured for this server.
|
void |
setRunSyncSpeedTest(boolean run) |
void |
setScheduledThreadPoolMaxSize(int maxSize)
Sets the maximum number of threads in the scheduled thread pool of this server.
|
void |
setSecurityEnabled(boolean enabled)
Sets whether security is enabled for this server.
|
void |
setSecurityInvalidationInterval(long interval)
Sets the interval time (in milliseconds) to invalidate security credentials.
|
void |
setSecurityRoles(Map<String,Set<Role>> roles) |
void |
setServerDumpInterval(long interval) |
void |
setSharedStore(boolean sharedStore)
Sets whether this server shares its data store with a backup or live server.
|
void |
setThreadPoolMaxSize(int maxSize)
Sets the maximum number of threads in the thread pool of this server.
|
void |
setTransactionTimeout(long timeout)
Sets the timeout (in milliseconds) after which transactions is removed
from the resource manager after it was created.
|
void |
setTransactionTimeoutScanPeriod(long period)
Sets the frequency (in milliseconds) to scan transactions to detect which transactions
have timed out.
|
void |
setWildcardRoutingEnabled(boolean enabled)
Sets whether wildcard routing is supported by this server.
|
String getName()
void setName(String name)
boolean isClustered()
void setClustered(boolean clustered)
boolean isAllowAutoFailBack()
void setAllowAutoFailBack(boolean allowAutoFailBack)
allowAutoFailBack
- true if allowedboolean isPersistDeliveryCountBeforeDelivery()
void setPersistDeliveryCountBeforeDelivery(boolean persistDeliveryCountBeforeDelivery)
boolean isBackup()
true
if this server is a backup, false
if it is a live server.
false
.
void setBackup(boolean backup)
boolean isSharedStore()
void setSharedStore(boolean sharedStore)
boolean isFileDeploymentEnabled()
void setFileDeploymentEnabled(boolean enable)
boolean isPersistenceEnabled()
void setPersistenceEnabled(boolean enable)
long getFileDeployerScanPeriod()
void setFileDeployerScanPeriod(long period)
int getThreadPoolMaxSize()
void setThreadPoolMaxSize(int maxSize)
int getScheduledThreadPoolMaxSize()
void setScheduledThreadPoolMaxSize(int maxSize)
long getSecurityInvalidationInterval()
void setSecurityInvalidationInterval(long interval)
boolean isSecurityEnabled()
void setSecurityEnabled(boolean enabled)
boolean isJMXManagementEnabled()
void setJMXManagementEnabled(boolean enabled)
String getJMXDomain()
void setJMXDomain(String domain)
List<String> getInterceptorClassNames()
void setInterceptorClassNames(List<String> interceptors)
Interceptor
.long getConnectionTTLOverride()
void setConnectionTTLOverride(long ttl)
boolean isAsyncConnectionExecutionEnabled()
void setEnabledAsyncConnectionExecution(boolean enabled)
Set<TransportConfiguration> getAcceptorConfigurations()
void setAcceptorConfigurations(Set<TransportConfiguration> infos)
Map<String,TransportConfiguration> getConnectorConfigurations()
void setConnectorConfigurations(Map<String,TransportConfiguration> infos)
String getLiveConnectorName()
void setLiveConnectorName(String name)
List<BroadcastGroupConfiguration> getBroadcastGroupConfigurations()
void setBroadcastGroupConfigurations(List<BroadcastGroupConfiguration> configs)
Map<String,DiscoveryGroupConfiguration> getDiscoveryGroupConfigurations()
void setDiscoveryGroupConfigurations(Map<String,DiscoveryGroupConfiguration> configs)
GroupingHandlerConfiguration getGroupingHandlerConfiguration()
void setGroupingHandlerConfiguration(GroupingHandlerConfiguration groupingHandlerConfiguration)
List<BridgeConfiguration> getBridgeConfigurations()
void setBridgeConfigurations(List<BridgeConfiguration> configs)
List<DivertConfiguration> getDivertConfigurations()
void setDivertConfigurations(List<DivertConfiguration> configs)
List<ClusterConnectionConfiguration> getClusterConfigurations()
void setClusterConfigurations(List<ClusterConnectionConfiguration> configs)
List<CoreQueueConfiguration> getQueueConfigurations()
void setQueueConfigurations(List<CoreQueueConfiguration> configs)
SimpleString getManagementAddress()
void setManagementAddress(SimpleString address)
SimpleString getManagementNotificationAddress()
void setManagementNotificationAddress(SimpleString address)
String getClusterUser()
void setClusterUser(String user)
String getClusterPassword()
boolean isFailoverOnServerShutdown()
void setFailoverOnServerShutdown(boolean failoverOnServerShutdown)
void setClusterPassword(String password)
int getIDCacheSize()
void setIDCacheSize(int idCacheSize)
boolean isPersistIDCache()
void setPersistIDCache(boolean persist)
String getLogDelegateFactoryClassName()
LogDelegateFactory
implementation used by this server
for logging.
void setLogDelegateFactoryClassName(String className)
LogDelegateFactory
implementation used by this server
for logging.String getBindingsDirectory()
void setBindingsDirectory(String dir)
int getPageMaxConcurrentIO()
void setPageMaxConcurrentIO(int maxIO)
String getJournalDirectory()
void setJournalDirectory(String dir)
JournalType getJournalType()
NIO
or ASYNCIO
).
void setJournalType(JournalType type)
NIO
or ASYNCIO
).boolean isJournalSyncTransactional()
void setJournalSyncTransactional(boolean sync)
boolean isJournalSyncNonTransactional()
void setJournalSyncNonTransactional(boolean sync)
int getJournalFileSize()
void setJournalFileSize(int size)
int getJournalCompactMinFiles()
void setJournalCompactMinFiles(int minFiles)
int getJournalCompactPercentage()
void setJournalCompactPercentage(int percentage)
int getJournalMinFiles()
void setJournalMinFiles(int files)
int getJournalMaxIO_AIO()
void setJournalMaxIO_AIO(int journalMaxIO)
int getJournalBufferTimeout_AIO()
void setJournalBufferTimeout_AIO(int journalBufferTimeout)
int getJournalBufferSize_AIO()
void setJournalBufferSize_AIO(int journalBufferSize)
int getJournalMaxIO_NIO()
void setJournalMaxIO_NIO(int journalMaxIO)
int getJournalBufferTimeout_NIO()
void setJournalBufferTimeout_NIO(int journalBufferTimeout)
int getJournalBufferSize_NIO()
void setJournalBufferSize_NIO(int journalBufferSize)
boolean isCreateBindingsDir()
void setCreateBindingsDir(boolean create)
boolean isCreateJournalDir()
void setCreateJournalDir(boolean create)
boolean isLogJournalWriteRate()
void setLogJournalWriteRate(boolean rate)
int getJournalPerfBlastPages()
void setJournalPerfBlastPages(int pages)
long getServerDumpInterval()
void setServerDumpInterval(long interval)
int getMemoryWarningThreshold()
void setMemoryWarningThreshold(int memoryWarningThreshold)
long getMemoryMeasureInterval()
void setMemoryMeasureInterval(long memoryMeasureInterval)
boolean isRunSyncSpeedTest()
void setRunSyncSpeedTest(boolean run)
String getPagingDirectory()
void setPagingDirectory(String dir)
String getLargeMessagesDirectory()
void setLargeMessagesDirectory(String directory)
boolean isWildcardRoutingEnabled()
void setWildcardRoutingEnabled(boolean enabled)
long getTransactionTimeout()
void setTransactionTimeout(long timeout)
boolean isMessageCounterEnabled()
void setMessageCounterEnabled(boolean enabled)
long getMessageCounterSamplePeriod()
void setMessageCounterSamplePeriod(long period)
period
- value must be greater than 1000msint getMessageCounterMaxDayHistory()
void setMessageCounterMaxDayHistory(int maxDayHistory)
maxDayHistory
- value must be greater than 0long getTransactionTimeoutScanPeriod()
void setTransactionTimeoutScanPeriod(long period)
long getMessageExpiryScanPeriod()
void setMessageExpiryScanPeriod(long messageExpiryScanPeriod)
int getMessageExpiryThreadPriority()
void setMessageExpiryThreadPriority(int messageExpiryThreadPriority)
Map<String,AddressSettings> getAddressesSettings()
void setAddressesSettings(Map<String,AddressSettings> addressesSettings)
A
- list of AddressSettings per matching to be deployed to the address settings repositoryvoid setSecurityRoles(Map<String,Set<Role>> roles)
roles
- a list of roles per matchingvoid setConnectorServiceConfigurations(List<ConnectorServiceConfiguration> configs)
- List<ConnectorServiceConfiguration> getConnectorServiceConfigurations()
long getFailbackDelay()
void setFailbackDelay(long delay)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.