KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > autodeploy > AutoDeployConstants


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * AutoDeployConstants.java
26  *
27  * Created on February 27, 2003, 12:00 AM
28  */

29
30 package com.sun.enterprise.deployment.autodeploy;
31
32 /**
33  *constants detail
34  *
35  * @author vikas
36  */

37 public class AutoDeployConstants {
38     
39     /**
40      * Starting delay between AutoDeployTask activation and actual deployment.
41      */

42     public static final long STARTING_DELAY=30; //sec
43
/**
44      * Max tardiness between schedule and actual execution of task.
45      */

46     public static final long MAX_TARDINESS= 10; //sec
47
/**
48      * Max tardiness between schedule and actual execution of task.
49      */

50     public static final long MIN_POOLING_INTERVAL= 2; //sec
51

52     /**
53      * Default autodeploy dir set to "autodeploy" relative to server root
54      */

55     public static final String JavaDoc DEFAULT_AUTODEPLOY_DIR = "autodeploy";
56
57     /**
58      * Default polling interval set to 2sec
59      */

60     public static final long DEFAULT_POLLING_INTERVAL = 2; //sec
61

62     /**
63      * Extension of file, after successful deployment
64      */

65     public static final String JavaDoc DEPLOYED="_deployed";
66     /**
67      * Extension of file, if deployment fails
68      */

69     public static final String JavaDoc NOTDEPLOYED="_notdeployed";
70
71 /**
72      * common deploy action
73      */

74     public static final String JavaDoc DEPLOY_METHOD = "deploy";
75     /**
76      * common undeploy action
77      */

78     public static final String JavaDoc UNDEPLOY_METHOD = "undeploy";
79
80     public static final String JavaDoc DEPLOY_FAILED = "_deployFailed";
81     public static final String JavaDoc UNDEPLOYED = "_undeployed";
82     public static final String JavaDoc UNDEPLOY_FAILED = "_undeployFailed";
83     
84     public static final String JavaDoc EAR_EXTENSION = "ear";
85     public static final String JavaDoc JAR_EXTENSION = "jar";
86     public static final String JavaDoc WAR_EXTENSION = "war";
87     public static final String JavaDoc RAR_EXTENSION = "rar";
88     public static final String JavaDoc ALL_EXTENSION = "all";
89         
90 }
91
Popular Tags