KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > kernel > state > State


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.kernel.state;
10
11 /**
12  * Service states.
13  *
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.2 $
16  */

17 public class State
18 {
19
20    /**
21     * The service implementation is not yet present.
22     */

23    public static final State UNREGISTERED = new State("unregistered");
24
25    /**
26     * The service implementation is present.
27     */

28    public static final State REGISTERED = new State("registered");
29
30    /**
31     * stopped == destroyed
32     */

33    public static final State STOPPED = new State("stopped");
34
35    /**
36     * The service is running
37     */

38    public static final State STARTED = new State("started");
39
40    /**
41     * Failed.
42     */

43    public static final State FAILED = new State("failed");
44
45    private String JavaDoc name;
46
47    private State(String JavaDoc name)
48    {
49       this.name = name;
50    }
51
52    public String JavaDoc toString()
53    {
54       return name;
55    }
56 }
57
Popular Tags