KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > Global


1 package org.jgroups;
2
3 /**
4  * @author Bela Ban Mar 29, 2004
5  * @version $Id: Global.java,v 1.3 2005/04/15 12:37:19 belaban Exp $
6  */

7 public class Global {
8     /** Allows for conditional compilation, e.g. if(log.isTraceEnabled()) if(log.isInfoEnabled()) log.info(...) would be removed from the code
9     (if recompiled) when this flag is set to false. Therefore, code that should be removed from the final
10     product should use if(log.isTraceEnabled()) rather than .
11     */

12     public static final boolean debug=false;
13
14     /**
15      * Used to determine whether to copy messages (copy=true) in retransmission tables,
16      * or whether to use references (copy=false). Once copy=false has worked for some time, this flag
17      * will be removed entirely
18      */

19     public static final boolean copy=false;
20     
21
22     public static final int BYTE_SIZE = 1;
23     public static final int SHORT_SIZE = 2;
24     public static final int INT_SIZE = 4;
25     public static final int LONG_SIZE = 8;
26 }
27
Popular Tags