Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: mucode/MuConstants.java


1   /* mucode - A lightweight and flexible mobile code toolkit
2    * Copyright (C) 2000, Gian Pietro Picco
3    *  
4    * This library is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 2.1 of the License, or (at your option) any later version.
8    *  
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   * Lesser General Public License for more details.
13   * 
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this library; if not, write to the Free Software
16   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17   */
18  package mucode;
19  
20  
21  /**
22   * Package constants.
23   *
24   * @author <a href="mailto:picco@elet.polimi.it">Gian Pietro Picco</a>
25   * @version 1.0
26   */
27  public interface MuConstants {
28    
29    /** The name of the package. */
30    static final String PACKAGE_NAME = "mucode";  
31    /** Conventional value for a parameter. */
32    static final int UNKNOWN = -1;
33  
34    /** Property key. */
35    static final String PORTkey = "port";
36    /** Property key. */
37    static final String TIMEOUTkey = "timeout";
38    /** Property key. */
39    static final String COMPRESSIONkey = "compression";
40    /** Property key. */
41    static final String ERRORSkey = "errors";
42    /** Property key. */
43    static final String MESSAGESkey = "messages";
44    /** Property key. */
45    static final String DEBUGkey = "debug";
46    /** Property key. */
47    static final String UBICLASSESkey = "ubiclasses";
48    /** Property key. */
49    static final String UBIPACKAGESkey = "ubipackages";
50  
51    /** Default value for the connection timeout. */
52    static final long TIMEOUT = 30000;
53    /** Default value for the port where a <i>&micro;</i>Server is listening for
54        incoming groups. */
55    static final int SERVER_PORT = 1968;
56  
57    static final int GROUP = 1;
58    static final int DYN_LINK = 2;
59  
60    static final int OK = 0;
61    static final int REMOTE_ERROR = -1;
62  }