|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.cache.FileDeploymentStore
A local file based DeploymentStore
(src) .
Field Summary | |
protected java.io.File |
dir
The local directory where cache data will be stored. |
protected java.io.File |
mapFile
The file where the mapping is located. |
protected java.util.Map |
urlMap
The URL to local file mapping. |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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(java.net.URL source,
java.io.File dest)
Copy the data at the given source URL to the given file. |
protected void |
createService()
Setup the url map. |
java.net.URL |
get(java.net.URL url)
Get the stored URL for the given deployment URL. |
java.io.File |
getDirectory()
Returns the local directory where cache data is stored. |
java.lang.String |
getDirectoryName()
Get the name of the local directory where cache data is stored. |
protected java.net.URL |
getURLFromFile(java.io.File file)
|
java.net.URL |
put(java.net.URL url)
Put a deployment URL into storage. |
protected java.util.Map |
readMap()
Read the url map from serialized state. |
void |
setDirectory(java.io.File dir)
Set the local directory where cache data will be stored. |
void |
setDirectoryName(java.lang.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 (src) |
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 (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.File dir
protected java.io.File mapFile
protected java.util.Map urlMap
Constructor Detail |
public FileDeploymentStore()
Method Detail |
public void setDirectory(java.io.File dir) throws java.io.IOException
dir
- The local directory where cache data will be stored.
java.io.IOException
- File not found, not a directory, can't write...public java.io.File getDirectory()
public void setDirectoryName(java.lang.String dirname) throws java.io.IOException
Invokes setDirectory(java.io.File)
.
dirname
- The name of the local directory where cache data will be stored.
java.io.IOException
- File not found, not a directory, can't write...public java.lang.String getDirectoryName()
protected java.net.URL getURLFromFile(java.io.File file)
public java.net.URL get(java.net.URL url)
DeploymentStore (src)
get
in interface DeploymentStore (src)
url
- The original deployment URL.
public java.net.URL put(java.net.URL url) throws java.lang.Exception
DeploymentStore (src)
If there is already a stored URL it will be overwritten.
put
in interface DeploymentStore (src)
url
- The original deployment URL.
java.lang.Exception
- Failed to put deployment URL into the store.protected void copyURL(java.net.URL source, java.io.File dest) throws java.io.IOException
java.io.IOException
protected java.util.Map readMap() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
protected void writeMap() throws java.io.IOException
java.io.IOException
protected void createService() throws java.lang.Exception
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |