KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > kernel > ConfigConstants


1 package com.ubermq.kernel;
2
3 import java.io.*;
4 import java.util.*;
5
6 /**
7  * A shell class that contains property key constants for use
8  * with the Configurator.
9  */

10 public class ConfigConstants
11 {
12     /**
13      * The standard name for a server Configuration file.
14      */

15     public static final String JavaDoc DEFAULT_PROPS_FILE = "server.properties";
16
17     /////////////// GENERAL
18

19     /**
20      * the TCP port for a Socket-based server to listen on.
21      */

22     public static final String JavaDoc SERVER_PORT = "server.port";
23
24     /**
25      * the bind address for the Socket-based server to listen on.
26      */

27     public static final String JavaDoc SERVER_BIND_ADDRESS = "server.bindAddress";
28
29
30     /**
31      * The size of the read and write buffers on a per connection
32      * basis. This is also the maximum size of a datagram.
33      */

34     public static final String JavaDoc GENERAL_CONNECTION_BUFFER_SIZE = "general.connection.buffer";
35
36     /**
37      * The above buffer size is divided by this value, the position at which the buffered
38      * information is transferred to the channel. Typically 2.
39      */

40     public static final String JavaDoc GENERAL_CONNECTION_FLUSH_DIVISOR = "general.connection.flushdivisor";
41 }
42
Popular Tags