01: package org.jacorb.poa;
02:
03: /*
04: * JacORB - a free Java ORB
05: *
06: * Copyright (C) 1997-2004 Gerald Brose.
07: *
08: * This library is free software; you can redistribute it and/or
09: * 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: /* request queue */
31: public final static int QUEUE_CAPACITY_INI = 10;
32: public final static int QUEUE_CAPACITY_INC = 10;
33:
34: /* shutdown states */
35: public final static int NOT_CALLED = 0;
36: public final static int SHUTDOWN_IN_PROGRESS = 1;
37: public final static int DESTRUCTION_APPARENT = 2;
38: public final static int DESTRUCTION_COMPLETE = 3;
39:
40: /* separator char for qualified poa names */
41: public final static char OBJECT_KEY_SEPARATOR = '/';
42: public final static byte OBJECT_KEY_SEP_BYTE = (byte) OBJECT_KEY_SEPARATOR;
43:
44: public final static byte MASK_BYTE = (byte) '&';
45: public final static byte MASK_MASK_BYTE = (byte) '&';
46: public final static byte SEPA_MASK_BYTE = (byte) '%';
47:
48: /* root POA name */
49: public final static String ROOT_POA_NAME = "RootPOA";
50:
51: /* poa states */
52: public final static int ACTIVE = 0;
53: public final static int HOLDING = 1;
54: public final static int DISCARDING = 2;
55: public final static int INACTIVE = 3;
56: public final static int DESTROYED = 4;
57: }
|