01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2006 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or modify it
07: * under the terms of the GNU Lesser General Public License as published by the
08: * Free Software Foundation; either version 2.1 of the License, or any later
09: * version.
10: *
11: * This library is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14: * for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public License
17: * along with this library; if not, write to the Free Software Foundation,
18: * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19: * --------------------------------------------------------------------------
20: * $Id: DiscoveryState.java 8012 2006-02-14 08:17:23Z danesa $
21: * --------------------------------------------------------------------------
22: */package org.objectweb.jonas.discovery;
23:
24: /**
25: * This is a helper class that define the possible state attribute values
26: * in a DiscoveryEvent class instance.
27: * @author Adriana Danes
28: */
29: public class DiscoveryState {
30: /**
31: * Used when the DiscovetyEvent is emitted to notify a server start-up
32: */
33: public static final String RUNNING = "running";
34: /**
35: * Used when the DiscovetyEvent is emitted to notify a server shut-down
36: */
37: public static final String STOPPING = "stopping";
38: /**
39: *
40: */
41: public static final String STARTUP = "starting up";
42: /**
43: *
44: */
45: public static final String DUPLICATE_NAME = "duplicate server name found";
46: }
|