public class JMSConnectionFactoryControlImpl extends StandardMBean implements ConnectionFactoryControl
Constructor and Description |
---|
JMSConnectionFactoryControlImpl(ConnectionFactoryConfiguration cfConfig,
HornetQConnectionFactory cf,
JMSServerManager jmsManager,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addJNDI(String jndi)
Add the JNDI binding to this destination
|
long |
getCallTimeout() |
long |
getClientFailureCheckPeriod() |
String |
getClientID()
Returns the Client ID of this connection factory (or
null if it is not set. |
int |
getConfirmationWindowSize() |
String |
getConnectionLoadBalancingPolicyClassName() |
long |
getConnectionTTL() |
int |
getConsumerMaxRate() |
int |
getConsumerWindowSize() |
DiscoveryGroupConfiguration |
getDiscoveryGroupConfiguration()
get the discovery group configuration
|
int |
getDupsOKBatchSize()
Returns the batch size (in bytes) between acknowledgements when using DUPS_OK_ACKNOWLEDGE mode.
|
int |
getFactoryType()
return the type of factory
|
String |
getGroupID() |
int |
getInitialMessagePacketSize() |
String[] |
getJNDIBindings()
Returns the JNDI bindings associated to this connection factory.
|
long |
getMaxRetryInterval() |
MBeanInfo |
getMBeanInfo() |
int |
getMinLargeMessageSize() |
String |
getName()
Returns the configuration name of this connection factory.
|
int |
getProducerMaxRate() |
int |
getProducerWindowSize() |
int |
getReconnectAttempts() |
long |
getRetryInterval() |
double |
getRetryIntervalMultiplier() |
int |
getScheduledThreadPoolMaxSize() |
TransportConfiguration[] |
getStaticConnectors() |
int |
getThreadPoolMaxSize() |
int |
getTransactionBatchSize()
Returns the batch size (in bytes) between acknowledgements when using a transacted session.
|
boolean |
isAutoGroup() |
boolean |
isBlockOnAcknowledge() |
boolean |
isBlockOnDurableSend() |
boolean |
isBlockOnNonDurableSend() |
boolean |
isCacheLargeMessagesClient() |
boolean |
isCompressLargeMessages() |
boolean |
isFailoverOnInitialConnection() |
boolean |
isHA()
does ths cf support HA
|
boolean |
isPreAcknowledge() |
boolean |
isUseGlobalPools() |
void |
setAutoGroup(boolean autoGroup) |
void |
setBlockOnAcknowledge(boolean blockOnAcknowledge) |
void |
setBlockOnDurableSend(boolean blockOnDurableSend) |
void |
setBlockOnNonDurableSend(boolean blockOnNonDurableSend) |
void |
setCacheLargeMessagesClient(boolean cacheLargeMessagesClient) |
void |
setCallTimeout(long callTimeout) |
void |
setClientFailureCheckPeriod(long clientFailureCheckPeriod) |
void |
setClientID(String clientID)
Sets the Client ID for this connection factory.
|
void |
setCompressLargeMessages(boolean compress) |
void |
setConfirmationWindowSize(int confirmationWindowSize) |
void |
setConnectionLoadBalancingPolicyClassName(String name) |
void |
setConnectionTTL(long connectionTTL) |
void |
setConsumerMaxRate(int consumerMaxRate) |
void |
setConsumerWindowSize(int consumerWindowSize) |
void |
setDupsOKBatchSize(int dupsOKBatchSize) |
void |
setFailoverOnInitialConnection(boolean failover) |
void |
setGroupID(String groupID) |
void |
setMaxRetryInterval(long retryInterval) |
void |
setMinLargeMessageSize(int minLargeMessageSize) |
void |
setPreAcknowledge(boolean preAcknowledge) |
void |
setProducerMaxRate(int producerMaxRate) |
void |
setProducerWindowSize(int producerWindowSize) |
void |
setReconnectAttempts(int reconnectAttempts) |
void |
setRetryInterval(long retryInterval) |
void |
setRetryIntervalMultiplier(double retryIntervalMultiplier) |
void |
setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize) |
void |
setThreadPoolMaxSize(int threadPoolMaxSize) |
void |
setTransactionBatchSize(int transactionBatchSize) |
void |
setUseGlobalPools(boolean useGlobalPools) |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public JMSConnectionFactoryControlImpl(ConnectionFactoryConfiguration cfConfig, HornetQConnectionFactory cf, JMSServerManager jmsManager, String name) throws NotCompliantMBeanException
NotCompliantMBeanException
public String[] getJNDIBindings()
ConnectionFactoryControl
getJNDIBindings
in interface ConnectionFactoryControl
public boolean isCompressLargeMessages()
isCompressLargeMessages
in interface ConnectionFactoryControl
public void setCompressLargeMessages(boolean compress)
setCompressLargeMessages
in interface ConnectionFactoryControl
public boolean isHA()
ConnectionFactoryControl
isHA
in interface ConnectionFactoryControl
public int getFactoryType()
ConnectionFactoryControl
getFactoryType
in interface ConnectionFactoryControl
public String getClientID()
ConnectionFactoryControl
null
if it is not set.getClientID
in interface ConnectionFactoryControl
public long getClientFailureCheckPeriod()
getClientFailureCheckPeriod
in interface ConnectionFactoryControl
ClientSessionFactory#getClientFailureCheckPeriod()
public void setClientID(String clientID)
ConnectionFactoryControl
setClientID
in interface ConnectionFactoryControl
public void setDupsOKBatchSize(int dupsOKBatchSize)
setDupsOKBatchSize
in interface ConnectionFactoryControl
ClientSessionFactory#setAckBatchSize(int)
public void setTransactionBatchSize(int transactionBatchSize)
setTransactionBatchSize
in interface ConnectionFactoryControl
ClientSessionFactory#setAckBatchSize(int)
public void setClientFailureCheckPeriod(long clientFailureCheckPeriod)
setClientFailureCheckPeriod
in interface ConnectionFactoryControl
ClientSessionFactory#setClientFailureCheckPeriod
public void setConnectionTTL(long connectionTTL)
setConnectionTTL
in interface ConnectionFactoryControl
ClientSessionFactory#setConnectionTTL(long)
public void setCallTimeout(long callTimeout)
setCallTimeout
in interface ConnectionFactoryControl
ClientSessionFactory#setCallTimeout(long)
public void setConsumerWindowSize(int consumerWindowSize)
setConsumerWindowSize
in interface ConnectionFactoryControl
ClientSessionFactory#setConfirmationWindowSize(int)
public void setConsumerMaxRate(int consumerMaxRate)
setConsumerMaxRate
in interface ConnectionFactoryControl
ClientSessionFactory#setConsumerMaxRate(int)
public void setConfirmationWindowSize(int confirmationWindowSize)
setConfirmationWindowSize
in interface ConnectionFactoryControl
ClientSessionFactory#setConfirmationWindowSize(int)
public void setProducerMaxRate(int producerMaxRate)
setProducerMaxRate
in interface ConnectionFactoryControl
ClientSessionFactory#setProducerMaxRate(int)
public int getProducerWindowSize()
getProducerWindowSize
in interface ConnectionFactoryControl
org.hornetq.api.core.client.ClientSessionFactory#getProducerWindowSize()
public void setProducerWindowSize(int producerWindowSize)
setProducerWindowSize
in interface ConnectionFactoryControl
ClientSessionFactory#setProducerWindowSize(int)
public void setCacheLargeMessagesClient(boolean cacheLargeMessagesClient)
setCacheLargeMessagesClient
in interface ConnectionFactoryControl
ClientSessionFactory#setCacheLargeMessagesClient(boolean)
public boolean isCacheLargeMessagesClient()
isCacheLargeMessagesClient
in interface ConnectionFactoryControl
ClientSessionFactory#isCacheLargeMessagesClient()
public void setMinLargeMessageSize(int minLargeMessageSize)
setMinLargeMessageSize
in interface ConnectionFactoryControl
ClientSessionFactory#setMinLargeMessageSize(int)
public void setBlockOnNonDurableSend(boolean blockOnNonDurableSend)
setBlockOnNonDurableSend
in interface ConnectionFactoryControl
ClientSessionFactory#setBlockOnNonDurableSend(boolean)
public void setBlockOnAcknowledge(boolean blockOnAcknowledge)
setBlockOnAcknowledge
in interface ConnectionFactoryControl
ClientSessionFactory#setBlockOnAcknowledge(boolean)
public void setBlockOnDurableSend(boolean blockOnDurableSend)
setBlockOnDurableSend
in interface ConnectionFactoryControl
ClientSessionFactory#setBlockOnDurableSend(boolean)
public void setAutoGroup(boolean autoGroup)
setAutoGroup
in interface ConnectionFactoryControl
ClientSessionFactory#setAutoGroup(boolean)
public void setPreAcknowledge(boolean preAcknowledge)
setPreAcknowledge
in interface ConnectionFactoryControl
ClientSessionFactory#setPreAcknowledge(boolean)
public void setMaxRetryInterval(long retryInterval)
setMaxRetryInterval
in interface ConnectionFactoryControl
ClientSessionFactory#setMaxRetryInterval(long)
public void setRetryIntervalMultiplier(double retryIntervalMultiplier)
setRetryIntervalMultiplier
in interface ConnectionFactoryControl
ClientSessionFactory#setRetryIntervalMultiplier(double)
public void setReconnectAttempts(int reconnectAttempts)
setReconnectAttempts
in interface ConnectionFactoryControl
ClientSessionFactory#setReconnectAttempts(int)
public void setFailoverOnInitialConnection(boolean failover)
setFailoverOnInitialConnection
in interface ConnectionFactoryControl
ClientSessionFactory#setFailoverOnInitialConnection(boolean)
public boolean isUseGlobalPools()
isUseGlobalPools
in interface ConnectionFactoryControl
ClientSessionFactory#isUseGlobalPools()
public void setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize)
setScheduledThreadPoolMaxSize
in interface ConnectionFactoryControl
ClientSessionFactory#setScheduledThreadPoolMaxSize(int)
public int getThreadPoolMaxSize()
getThreadPoolMaxSize
in interface ConnectionFactoryControl
ClientSessionFactory#getThreadPoolMaxSize()
public void setThreadPoolMaxSize(int threadPoolMaxSize)
setThreadPoolMaxSize
in interface ConnectionFactoryControl
ClientSessionFactory#setThreadPoolMaxSize(int)
public int getInitialMessagePacketSize()
getInitialMessagePacketSize
in interface ConnectionFactoryControl
ClientSessionFactory#getInitialMessagePacketSize()
public void setGroupID(String groupID)
setGroupID
in interface ConnectionFactoryControl
ClientSessionFactory#setGroupID(String)
public String getGroupID()
getGroupID
in interface ConnectionFactoryControl
ClientSessionFactory#getGroupID()
public void setUseGlobalPools(boolean useGlobalPools)
setUseGlobalPools
in interface ConnectionFactoryControl
ClientSessionFactory#setUseGlobalPools(boolean)
public int getScheduledThreadPoolMaxSize()
getScheduledThreadPoolMaxSize
in interface ConnectionFactoryControl
ClientSessionFactory#getScheduledThreadPoolMaxSize()
public void setRetryInterval(long retryInterval)
setRetryInterval
in interface ConnectionFactoryControl
ClientSessionFactory#setRetryInterval(long)
public long getMaxRetryInterval()
getMaxRetryInterval
in interface ConnectionFactoryControl
ClientSessionFactory#getMaxRetryInterval()
public String getConnectionLoadBalancingPolicyClassName()
getConnectionLoadBalancingPolicyClassName
in interface ConnectionFactoryControl
ClientSessionFactory#getConnectionLoadBalancingPolicyClassName()
public void setConnectionLoadBalancingPolicyClassName(String name)
setConnectionLoadBalancingPolicyClassName
in interface ConnectionFactoryControl
ClientSessionFactory#setConnectionLoadBalancingPolicyClassName(String)
public TransportConfiguration[] getStaticConnectors()
getStaticConnectors
in interface ConnectionFactoryControl
ClientSessionFactory#getStaticConnectors()
public DiscoveryGroupConfiguration getDiscoveryGroupConfiguration()
ConnectionFactoryControl
getDiscoveryGroupConfiguration
in interface ConnectionFactoryControl
public void addJNDI(String jndi) throws Exception
ConnectionFactoryControl
addJNDI
in interface ConnectionFactoryControl
Exception
public long getCallTimeout()
getCallTimeout
in interface ConnectionFactoryControl
ClientSessionFactory#getCallTimeout()
public int getConsumerMaxRate()
getConsumerMaxRate
in interface ConnectionFactoryControl
ClientSessionFactory#getConsumerMaxRate()
public int getConsumerWindowSize()
getConsumerWindowSize
in interface ConnectionFactoryControl
ClientSessionFactory#getConsumerWindowSize()
public int getProducerMaxRate()
getProducerMaxRate
in interface ConnectionFactoryControl
ClientSessionFactory#getProducerMaxRate()
public int getConfirmationWindowSize()
getConfirmationWindowSize
in interface ConnectionFactoryControl
ClientSessionFactory#getConfirmationWindowSize()
public int getDupsOKBatchSize()
ConnectionFactoryControl
getDupsOKBatchSize
in interface ConnectionFactoryControl
ClientSessionFactory#getAckBatchSize()
,
Session.DUPS_OK_ACKNOWLEDGE
public boolean isBlockOnAcknowledge()
isBlockOnAcknowledge
in interface ConnectionFactoryControl
ClientSessionFactory#isBlockOnAcknowledge()
public boolean isBlockOnNonDurableSend()
isBlockOnNonDurableSend
in interface ConnectionFactoryControl
ClientSessionFactory#isBlockOnNonDurableSend()
public boolean isBlockOnDurableSend()
isBlockOnDurableSend
in interface ConnectionFactoryControl
ClientSessionFactory#isBlockOnDurableSend()
public boolean isPreAcknowledge()
isPreAcknowledge
in interface ConnectionFactoryControl
ClientSessionFactory#isPreAcknowledge()
public String getName()
ConnectionFactoryControl
getName
in interface ConnectionFactoryControl
public long getConnectionTTL()
getConnectionTTL
in interface ConnectionFactoryControl
ClientSessionFactory#getConnectionTTL()
public int getReconnectAttempts()
getReconnectAttempts
in interface ConnectionFactoryControl
ClientSessionFactory#getReconnectAttempts()
public boolean isFailoverOnInitialConnection()
isFailoverOnInitialConnection
in interface ConnectionFactoryControl
ClientSessionFactory#isFailoverOnInitialConnection()
public int getMinLargeMessageSize()
getMinLargeMessageSize
in interface ConnectionFactoryControl
ClientSessionFactory#getMinLargeMessageSize()
public long getRetryInterval()
getRetryInterval
in interface ConnectionFactoryControl
ClientSessionFactory#getRetryInterval()
public double getRetryIntervalMultiplier()
getRetryIntervalMultiplier
in interface ConnectionFactoryControl
ClientSessionFactory#getRetryIntervalMultiplier()
public int getTransactionBatchSize()
ConnectionFactoryControl
getTransactionBatchSize
in interface ConnectionFactoryControl
ClientSessionFactory#getAckBatchSize()
public boolean isAutoGroup()
isAutoGroup
in interface ConnectionFactoryControl
ClientSessionFactory#isAutoGroup()
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
getMBeanInfo
in class StandardMBean
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.