01: package org.jgroups;
02:
03: /**
04: * Globals used by JGroups packages.
05: *
06: * @author Bela Ban Mar 29, 2004
07: * @version $Id: Global.java,v 1.14 2006/09/11 14:09:52 belaban Exp $
08: */
09: public class Global {
10: /** Allows for conditional compilation; e.g., if(log.isTraceEnabled()) if(log.isInfoEnabled()) log.info(...) would be removed from the code
11: (if recompiled) when this flag is set to false. Therefore, code that should be removed from the final
12: product should use if(log.isTraceEnabled()) rather than .
13: */
14: public static final boolean debug = false;
15:
16: /**
17: * Used to determine whether to copy messages (copy=true) in retransmission tables,
18: * or whether to use references (copy=false). Once copy=false has worked for some time, this flag
19: * will be removed entirely
20: */
21: public static final boolean copy = false;
22:
23: public static final String THREAD_PREFIX = " (channel=";
24:
25: public static final int BYTE_SIZE = 1;
26: public static final int SHORT_SIZE = 2;
27: public static final int INT_SIZE = 4;
28: public static final int LONG_SIZE = 8;
29:
30: public static final String BIND_ADDR = "jgroups.bind_addr";
31: public static final String BIND_ADDR_OLD = "bind.address";
32: public static final String IGNORE_BIND_ADDRESS_PROPERTY = "jgroups.ignore.bind_addr";
33: public static final String IGNORE_BIND_ADDRESS_PROPERTY_OLD = "ignore.bind.address";
34: public static final String MARSHALLING_COMPAT = "jgroups.marshalling.compatible";
35:
36: public static final String TCPPING_INITIAL_HOSTS = "jgroups.tcpping.initial_hosts";
37:
38: public static final String UDP_MCAST_ADDR = "jgroups.udp.mcast_addr";
39: public static final String UDP_MCAST_PORT = "jgroups.udp.mcast_port";
40: public static final String UDP_IP_TTL = "jgroups.udp.ip_ttl";
41:
42: public static final String MPING_MCAST_ADDR = "jgroups.mping.mcast_addr";
43: public static final String MPING_MCAST_PORT = "jgroups.mping.mcast_port";
44: public static final String MPING_IP_TTL = "jgroups.mping.ip_ttl";
45:
46: public static final String MAGIC_NUMBER_FILE = "jgroups.conf.magic_number_file";
47: public static final String RESOLVE_DNS = "jgroups.resolve_dns";
48:
49: public static final String CHANNEL_LOCAL_ADDR_TIMEOUT = "jgroups.channel.local_addr_timeout";
50:
51: public static final String SCHEDULER_MAX_THREADS = "jgroups.scheduler.max_threads";
52: }
|