All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.objectweb.jtests.jms.admin.Admin Maven / Gradle / Ivy

The newest version!
/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF 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.objectweb.jtests.jms.admin;

import javax.naming.Context;
import javax.naming.NamingException;

/**
 * Simple Administration interface.
 * 
* JMS Provider has to implement this * simple interface to be able to use the test suite. */ public interface Admin { /** * Returns the name of the JMS Provider. * * @return name of the JMS Provider */ public String getName(); /** * Returns an Context for the JMS Provider. * * @return an Context for the JMS Provider. */ public Context createContext() throws NamingException; /** * Creates a ConnectionFactory and makes it available *from JNDI with name name. * * @since JMS 1.1 * @param name JNDI name of the ConnectionFactory */ public void createConnectionFactory(String name); /** * Creates a QueueConnectionFactory and makes it available *from JNDI with name name. * * @param name JNDI name of the QueueConnectionFactory */ public void createQueueConnectionFactory(String name); /** * Creates a TopicConnectionFactory and makes it available *from JNDI with name name. * * @param name JNDI name of the TopicConnectionFactory */ public void createTopicConnectionFactory(String name); /** * Creates a Queue and makes it available *from JNDI with name name. * * @param name JNDI name of the Queue */ public void createQueue(String name); /** * Creates a Topic and makes it available *from JNDI with name name. * * @param name JNDI name of the Topic */ public void createTopic(String name); /** * Removes the Queue of name name from JNDI and deletes it * * @param name JNDI name of the Queue */ public void deleteQueue(String name); /** * Removes the Topic of name name from JNDI and deletes it * * @param name JNDI name of the Topic */ public void deleteTopic(String name); /** * Removes the ConnectionFactory of name name from JNDI and deletes it * * @since JMS 1.1 * @param name JNDI name of the ConnectionFactory */ public void deleteConnectionFactory(String name); /** * Removes the QueueConnectionFactory of name name from JNDI and deletes it * * @param name JNDI name of the QueueConnectionFactory */ public void deleteQueueConnectionFactory(String name); /** * Removes the TopicConnectionFactory of name name from JNDI and deletes it * * @param name JNDI name of the TopicConnectionFactory */ public void deleteTopicConnectionFactory(String name); /** * Optional method to start the server embedded (instead of running an external server) */ public void startServer() throws Exception; /** * Optional method to stop the server embedded (instead of running an external server) */ public void stopServer() throws Exception; /** * Optional method for processing to be made after the Admin is instantiated and before * it is used to create the administrated objects */ void start() throws Exception; /** * Optional method for processing to be made after the administrated objects have been cleaned up */ void stop() throws Exception; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy