KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > ws7 > j2ee > WS70CommandType


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 /*
21  * WS70CommandType.java
22  */

23
24 package org.netbeans.modules.j2ee.sun.ws7.j2ee;
25 import javax.enterprise.deploy.shared.CommandType JavaDoc;
26
27 /**
28  * CommandType for the Webserver 70 commands like starting and stopping the
29  * Instances other than Admin Server
30  *
31  * @author Mukesh Garg
32  */

33 public class WS70CommandType extends CommandType JavaDoc {
34     /**
35       * The DeploymentManger action operation being processed is distribute.
36       */

37      public static final WS70CommandType DISTRIBUTE = new WS70CommandType(0);
38      /**
39       * The DeploymentManger action operation being processed is start.
40       */

41      public static final WS70CommandType START = new WS70CommandType(1);
42      /**
43       * The DeploymentManger action operation being processed is stop.
44       */

45      public static final WS70CommandType STOP = new WS70CommandType(2);
46      /**
47       * The DeploymentManger action operation being processed is undeploy.
48       */

49      public static final WS70CommandType UNDEPLOY = new WS70CommandType(3);
50      /**
51       * he DeploymentManger action operation being processed is redeploy.
52       */

53      public static final WS70CommandType REDEPLOY = new WS70CommandType(4);
54      
55      public static final WS70CommandType STARTTARGET = new WS70CommandType(11);
56      public static final WS70CommandType STOPTARGET = new WS70CommandType(12);
57      public static final WS70CommandType STARTTARGETDEBUG = new WS70CommandType(13);
58     
59      private static final CommandType JavaDoc[] enumValueTable = new CommandType JavaDoc[]{
60          DISTRIBUTE,
61          START,
62          STOP,
63          UNDEPLOY,
64          REDEPLOY,
65          STARTTARGET,
66          STOPTARGET,
67          STARTTARGETDEBUG
68      };
69
70      private static final String JavaDoc[] stringTable = new String JavaDoc[]{
71          "distribute",
72          "start",
73          "stop",
74          "undeploy",
75          "redeploy",
76          "starttarget",
77          "stoptarget",
78          "starttargetdebug"
79      };
80      private int value;
81      protected WS70CommandType(int value){
82          super(value);
83          this.value = value;
84      }
85 }
86
Popular Tags