1 // Copyright (c) 2000 Just Objects B.V. <just@justobjects.nl>
2 // Distributable under LGPL license. See terms of license at gnu.org.
3 
4 package nl.justobjects.pushlet.core;
5 
6 
7 /**
8  * Definition of config property strings.
9  *
10 * @author Just van den Broecke - Just Objects &copy;
11 * @version $Id: ConfigDefs.java,v 1.9 2007/12/07 12:57:40 justb Exp $
12 */
13public interface ConfigDefs {
14    /**
15     * Class factory definitions, used to insert your custom classes.
16     */
17    public static final String CONTROLLER_CLASS = "controller.class";
18    public static final String DISPATCHER_CLASS = "dispatcher.class";
19    public static final String LOGGER_CLASS = "logger.class";
20    public static final String SESSION_MANAGER_CLASS = "sessionmanager.class";
21    public static final String SESSION_CLASS = "session.class";
22    public static final String SUBSCRIBER_CLASS = "subscriber.class";
23    public static final String SUBSCRIPTION_CLASS = "subscription.class";
24
25    /**
26     * Session management.
27     */
28    public static final String SESSION_ID_SIZE = "session.id.size";
29    public static final String SESSION_ID_GENERATION = "session.id.generation";
30    public static final String SESSION_ID_GENERATION_UUID = "uuid";
31    public static final String SESSION_ID_GENERATION_RANDOMSTRING = "randomstring";
32    public static final String SESSION_TIMEOUT_MINS = "session.timeout.mins";
33
34    public static final String SOURCES_ACTIVATE = "sources.activate";
35
36    /**
37     * Logging
38     */
39    public static final String LOG_LEVEL = "log.level";
40    public static final int LOG_LEVEL_FATAL = 1;
41    public static final int LOG_LEVEL_ERROR = 2;
42    public static final int LOG_LEVEL_WARN = 3;
43    public static final int LOG_LEVEL_INFO = 4;
44    public static final int LOG_LEVEL_DEBUG = 5;
45    public static final int LOG_LEVEL_TRACE = 6;
46
47    /**
48     * Queues
49     */
50    public static final String QUEUE_SIZE = "queue.size";
51    public static final String QUEUE_READ_TIMEOUT_MILLIS = "queue.read.timeout.millis";
52    public static final String QUEUE_WRITE_TIMEOUT_MILLIS = "queue.write.timeout.millis";
53
54    /**
55     * Listening modes.
56     */
57    public static final String LISTEN_FORCE_PULL_ALL = "listen.force.pull.all";
58    public static final String LISTEN_FORCE_PULL_AGENTS = "listen.force.pull.agents";
59
60
61    public static final String PULL_REFRESH_TIMEOUT_MILLIS = "pull.refresh.timeout.millis";
62    public static final String PULL_REFRESH_WAIT_MIN_MILLIS = "pull.refresh.wait.min.millis";
63    public static final String PULL_REFRESH_WAIT_MAX_MILLIS = "pull.refresh.wait.max.millis";
64
65
66    public static final String POLL_REFRESH_TIMEOUT_MILLIS = "poll.refresh.timeout.millis";
67    public static final String POLL_REFRESH_WAIT_MIN_MILLIS = "poll.refresh.wait.min.millis";
68    public static final String POLL_REFRESH_WAIT_MAX_MILLIS = "poll.refresh.wait.max.millis";
69
70}
71
72/*
73  * $Log: ConfigDefs.java,v $
74  * Revision 1.9  2007/12/07 12:57:40  justb
75  * added log4j and make it the default logging method
76  *
77  * Revision 1.8  2007/11/23 21:10:17  justb
78  * add hooks for custom logging (you can override DefaultLogger in pushlet.properties)
79  *
80  * Revision 1.7  2007/11/23 14:33:07  justb
81  * core classes now configurable through factory
82  *
83  * Revision 1.6  2007/11/10 14:48:35  justb
84  * make session key generation configurable (can use uuid)
85  *
86  * Revision 1.5  2005/02/28 09:14:55  justb
87  * sessmgr/dispatcher factory/singleton support
88  *
89  * Revision 1.4  2005/02/21 16:59:00  justb
90  * SessionManager and session lease introduced
91  *
92  * Revision 1.3  2005/02/21 11:50:46  justb
93  * ohase1 of refactoring Subscriber into Session/Controller/Subscriber
94  *
95  * Revision 1.2  2005/02/21 11:16:44  justb
96  * add log level config prop
97  *
98  * Revision 1.1  2005/02/18 12:36:47  justb
99  * changes for renaming and configurability
00  *
01  *
02  *
03  */
04
05