01: /*
02: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
03: *
04: * This file is part of Resin(R) Open Source
05: *
06: * Each copy or derived work must preserve the copyright notice and this
07: * notice unmodified.
08: *
09: * 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 extends DeployMXBean {
36: @Description("The configured millisecond interval between checks for new archives")
37: @Units("milliseconds")
38: public long getDependencyCheckInterval();
39:
40: @Description("The configured directory where archive files are found")
41: public String getArchiveDirectory();
42:
43: @Description("The configured extension used to recognize archive files")
44: public String getExtension();
45:
46: @Description("The configured directory where archives should be expanded")
47: public String getExpandDirectory();
48:
49: @Description("The configured prefix to use for the subdirectory created in the expand directory")
50: public String getExpandPrefix();
51:
52: @Description("The configured suffix to use for the subdirectory created in the expand directory")
53: public String getExpandSuffix();
54:
55: @Description("Returns the location for deploying an archive with the specified name")
56: public String getArchivePath(
57: @Description("The archive name, without a file extension")
58: String 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 getExpandPath(
62: @Description("The archive name, without a file extension")
63: String name);
64:
65: @Description("Start the resource associated with the archive")
66: public void start(
67: @Description("The archive name, without a file extension")
68: String name);
69:
70: @Description("Stop the resource associated with the archive")
71: public void stop(
72: @Description("The archive name, without a file extension")
73: String name);
74:
75: @Description("Stop the resource associated with the archive and delete the archive")
76: public void undeploy(
77: @Description("The archive name, without a file extension")
78: String name);
79:
80: @Description("Returns a list of the current set of archive names")
81: public String[] getNames();
82:
83: @Description("Returns an exception for the named archive or null if there is no exception")
84: public Throwable getConfigException(
85: @Description("The archive name, without a file extension")
86: String name);
87: }
|