KickJava   Java API By Example, From Geeks To Geeks.

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


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 Sam
28  */

29
30 package com.caucho.management.server;
31
32 import com.caucho.jmx.Description;
33 import com.caucho.jmx.Units;
34
35 public interface ArchiveDeployMXBean
36   extends DeployMXBean
37 {
38   @Description("The configured millisecond interval between checks for new archives")
39   @Units("milliseconds")
40   public long getDependencyCheckInterval();
41
42   @Description("The configured directory where archive files are found")
43   public String JavaDoc getArchiveDirectory();
44
45   @Description("The configured extension used to recognize archive files")
46   public String JavaDoc getExtension();
47
48   @Description("The configured directory where archives should be expanded")
49   public String JavaDoc getExpandDirectory();
50
51   @Description("The configured prefix to use for the subdirectory created in the expand directory")
52   public String JavaDoc getExpandPrefix();
53
54   @Description("The configured suffix to use for the subdirectory created in the expand directory")
55   public String JavaDoc getExpandSuffix();
56
57   @Description("Returns the location for deploying an archive with the specified name")
58   public String JavaDoc getArchivePath(@Description("The archive name, without a file extension") String JavaDoc name);
59
60   @Description("Returns the location of an expanded archive, or null if no archive with the passed name is deployed")
61   public String JavaDoc getExpandPath(@Description("The archive name, without a file extension") String JavaDoc name);
62
63   @Description("Start the resource associated with the archive")
64   public void start(@Description("The archive name, without a file extension") String JavaDoc name);
65
66   @Description("Stop the resource associated with the archive")
67   public void stop(@Description("The archive name, without a file extension") String JavaDoc name);
68
69   @Description("Stop the resource associated with the archive and delete the archive")
70   public void undeploy(@Description("The archive name, without a file extension") String JavaDoc name);
71
72   @Description("Returns a list of the current set of archive names")
73   public String JavaDoc[] getNames();
74
75   @Description("Returns an exception for the named archive or null if there is no exception")
76   public Throwable JavaDoc getConfigException(@Description("The archive name, without a file extension") String JavaDoc name);
77 }
78
Popular Tags