KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > poa > POAConstants


1 package org.jacorb.poa;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2004 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22
23 /**
24  * This class collects all POA related constants.
25  *
26  * @author Reimo Tiedemann, FU Berlin
27  * @version $Id: POAConstants.java,v 1.12 2004/05/06 12:40:00 nicolas Exp $
28  */

29 public class POAConstants
30 {
31     /* request queue */
32     public final static int QUEUE_CAPACITY_INI = 10;
33     public final static int QUEUE_CAPACITY_INC = 10;
34
35     /* shutdown states */
36     public final static int NOT_CALLED = 0;
37     public final static int SHUTDOWN_IN_PROGRESS = 1;
38     public final static int DESTRUCTION_APPARENT = 2;
39     public final static int DESTRUCTION_COMPLETE = 3;
40
41     /* separator char for qualified poa names */
42     public final static char OBJECT_KEY_SEPARATOR = '/';
43     public final static byte OBJECT_KEY_SEP_BYTE = (byte)OBJECT_KEY_SEPARATOR;
44
45     public final static byte MASK_BYTE = (byte) '&';
46     public final static byte MASK_MASK_BYTE = (byte) '&';
47     public final static byte SEPA_MASK_BYTE = (byte) '%';
48
49     /* root POA name */
50     public final static String JavaDoc ROOT_POA_NAME = "RootPOA";
51
52     /* poa states */
53     public final static int ACTIVE = 0;
54     public final static int HOLDING = 1;
55     public final static int DISCARDING = 2;
56     public final static int INACTIVE = 3;
57     public final static int DESTROYED = 4;
58 }
59
Popular Tags