KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > deployment > cache > FileDeploymentStoreMBean


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.deployment.cache;
8
9 /**
10  * MBean interface.
11  * @todo Validate the urlMap
12  */

13 public interface FileDeploymentStoreMBean extends org.jboss.deployment.cache.DeploymentStoreMBean
14 {
15
16    /**
17     * Set the local directory where cache data will be stored.
18     * @param dir The local directory where cache data will be stored.
19     * @throws IOException File not found, not a directory, can't write...
20     */

21    void setDirectory(java.io.File JavaDoc dir) throws java.io.IOException JavaDoc;
22
23    /**
24     * Returns the local directory where cache data is stored.
25     * @return The local directory where cache data is stored.
26     */

27    java.io.File JavaDoc getDirectory();
28
29    /**
30     * Set the name of the local directory where cache data will be stored. <p>Invokes {@link #setDirectory}.
31     * @param dirname The name of the local directory where cache data will be stored.
32     * @throws IOException File not found, not a directory, can't write...
33     */

34    void setDirectoryName(java.lang.String JavaDoc dirname) throws java.io.IOException JavaDoc;
35
36    /**
37     * Get the name of the local directory where cache data is stored.
38     * @return The name of the local directory where cache data is stored.
39     */

40    java.lang.String JavaDoc getDirectoryName();
41
42    java.net.URL JavaDoc get(java.net.URL JavaDoc url);
43
44    java.net.URL JavaDoc put(java.net.URL JavaDoc url) throws java.lang.Exception JavaDoc;
45
46 }
47
Popular Tags