KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > server > ServerConfig


1 package com.ubermq.jms.server;
2
3 /**
4  * Contains configuration properties for the JMS server.
5  */

6 public class ServerConfig
7 {
8     private ServerConfig() {}
9
10     ///////////// GENERAL
11

12     /**
13      * This configuration property specifies the location of the
14      * server log file, to keep settings across instances.
15      */

16     public static final String JavaDoc LOG_FILE = "server.logfile";
17
18     /**
19      * The number of read/write threads running on the server.
20      * This should generally be 2 * number_of_processors, but is
21      * set to 2 by default.
22      */

23     public static final String JavaDoc RW_THREAD_COUNT = "server.rwthreads";
24
25     /**
26      * The class providing a datagram factory instance.
27      * The specified class should have a public no-arg constructor or
28      * a static method <code>getInstance</code> that will be used
29      * to retrieve an instance of the object. It must also implement
30      * IDatagramFactory and IAckDatagramFactory.
31      * @see com.ubermq.jms.common.datagram.IDatagramFactory,
32      * com.ubermq.jms.server.datagram.IAckDatagramFactory
33      */

34     public static final String JavaDoc DATAGRAM_FACTORY_CLASS = "server.datagramfactory";
35
36     ///////////// ADMIN
37

38     /**
39      * The administrative port. Administrative connections will be made
40      * initially to this port.
41      */

42     public static final String JavaDoc ADMIN_PORT = "server.admin.port";
43
44     /**
45      * Whether to enable administration. The default is true.
46      */

47     public static final String JavaDoc ADMIN_ENABLE = "server.admin.enable";
48
49     /**
50      * The RMI name of the administrative service for this server. This allows
51      * multiple UberMQ administrative services to run on the same machine
52      * and the same port.
53      */

54     public static final String JavaDoc ADMIN_SERVICE_NAME = "server.admin.name";
55
56     /**
57      * A comma-separated list of host regular expressions to allow to
58      * administer the server.<P>
59      * Currently not implemented.
60      */

61     public static final String JavaDoc ADMIN_HOSTS_ALLOW = "server.admin.hosts.allow";
62
63     /**
64      * A comma-separated list of regular expressions of hosts that should be denied
65      * administrative privileges.<P>
66      * Currently not implemented.
67      */

68     public static final String JavaDoc ADMIN_HOSTS_DENY = "server.admin.hosts.deny";
69
70     ///////////// CLUSTERING
71

72     /**
73      * Set to true to enable clustering for this server.
74      */

75     public static final String JavaDoc CLUSTER_ENABLE = "cluster.enable";
76
77     /**
78      * Specify the name of the cluster.
79      */

80     public static final String JavaDoc CLUSTER_NAME = "cluster.name";
81
82     /**
83      * The topic that we should subscribe to when generating a cluster. The default is #, or everything.
84      */

85     public static final String JavaDoc CONFIG_CLUSTERING_SUBSCRIPTION = "cluster.subscription";
86
87     /**
88      * Specify the cluster membership implementation. The class specified
89      * must implement <code>ClusterMembership</code>.
90      */

91     public static final String JavaDoc CLUSTER_IMPLEMENTATION = "cluster.impl";
92
93     ///////////// DURABLE SUBSCRIPTIONS
94

95     /**
96      * the path to store durable subscription log files.
97      */

98     public static final String JavaDoc DURABLE_LOG_PATH = "server.durable.logpath";
99
100     /**
101      * the prefix with which to name durable subscriptions
102      */

103     public static final String JavaDoc DURABLE_LOG_FILE_PREFIX = "server.durable.logprefix";
104
105     /**
106      * the size of a durable subscriber's log file.
107      */

108     public static final String JavaDoc DURABLE_LOG_SIZE = "server.durable.logsize";
109
110
111     ///////////// DATAGRAM PROCESSOR
112

113     /**
114      * initial overflow timeout (ms).
115      */

116     public static final String JavaDoc DGP_INITIAL_TIMEOUT = "server.dgram.initialtimeout";
117
118     /**
119      * the number we multiply the initial timeout by to get the next timeout
120      * interval
121      */

122     public static final String JavaDoc DGP_BACKOFF_MULTIPLIER = "server.dgram.backoff";
123
124     /**
125      * the maximum timeout we will ever wait (ms). Set this to a reasonable value please.
126      */

127     public static final String JavaDoc DGP_MAXIMUM_TIMEOUT = "server.dgram.maximumtimeout";
128
129     /**
130      * whether our clients care about ACK packets or not. This should usually be true
131      * to throttle publishers to a reasonable pace.
132      */

133     public static final String JavaDoc DGP_SHOULD_SEND_ACKS = "server.dgram.sendacks";
134
135     /**
136      * or, an alternative class name of an implementation of IOverflowHandler
137      * we instantiate the class named below and pass in the initialization argument
138      * to a constructor (String).
139      *
140      * Overflow handlers MUST be immutable. they must not keep any state.
141      * @see IOverflowHandler
142      */

143     public static final String JavaDoc DGP_OVERFLOW_HANDLER = "server.dgram.overflowhandler.class";
144     public static final String JavaDoc DGP_OVERFLOW_HANDLER_INIT = "server.dgram.overflowhandler.init";
145
146
147     ////////////////////////// SSL
148

149     /**
150      * Whether to enable SSL support.
151      */

152     public static final String JavaDoc SSL_ENABLE = "server.ssl.enable";
153
154     /**
155      * The port that will host SSL connections.
156      */

157     public static final String JavaDoc SSL_PORT = "server.ssl.port";
158
159     /**
160      * The local IP to bind to
161      */

162     public static final String JavaDoc SSL_BIND_ADDRESS = "server.ssl.bindAddress";
163
164     /**
165      * The location of the keystore that contains the private key
166      * and certificate for this SSL server.
167      */

168     public static final String JavaDoc SSL_KEYSTORE = "server.ssl.keystore";
169
170     /**
171      * The password associated with the keystore for obtaining private keys.
172      */

173     public static final String JavaDoc SSL_KEYSTORE_PASSWORD = "server.ssl.keystore.password";
174
175     /**
176      * The keystore type
177      */

178     public static final String JavaDoc SSL_KEYSTORE_TYPE = "server.ssl.keystore.type";
179 }
180
Popular Tags