KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > presumo > jms > plugin > transport > ServerTransport


1 /**
2  * This file is part of Presumo.
3  *
4  * Presumo is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * Presumo is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Presumo; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  *
19  * Copyright 2001 Dan Greff
20  */

21 package com.presumo.jms.plugin.transport;
22
23 import com.presumo.jms.router.Router;
24 import com.presumo.util.config.Preferences;
25
26 import javax.jms.JMSException JavaDoc;
27
28 /**
29  * Defines the interface that must be implemented to provide a new server
30  * side transport mechanism.
31  *
32  * @author Dan Greff
33  */

34 public interface ServerTransport
35 {
36   /**
37    *
38    */

39   public void setURL(String JavaDoc url);
40
41   
42   public void setRouter(Router r);
43
44   /**
45    *
46    */

47   public void setPreferences(Preferences prefs);
48
49   /**
50    *
51    */

52   public void start() throws JMSException JavaDoc;
53
54  
55   /**
56    * Close down the server transport, including all disconnecting all clients.
57    *
58    * If an error occurs, the implementation should log the error and handle
59    * the error as much as possible rather than propegating an exceptions.
60    */

61   public void close();
62   
63 }
64
Popular Tags