KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > management > server > DeployControllerMXBean


1 /*
2  * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Resin Open Source is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17  * of NON-INFRINGEMENT. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Resin Open Source; if not, write to the
22  *
23  * Free Software Foundation, Inc.
24  * 59 Temple Place, Suite 330
25  * Boston, MA 02111-1307 USA
26  *
27  * @author Scott Ferguson
28  */

29
30 package com.caucho.management.server;
31
32 import com.caucho.jmx.Description;
33 import com.caucho.jmx.Units;
34
35 import java.util.Date JavaDoc;
36
37 /**
38  * Management interface for the deploy controller.
39  */

40 public interface DeployControllerMXBean extends ManagedObjectMXBean
41 {
42   //
43
// Configuration
44
//
45

46   /**
47    * Returns the startup mode, one of "default", "automatic", "lazy", or "manual".
48    */

49   @Description("The configured startup-mode, one of `default', `automatic', `lazy', or `manual'")
50   public String JavaDoc getStartupMode();
51
52   /**
53    * Returns the redeploy mode, one of "default", "automatic", "lazy", or "manual".
54    */

55   @Description("The configured redeploy-mode, one of `default', `automatic', `lazy', or `manual'")
56   public String JavaDoc getRedeployMode();
57
58   /**
59    * Returns the interval between redploy checks.
60    */

61   @Description("The configured millisecond interval between checks for the need to redeploy")
62   @Units("milliseconds")
63   public long getRedeployCheckInterval();
64
65   //
66
// Lifecycle
67
//
68

69   /**
70    * Returns the controller's state.
71    */

72   @Description("The current lifecycle state")
73   public String JavaDoc getState();
74
75   /**
76    * Returns the time the controller was last started.
77    */

78   @Description("The current time of the last start")
79   public Date JavaDoc getStartTime();
80
81   //
82
// Operations
83
//
84

85   /**
86    * Starts the instance.
87    */

88   @Description("Start")
89   public void start()
90     throws Exception JavaDoc;
91
92   /**
93    * Stops the instance.
94    */

95   @Description("Stop")
96   public void stop()
97     throws Exception JavaDoc;
98
99   /**
100    * Restarts the instance.
101    */

102   @Description("Restart (Stop then Start)")
103   public void restart()
104     throws Exception JavaDoc;
105
106   /**
107    * Restarts the instance if any changes are detected.
108    */

109   @Description("Update")
110   public void update()
111     throws Exception JavaDoc;
112 }
113
Popular Tags