public class JMSServerManagerImpl extends Object implements JMSServerManager, ActivateCallback
Constructor and Description |
---|
JMSServerManagerImpl(HornetQServer server) |
JMSServerManagerImpl(HornetQServer server,
BindingRegistry registry) |
JMSServerManagerImpl(HornetQServer server,
JMSConfiguration configuration) |
JMSServerManagerImpl(HornetQServer server,
String configFileName) |
JMSServerManagerImpl(HornetQServer server,
String configFilename,
JMSStorageManager storageManager) |
Modifier and Type | Method and Description |
---|---|
void |
activated() |
void |
addAddressSettings(String address,
AddressSettings addressSettings) |
boolean |
addConnectionFactoryToJNDI(String name,
String jndiBinding) |
boolean |
addQueueToJndi(String queueName,
String jndiBinding) |
void |
addSecurity(String addressMatch,
Set<Role> roles) |
boolean |
addTopicToJndi(String topicName,
String jndiBinding) |
boolean |
closeConnectionsForAddress(String ipAddress) |
void |
createConnectionFactory(boolean storeConfig,
ConnectionFactoryConfiguration cfConfig,
String... jndi) |
void |
createConnectionFactory(String name,
boolean ha,
JMSFactoryType cfType,
List<String> connectorNames,
String... jndiBindings) |
void |
createConnectionFactory(String name,
boolean ha,
JMSFactoryType cfType,
List<String> connectorNames,
String clientID,
long clientFailureCheckPeriod,
long connectionTTL,
long callTimeout,
boolean cacheLargeMessagesClient,
int minLargeMessageSize,
boolean compressLargeMessage,
int consumerWindowSize,
int consumerMaxRate,
int confirmationWindowSize,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean blockOnDurableSend,
boolean blockOnNonDurableSend,
boolean autoGroup,
boolean preAcknowledge,
String loadBalancingPolicyClassName,
int transactionBatchSize,
int dupsOKBatchSize,
boolean useGlobalPools,
int scheduledThreadPoolMaxSize,
int threadPoolMaxSize,
long retryInterval,
double retryIntervalMultiplier,
long maxRetryInterval,
int reconnectAttempts,
boolean failoverOnInitialConnection,
String groupId,
String... jndiBindings) |
void |
createConnectionFactory(String name,
boolean ha,
JMSFactoryType cfType,
String discoveryGroupName,
String... jndiBindings) |
void |
createConnectionFactory(String name,
boolean ha,
JMSFactoryType cfType,
String discoveryGroupName,
String clientID,
long clientFailureCheckPeriod,
long connectionTTL,
long callTimeout,
boolean cacheLargeMessagesClient,
int minLargeMessageSize,
boolean compressLargeMessages,
int consumerWindowSize,
int consumerMaxRate,
int confirmationWindowSize,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean blockOnDurableSend,
boolean blockOnNonDurableSend,
boolean autoGroup,
boolean preAcknowledge,
String loadBalancingPolicyClassName,
int transactionBatchSize,
int dupsOKBatchSize,
boolean useGlobalPools,
int scheduledThreadPoolMaxSize,
int threadPoolMaxSize,
long retryInterval,
double retryIntervalMultiplier,
long maxRetryInterval,
int reconnectAttempts,
boolean failoverOnInitialConnection,
String groupId,
String... jndiBindings) |
boolean |
createQueue(boolean storeConfig,
String queueName,
String selectorString,
boolean durable,
String... jndi)
Creates a JMS Queue.
|
boolean |
createTopic(boolean storeConfig,
String topicName,
String... jndi)
Creates a JMS Topic
|
boolean |
destroyConnectionFactory(String name)
destroys a connection factory.
|
boolean |
destroyQueue(String name)
destroys a queue and removes it from JNDI or BindingRegistry
|
boolean |
destroyTopic(String name)
destroys a topic and removes it from JNDI or BindingRegistry
|
AddressSettings |
getAddressSettings(String address) |
HornetQServer |
getHornetQServer() |
JMSStorageManager |
getJMSStorageManager() |
String[] |
getJNDIOnConnectionFactory(String factoryName) |
String[] |
getJNDIOnQueue(String queue) |
String[] |
getJNDIOnTopic(String topic) |
BindingRegistry |
getRegistry() |
Set<Role> |
getSecurity(String addressMatch) |
String |
getVersion() |
protected HornetQConnectionFactory |
internalCreateCFPOJO(ConnectionFactoryConfiguration cfConfig) |
boolean |
isStarted()
Has the Server been started.
|
String[] |
listConnectionIDs() |
String |
listPreparedTransactionDetailsAsHTML() |
String |
listPreparedTransactionDetailsAsJSON() |
String[] |
listRemoteAddresses() |
String[] |
listRemoteAddresses(String ipAddress) |
String[] |
listSessions(String connectionID) |
void |
preActivate() |
HornetQConnectionFactory |
recreateCF(String name,
ConnectionFactoryConfiguration cf)
Call this method to have a CF rebound to JNDI and stored on the Journal
|
boolean |
removeConnectionFactoryFromJNDI(String name) |
boolean |
removeConnectionFactoryFromJNDI(String name,
String jndi) |
boolean |
removeQueueFromJNDI(String name)
Remove the queue from JNDI or BindingRegistry.
|
boolean |
removeQueueFromJNDI(String name,
String jndi)
Remove the queue from JNDI or BindingRegistry.
|
boolean |
removeTopicFromJNDI(String name)
Remove the topic from JNDI or BindingRegistry.
|
boolean |
removeTopicFromJNDI(String name,
String jndi)
Remove the topic from JNDI or BindingRegistry.
|
void |
replaceStorageManager(JMSStorageManager newStorage) |
void |
setContext(Context context) |
void |
setRegistry(BindingRegistry registry)
Set this property if you want something other than JNDI for your registry
|
protected boolean |
shutdownConnectionFactory(String name) |
void |
start() |
void |
stop() |
public JMSServerManagerImpl(HornetQServer server) throws Exception
Exception
public JMSServerManagerImpl(HornetQServer server, BindingRegistry registry) throws Exception
Exception
public JMSServerManagerImpl(HornetQServer server, String configFileName) throws Exception
Exception
public JMSServerManagerImpl(HornetQServer server, JMSConfiguration configuration) throws Exception
Exception
public JMSServerManagerImpl(HornetQServer server, String configFilename, JMSStorageManager storageManager)
public void preActivate()
preActivate
in interface ActivateCallback
public void activated()
activated
in interface ActivateCallback
public void start() throws Exception
start
in interface HornetQComponent
Exception
public void stop() throws Exception
stop
in interface HornetQComponent
Exception
public boolean isStarted()
JMSServerManager
isStarted
in interface HornetQComponent
isStarted
in interface JMSServerManager
public BindingRegistry getRegistry()
getRegistry
in interface JMSServerManager
public void setRegistry(BindingRegistry registry)
JMSServerManager
setRegistry
in interface JMSServerManager
public HornetQServer getHornetQServer()
getHornetQServer
in interface JMSServerManager
public void addAddressSettings(String address, AddressSettings addressSettings)
addAddressSettings
in interface JMSServerManager
public AddressSettings getAddressSettings(String address)
getAddressSettings
in interface JMSServerManager
public void addSecurity(String addressMatch, Set<Role> roles)
addSecurity
in interface JMSServerManager
public Set<Role> getSecurity(String addressMatch)
getSecurity
in interface JMSServerManager
public void setContext(Context context)
setContext
in interface JMSServerManager
public String getVersion()
getVersion
in interface JMSServerManager
public boolean createQueue(boolean storeConfig, String queueName, String selectorString, boolean durable, String... jndi) throws Exception
JMSServerManager
createQueue
in interface JMSServerManager
queueName
- The name of the queue to createException
- if problems were encountered creating the queue.public boolean createTopic(boolean storeConfig, String topicName, String... jndi) throws Exception
JMSServerManager
createTopic
in interface JMSServerManager
topicName
- the name of the topicException
- if a problem occurred creating the topicpublic boolean addTopicToJndi(String topicName, String jndiBinding) throws Exception
addTopicToJndi
in interface JMSServerManager
Exception
public String[] getJNDIOnQueue(String queue)
getJNDIOnQueue
in interface JMSServerManager
public String[] getJNDIOnTopic(String topic)
getJNDIOnTopic
in interface JMSServerManager
public String[] getJNDIOnConnectionFactory(String factoryName)
getJNDIOnConnectionFactory
in interface JMSServerManager
public boolean addQueueToJndi(String queueName, String jndiBinding) throws Exception
addQueueToJndi
in interface JMSServerManager
Exception
public boolean addConnectionFactoryToJNDI(String name, String jndiBinding) throws Exception
addConnectionFactoryToJNDI
in interface JMSServerManager
Exception
public boolean removeQueueFromJNDI(String name, String jndi) throws Exception
JMSServerManager
removeQueueFromJNDI
in interface JMSServerManager
name
- the name of the destination to remove from JNDI or BindingRegistryException
- if a problem occurred removing the destinationpublic boolean removeQueueFromJNDI(String name) throws Exception
JMSServerManager
removeQueueFromJNDI
in interface JMSServerManager
name
- the name of the destination to remove from JNDI or BindingRegistryException
- if a problem occurred removing the destinationpublic boolean removeTopicFromJNDI(String name, String jndi) throws Exception
JMSServerManager
removeTopicFromJNDI
in interface JMSServerManager
name
- the name of the destination to remove from JNDI or BindingRegistryException
- if a problem occurred removing the destinationpublic boolean removeTopicFromJNDI(String name) throws Exception
JMSServerManager
removeTopicFromJNDI
in interface JMSServerManager
name
- the name of the destination to remove from JNDI or BindingRegistryException
- if a problem occurred removing the destinationpublic boolean removeConnectionFactoryFromJNDI(String name, String jndi) throws Exception
removeConnectionFactoryFromJNDI
in interface JMSServerManager
Exception
public boolean removeConnectionFactoryFromJNDI(String name) throws Exception
removeConnectionFactoryFromJNDI
in interface JMSServerManager
Exception
public boolean destroyQueue(String name) throws Exception
JMSServerManager
destroyQueue
in interface JMSServerManager
name
- the name of the queue to destroyException
- if a problem occurred destroying the queuepublic boolean destroyTopic(String name) throws Exception
JMSServerManager
destroyTopic
in interface JMSServerManager
name
- the name of the topic to destroyException
- if a problem occurred destroying the topicpublic void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, List<String> connectorNames, String... jndiBindings) throws Exception
createConnectionFactory
in interface JMSServerManager
Exception
public void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, List<String> connectorNames, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, boolean cacheLargeMessagesClient, int minLargeMessageSize, boolean compressLargeMessage, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId, String... jndiBindings) throws Exception
createConnectionFactory
in interface JMSServerManager
Exception
public void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, String discoveryGroupName, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, boolean cacheLargeMessagesClient, int minLargeMessageSize, boolean compressLargeMessages, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId, String... jndiBindings) throws Exception
createConnectionFactory
in interface JMSServerManager
Exception
public void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, String discoveryGroupName, String... jndiBindings) throws Exception
createConnectionFactory
in interface JMSServerManager
Exception
public HornetQConnectionFactory recreateCF(String name, ConnectionFactoryConfiguration cf) throws Exception
JMSServerManager
recreateCF
in interface JMSServerManager
Exception
public void createConnectionFactory(boolean storeConfig, ConnectionFactoryConfiguration cfConfig, String... jndi) throws Exception
createConnectionFactory
in interface JMSServerManager
Exception
public JMSStorageManager getJMSStorageManager()
public void replaceStorageManager(JMSStorageManager newStorage)
protected HornetQConnectionFactory internalCreateCFPOJO(ConnectionFactoryConfiguration cfConfig) throws HornetQException
cfConfig
- HornetQException
public boolean destroyConnectionFactory(String name) throws Exception
JMSServerManager
destroyConnectionFactory
in interface JMSServerManager
name
- the name of the connection factory to destroyException
- if a problem occurred destroying the connection factoryprotected boolean shutdownConnectionFactory(String name) throws Exception
name
- Exception
public String[] listRemoteAddresses() throws Exception
listRemoteAddresses
in interface JMSServerManager
Exception
public String[] listRemoteAddresses(String ipAddress) throws Exception
listRemoteAddresses
in interface JMSServerManager
Exception
public boolean closeConnectionsForAddress(String ipAddress) throws Exception
closeConnectionsForAddress
in interface JMSServerManager
Exception
public String[] listConnectionIDs() throws Exception
listConnectionIDs
in interface JMSServerManager
Exception
public String[] listSessions(String connectionID) throws Exception
listSessions
in interface JMSServerManager
Exception
public String listPreparedTransactionDetailsAsJSON() throws Exception
listPreparedTransactionDetailsAsJSON
in interface JMSServerManager
Exception
public String listPreparedTransactionDetailsAsHTML() throws Exception
listPreparedTransactionDetailsAsHTML
in interface JMSServerManager
Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.