|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMSServerControl
A JMSSserverControl is used to manage HornetQ JMS server.
Method Summary | |
---|---|
boolean |
closeConnectionsForAddress(String ipAddress)
Closes all the connections of clients connected to this server which matches the specified IP address. |
void |
createConnectionFactory(String name,
Object[] liveConnectorsTransportClassNames,
Object[] liveConnectorTransportParams,
Object[] backupConnectorsTransportClassNames,
Object[] backupConnectorTransportParams,
Object[] bindings)
Create a JMS ConnectionFactory with the specified name connected to a static list of live-backup servers. |
void |
createConnectionFactory(String name,
String discoveryAddress,
int discoveryPort,
Object[] bindings)
Create a JMS ConnectionFactory with the specified name using a discovery group to discover HornetQ servers. |
void |
createConnectionFactory(String name,
String discoveryAddress,
int discoveryPort,
String jndiBindings)
Create a JMS ConnectionFactory with the specified name using a discovery group to discover HornetQ servers. |
void |
createConnectionFactory(String name,
String liveTransportClassName,
Map<String,Object> liveTransportParams,
Object[] jndiBindings)
Create a JMS ConnectionFactory with the specified name connected to a single HornetQ server. |
void |
createConnectionFactory(String name,
String liveTransportClassNames,
String liveTransportParams,
String backupTransportClassNames,
String backupTransportParams,
String jndiBindings)
Create a JMS ConnectionFactory with the specified name connected to a single live-backup pair of servers. |
boolean |
createQueue(String name)
Creates a durable JMS Queue. |
boolean |
createQueue(String name,
String jndiBindings)
Creates a durable JMS Queue with the specified name and JNDI binding. |
boolean |
createQueue(String name,
String jndiBindings,
String selector)
Creates a durable JMS Queue with the specified name, JNDI binding and selector. |
boolean |
createQueue(String name,
String jndiBindings,
String selector,
boolean durable)
Creates a JMS Queue with the specified name, durability, selector and JNDI binding. |
boolean |
createTopic(String name)
Creates a JMS Topic. |
boolean |
createTopic(String name,
String jndiBindings)
Creates a JMS Topic with the specified name and JNDI binding. |
void |
destroyConnectionFactory(String name)
Destroy the ConnectionFactory corresponding to the specified name. |
boolean |
destroyQueue(String name)
Destroys a JMS Queue with the specified name. |
boolean |
destroyTopic(String name)
Destroys a JMS Topic with the specified name. |
String[] |
getConnectionFactoryNames()
Returns the names of the JMS connection factories available on this server. |
String[] |
getQueueNames()
Returns the names of the JMS queues available on this server. |
String[] |
getTopicNames()
Returns the names of the JMS topics available on this server. |
String |
getVersion()
Returns this server's version |
boolean |
isStarted()
Returns whether this server is started. |
String[] |
listConnectionIDs()
Lists all the IDs of the connections connected to this server. |
String[] |
listRemoteAddresses()
Lists the addresses of all the clients connected to this address. |
String[] |
listRemoteAddresses(String ipAddress)
Lists the addresses of the clients connected to this address which matches the specified IP address. |
String[] |
listSessions(String connectionID)
Lists all the sessions IDs for the specified connection ID. |
Method Detail |
---|
boolean isStarted()
String getVersion()
String[] getTopicNames()
String[] getQueueNames()
String[] getConnectionFactoryNames()
boolean createQueue(String name) throws Exception
true
if the queue was created, false
else
Exception
boolean createQueue(String name, String jndiBindings) throws Exception
true
if the queue was created, false
else
Exception
boolean createQueue(String name, String jndiBindings, String selector) throws Exception
true
if the queue was created, false
else
Exception
boolean createQueue(String name, String jndiBindings, String selector, boolean durable) throws Exception
true
if the queue was created, false
else
Exception
boolean destroyQueue(String name) throws Exception
true
if the queue was destroyed, false
else
Exception
boolean createTopic(String name) throws Exception
true
if the topic was created, false
else
Exception
boolean createTopic(String name, String jndiBindings) throws Exception
true
if the topic was created, false
else
Exception
boolean destroyTopic(String name) throws Exception
true
if the topic was destroyed, false
else
Exception
void createConnectionFactory(String name, String liveTransportClassName, Map<String,Object> liveTransportParams, Object[] jndiBindings) throws Exception
Exception
void createConnectionFactory(String name, Object[] liveConnectorsTransportClassNames, Object[] liveConnectorTransportParams, Object[] backupConnectorsTransportClassNames, Object[] backupConnectorTransportParams, Object[] bindings) throws Exception
liveConnectorsTransportClassNames
(resp. backupConnectorsTransportClassNames
) are the class names
of the ConnectorFactory
to connect to the live (resp. backup) servers
and liveConnectorTransportParams
(resp. backupConnectorTransportParams) are Map<String, Object> for the corresponding TransportConfiguration
's parameters.
Exception
ClientSessionFactory.setStaticConnectors(java.util.List)
void createConnectionFactory(String name, String liveTransportClassNames, String liveTransportParams, String backupTransportClassNames, String backupTransportParams, String jndiBindings) throws Exception
backupTransportClassNames
and backupTransportParams
can be null
if there is no backup server.
Exception
void createConnectionFactory(String name, String discoveryAddress, int discoveryPort, Object[] bindings) throws Exception
discoveryAddress
and discoveryPort
to discover which servers it can connect to.
Exception
void createConnectionFactory(String name, String discoveryAddress, int discoveryPort, String jndiBindings) throws Exception
discoveryAddress
and discoveryPort
to discover which servers it can connect to.
Exception
void destroyConnectionFactory(String name) throws Exception
Exception
String[] listRemoteAddresses() throws Exception
Exception
String[] listRemoteAddresses(String ipAddress) throws Exception
Exception
boolean closeConnectionsForAddress(String ipAddress) throws Exception
Exception
String[] listConnectionIDs() throws Exception
Exception
String[] listSessions(String connectionID) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |