|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
org.jboss.system.server.profileservice.repository.BasicDeploymentRepository
public class BasicDeploymentRepository
A basic deployment repository.
Field Summary |
---|
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository |
---|
ignoreFlags |
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource |
---|
log, uris |
Constructor Summary | |
---|---|
BasicDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key,
URI[] uris)
|
Method Summary | |
---|---|
void |
addDeployment(String vfsPath,
org.jboss.profileservice.spi.ProfileDeployment d)
Add a deployment to this profile source. |
String |
addDeploymentContent(String vfsPath,
InputStream contentIS)
|
String |
addDeploymentContent(String vfsPath,
InputStream contentIS,
org.jboss.profileservice.spi.DeploymentOption... options)
|
protected void |
cleanUpRoot(org.jboss.virtual.VirtualFile vf)
A way for the hot-deployment repository to cleanup the root (modification checker). |
Collection<org.jboss.profileservice.spi.ModificationInfo> |
getModifiedDeployments()
|
URI |
getUploadUri()
|
protected void |
internalAddDeployment(String vfsPath,
org.jboss.profileservice.spi.ProfileDeployment deployment)
Internal add the deployment, without locking the repository. |
boolean |
isFailIfAlreadyExists()
|
void |
load()
|
protected void |
lockRead()
Lock for read |
protected void |
lockWrite()
Lock for write |
void |
remove()
|
org.jboss.profileservice.spi.ProfileDeployment |
removeDeployment(String vfsPath)
Remove a deployment from this source. |
protected org.jboss.profileservice.spi.ProfileDeployment |
removeDeployment(String vfsPath,
boolean deleteFile)
Remove deployment. |
void |
setFailIfAlreadyExists(boolean failIfAlreadyExists)
|
void |
setUploadUri(URI uploadUri)
|
protected void |
unlockRead()
Unlock for read |
protected void |
unlockWrite()
Unlock for write |
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository |
---|
acceptsDeployment, clearDeploymentContentFlags, create, getDeployment, getDeploymentContent, getDeploymentContentFlags, getProfileKey, getRepositoryNames, hasDeploymentContentFlags, lockDeploymentContent, setDeploymentContentFlags, unload, unlockDeploymentContent |
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource |
---|
addedDeployment, addedDeployments, addVirtualFileCache, createDeployment, destroy, findDeploymentContent, getCachedVirtualFile, getCachedVirtualFile, getDeploymentFilter, getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs, isRecursiveScan, loadApplications, setDeploymentFilter, setRecursiveScan, updateLastModfied |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.profileservice.spi.DeploymentRepository |
---|
getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs |
Constructor Detail |
---|
public BasicDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key, URI[] uris)
Method Detail |
---|
public boolean isFailIfAlreadyExists()
public void setFailIfAlreadyExists(boolean failIfAlreadyExists)
public URI getUploadUri()
public void setUploadUri(URI uploadUri)
public void load() throws Exception
Exception
public void addDeployment(String vfsPath, org.jboss.profileservice.spi.ProfileDeployment d) throws Exception
AbstractVFSProfileSource
addDeployment
in interface org.jboss.profileservice.spi.DeploymentRepository
addDeployment
in class AbstractVFSProfileSource
vfsPath
- the deployment named
- the deployment
Exception
public Collection<org.jboss.profileservice.spi.ModificationInfo> getModifiedDeployments() throws Exception
Exception
public String addDeploymentContent(String vfsPath, InputStream contentIS) throws IOException
IOException
public String addDeploymentContent(String vfsPath, InputStream contentIS, org.jboss.profileservice.spi.DeploymentOption... options) throws IOException
IOException
public org.jboss.profileservice.spi.ProfileDeployment removeDeployment(String vfsPath) throws Exception
AbstractVFSProfileSource
removeDeployment
in interface org.jboss.profileservice.spi.DeploymentRepository
removeDeployment
in class AbstractDeploymentRepository
vfsPath
- the deployment name
Exception
protected void internalAddDeployment(String vfsPath, org.jboss.profileservice.spi.ProfileDeployment deployment) throws Exception
vfsPath
- - the name of the deploymentdeployment
- - the deployment
Exception
protected org.jboss.profileservice.spi.ProfileDeployment removeDeployment(String vfsPath, boolean deleteFile) throws Exception
vfsPath
- the vfs pathdeleteFile
- do we delete the file
Exception
- for any errorprotected void cleanUpRoot(org.jboss.virtual.VirtualFile vf)
vf
- the deployment rootpublic void remove() throws Exception
Exception
protected void lockRead()
protected void unlockRead()
protected void lockWrite()
protected void unlockWrite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |