Source code: org/mom4j/api/Mom4jConfig.java
1 /*
2 * This Java source is issued under the LGPL license.
3 * See http://www.gnu.org/licenses/lgpl.html for details.
4 */
5 package org.mom4j.api;
6
7 import java.io.File;
8 import java.util.List;
9
10 /**
11 * The configuration for the mom4j server. This interface
12 * provides the mom4j server with all config-information
13 * it requires.
14 *
15 * @version $Id: Mom4jConfig.java,v 1.2 2003/07/25 07:33:16 the_real_grace Exp $ $Date: 2003/07/25 07:33:16 $
16 */
17 public interface Mom4jConfig {
18
19 /**
20 * @return the port on which the mom4j server is listening
21 * for requests from JMS clients.
22 */
23 public int getPort();
24
25 /**
26 * @return the port on which the mom4j admin server is listening
27 * for requests from HTML clients.
28 */
29 public int getAdminPort();
30
31 /**
32 * @return the port on which the JNDI server is listening
33 * for requests from JNDI clients.
34 */
35 public int getJndiPort();
36
37 /**
38 * @return the number of worker threads used for processing
39 * client requests.
40 */
41 public int getThreadCount();
42
43 /**
44 * @return a list of Mom4jUser objects used for authentication:
45 * @see org.mom4j.api.Mom4jUser
46 */
47 public List getUsers();
48
49 /**
50 * @return a file object pointing to a directory where mom4j can
51 * store the persistent messages.
52 */
53 public File getMessageStore();
54
55 /**
56 * @return a file object pointing to a file where mom4j can
57 * store the durable subscriptions.
58 * @see org.mom4j.ostore.ObjectStore
59 */
60 public File getDurablesStore();
61
62 /**
63 * @return the poll-interval in milliseconds the client will use for synchronous
64 * operations such as receive() or recieve(timeout)
65 */
66 public int getSyncInterval();
67
68 /**
69 * @return the poll-interval in milliseconds the client will use for asynchronous
70 * operations such as using a MessageListener
71 */
72 public int getAsyncInterval();
73
74 /**
75 * @return a list of Mom4jDestination objects
76 * @see org.mom4j.api.Mom4jDestination
77 */
78 public List getDestinations();
79
80 /**
81 * @return a list of JNDIContextHandler objects.
82 * @see org.mom4j.api.JNDIContextHandler
83 */
84 public List getContextHandlers();
85
86 }