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 dir) throws java.io.IOException; 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 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 dirname) throws java.io.IOException; 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 getDirectoryName(); 41 42 java.net.URL get(java.net.URL url); 43 44 java.net.URL put(java.net.URL url) throws java.lang.Exception; 45 46 } 47