|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.cache.FileDeploymentStore
A local file based DeploymentStore.
| Field Summary | |
protected File |
dir
The local directory where cache data will be stored. |
protected File |
mapFile
The file where the mapping is located. |
protected Map |
urlMap
The URL to local file mapping. |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
FileDeploymentStore()
|
|
| Method Summary | |
protected void |
copyURL(URL source,
File dest)
Copy the data at the given source URL to the given file. |
protected void |
createService()
Setup the url map. |
URL |
get(URL url)
Get the stored URL for the given deployment URL. |
File |
getDirectory()
Returns the local directory where cache data is stored. |
String |
getDirectoryName()
Get the name of the local directory where cache data is stored. |
protected URL |
getURLFromFile(File file)
|
URL |
put(URL url)
Put a deployment URL into storage. |
protected Map |
readMap()
Read the url map from serialized state. |
void |
setDirectory(File dir)
Set the local directory where cache data will be stored. |
void |
setDirectoryName(String dirname)
Set the name of the local directory where cache data will be stored. |
protected void |
writeMap()
Write the url map to serialized state. |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
| Field Detail |
protected File dir
protected File mapFile
protected Map urlMap
| Constructor Detail |
public FileDeploymentStore()
| Method Detail |
public void setDirectory(File dir) throws IOException
setDirectory in interface FileDeploymentStoreMBeandir - The local directory where cache data will be stored.
IOException - File not found, not a directory, can't write...public File getDirectory()
getDirectory in interface FileDeploymentStoreMBeanpublic void setDirectoryName(String dirname) throws IOException
Invokes setDirectory(java.io.File).
setDirectoryName in interface FileDeploymentStoreMBeandirname - The name of the local directory where cache data will be stored.
IOException - File not found, not a directory, can't write...public String getDirectoryName()
getDirectoryName in interface FileDeploymentStoreMBeanprotected URL getURLFromFile(File file)
public URL get(URL url)
DeploymentStore
get in interface DeploymentStoreurl - The original deployment URL.
public URL put(URL url) throws Exception
DeploymentStoreIf there is already a stored URL it will be overwritten.
put in interface DeploymentStoreurl - The original deployment URL.
Exception - Failed to put deployment URL into the store.protected void copyURL(URL source, File dest) throws IOException
IOExceptionprotected Map readMap() throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
protected void writeMap()
throws IOException
IOException
protected void createService()
throws Exception
createService in class ServiceMBeanSupportException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||