Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2009 Red Hat, Inc.
   * Red Hat licenses this file to you under the Apache License, version
   * 2.0 (the "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *    http://www.apache.org/licenses/LICENSE-2.0
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  * implied.  See the License for the specific language governing
  * permissions and limitations under the License.
  */
 
 package org.hornetq.jms.server;
 
 import java.util.List;
 import java.util.Set;
 
 
The JMS Management interface.

Author(s):
Andy Taylor
Jeff Mesnil
Tim Fox
 
 public interface JMSServerManager extends HornetQComponent
 {
    String getVersion();

   
Has the Server been started.

Returns:
true if the server us running
 
    boolean isStarted();

   
Creates a JMS Queue.

Parameters:
queueName The name of the queue to create
selectorString
durable
Returns:
true if the queue is created or if it existed and was added to JNDI
Throws:
java.lang.Exception if problems were encountered creating the queue.
 
    boolean createQueue(boolean storeConfigString queueNameString selectorStringboolean durableString ...bindingsthrows Exception;
    
    boolean addTopicToJndi(final String topicNamefinal String bindingthrows Exception;
 
    boolean addQueueToJndi(final String queueNamefinal String bindingthrows Exception;
 
    boolean addConnectionFactoryToJNDI(final String namefinal String bindingthrows Exception;

   
Creates a JMS Topic

Parameters:
topicName the name of the topic
bindings the names of the binding for JNDI or BindingRegistry
Returns:
true if the topic was created or if it existed and was added to JNDI
Throws:
java.lang.Exception if a problem occurred creating the topic
 
    boolean createTopic(boolean storeConfigString topicNameString ... bindingsthrows Exception;

   
Remove the topic from JNDI or BindingRegistry. Calling this method does not destroy the destination.

Parameters:
name the name of the destination to remove from JNDI or BindingRegistry
Returns:
true if removed
Throws:
java.lang.Exception if a problem occurred removing the destination
 
    boolean removeTopicFromJNDI(String nameString bindingthrows Exception;

   
Remove the topic from JNDI or BindingRegistry. Calling this method does not destroy the destination.

Parameters:
name the name of the destination to remove from JNDI or BindingRegistry
Returns:
true if removed
Throws:
java.lang.Exception if a problem occurred removing the destination
   boolean removeTopicFromJNDI(String namethrows Exception;

   
Remove the queue from JNDI or BindingRegistry. Calling this method does not destroy the destination.

Parameters:
name the name of the destination to remove from JNDI or BindingRegistry
Returns:
true if removed
Throws:
java.lang.Exception if a problem occurred removing the destination
   boolean removeQueueFromJNDI(String nameString bindingthrows Exception;

   
Remove the queue from JNDI or BindingRegistry. Calling this method does not destroy the destination.

Parameters:
name the name of the destination to remove from JNDI or BindingRegistry
Returns:
true if removed
Throws:
java.lang.Exception if a problem occurred removing the destination
   boolean removeQueueFromJNDI(String namethrows Exception;
   boolean removeConnectionFactoryFromJNDI(String nameString bindingthrows Exception;
   boolean removeConnectionFactoryFromJNDI(String namethrows Exception;

   
destroys a queue and removes it from JNDI or BindingRegistry

Parameters:
name the name of the queue to destroy
Returns:
true if destroyed
Throws:
java.lang.Exception if a problem occurred destroying the queue
   boolean destroyQueue(String namethrows Exception;
   
   String[] getJNDIOnQueue(String queue);
   
   String[] getJNDIOnTopic(String topic);
   
   String[] getJNDIOnConnectionFactory(String factoryName);

   
destroys a topic and removes it from JNDI or BindingRegistry

Parameters:
name the name of the topic to destroy
Returns:
true if the topic was destroyed
Throws:
java.lang.Exception if a problem occurred destroying the topic
   boolean destroyTopic(String namethrows Exception;
   
   
Call this method to have a CF rebound to JNDI and stored on the Journal

   void createConnectionFactory(String nameboolean haJMSFactoryType cfTypeString discoveryGroupNameString ... jndiBindingsthrows Exception;
                                boolean ha,
                                JMSFactoryType cfType
                                List<StringconnectorNames,
                                String ... bindingsthrows Exception;
                                boolean ha,
                                JMSFactoryType cfType
                                List<StringconnectorNames,                                
                                String clientID,
                                long clientFailureCheckPeriod,
                                long connectionTTL,
                                long callTimeout,
                                long callFailoverTimeout,
                                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 ... bindingsthrows Exception;
                                boolean ha,
                                JMSFactoryType cfType
                                String discoveryGroupName,
                                String clientID,
                                long clientFailureCheckPeriod,
                                long connectionTTL,
                                long callTimeout,
                                long callFailoverTimeout,
                                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 ... bindingsthrows Exception;
   
   void createConnectionFactory(boolean storeConfigConnectionFactoryConfiguration cfConfigString... bindingsthrows Exception;

   
destroys a connection factory.

Parameters:
name the name of the connection factory to destroy
Returns:
true if the connection factory was destroyed
Throws:
java.lang.Exception if a problem occurred destroying the connection factory
   boolean destroyConnectionFactory(String namethrows Exception;
   String[] listRemoteAddresses(String ipAddressthrows Exception;
   boolean closeConnectionsForAddress(String ipAddressthrows Exception;
   String[] listSessions(String connectionIDthrows Exception;
   
   
   void setContext(final Context context);
   void addAddressSettings(String addressAddressSettings addressSettings);
   void addSecurity(String addressMatchSet<Roleroles);
   Set<RolegetSecurity(final String addressMatch);
Set this property if you want something other than JNDI for your registry

Parameters:
registry
   void setRegistry(BindingRegistry registry);
New to GrepCode? Check out our FAQ X