Package org.jboss.as.server.mgmt.domain
Class RemoteFileRepositoryService
- java.lang.Object
-
- org.jboss.as.server.mgmt.domain.RemoteFileRepositoryService
-
- All Implemented Interfaces:
ContentRepository,DeploymentFileRepository,org.jboss.msc.Service,org.jboss.msc.service.Service<ContentRepository>,org.jboss.msc.value.Value<ContentRepository>
public class RemoteFileRepositoryService extends Object implements org.jboss.msc.service.Service<ContentRepository>
- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.repository.ContentRepository
ContentRepository.Factory
-
-
Field Summary
-
Fields inherited from interface org.jboss.as.repository.ContentRepository
DELETED_CONTENT, LOCK_TIMEOUT, MARKED_CONTENT, OBSOLETE_CONTENT_TIMEOUT, SERVICE_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]addContent(InputStream stream)voidaddContentReference(ContentReference reference)byte[]addContentToExploded(byte[] deploymentHash, List<ExplodedContent> addFiles, boolean overwrite)static voidaddService(org.jboss.msc.service.ServiceTarget target, File localDeploymentContentsFolder, File localTmpFolder)Map<String,Set<String>>cleanObsoleteContent()voidcopyExplodedContent(byte[] hash, Path target)voidcopyExplodedContentFiles(byte[] deploymentHash, List<String> relativePaths, Path target)voiddeleteDeployment(ContentReference reference)byte[]explodeContent(byte[] hash)byte[]explodeSubContent(byte[] deploymentHash, String relativePath)org.jboss.vfs.VirtualFilegetContent(byte[] hash)File[]getDeploymentFiles(ContentReference reference)FilegetDeploymentRoot(ContentReference reference)ContentRepositorygetValue()booleanhasContent(byte[] hash)List<ContentRepositoryElement>listContent(byte[] deploymentHash, String path, ContentFilter filter)TypedInputStreamreadContent(byte[] deploymentHash, String path)voidremoveContent(ContentReference reference)byte[]removeContentFromExploded(byte[] deploymentHash, List<String> paths)voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)booleansyncContent(ContentReference reference)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.repository.ContentRepository
flush, readOnly, readWrite
-
-
-
-
Method Detail
-
addService
public static void addService(org.jboss.msc.service.ServiceTarget target, File localDeploymentContentsFolder, File localTmpFolder)
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<ContentRepository>- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<ContentRepository>
-
getValue
public ContentRepository getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ContentRepository>- Throws:
IllegalStateExceptionIllegalArgumentException
-
addContent
public byte[] addContent(InputStream stream) throws IOException
- Specified by:
addContentin interfaceContentRepository- Throws:
IOException
-
getContent
public org.jboss.vfs.VirtualFile getContent(byte[] hash)
- Specified by:
getContentin interfaceContentRepository
-
syncContent
public boolean syncContent(ContentReference reference)
- Specified by:
syncContentin interfaceContentRepository
-
hasContent
public boolean hasContent(byte[] hash)
- Specified by:
hasContentin interfaceContentRepository
-
removeContent
public void removeContent(ContentReference reference)
- Specified by:
removeContentin interfaceContentRepository
-
getDeploymentFiles
public final File[] getDeploymentFiles(ContentReference reference)
- Specified by:
getDeploymentFilesin interfaceDeploymentFileRepository
-
getDeploymentRoot
public File getDeploymentRoot(ContentReference reference)
- Specified by:
getDeploymentRootin interfaceDeploymentFileRepository
-
deleteDeployment
public void deleteDeployment(ContentReference reference)
- Specified by:
deleteDeploymentin interfaceDeploymentFileRepository
-
addContentReference
public void addContentReference(ContentReference reference)
- Specified by:
addContentReferencein interfaceContentRepository
-
cleanObsoleteContent
public Map<String,Set<String>> cleanObsoleteContent()
- Specified by:
cleanObsoleteContentin interfaceContentRepository
-
removeContentFromExploded
public byte[] removeContentFromExploded(byte[] deploymentHash, List<String> paths) throws ExplodedContentException- Specified by:
removeContentFromExplodedin interfaceContentRepository- Throws:
ExplodedContentException
-
addContentToExploded
public byte[] addContentToExploded(byte[] deploymentHash, List<ExplodedContent> addFiles, boolean overwrite) throws ExplodedContentException- Specified by:
addContentToExplodedin interfaceContentRepository- Throws:
ExplodedContentException
-
copyExplodedContent
public void copyExplodedContent(byte[] hash, Path target) throws ExplodedContentException- Specified by:
copyExplodedContentin interfaceContentRepository- Throws:
ExplodedContentException
-
copyExplodedContentFiles
public void copyExplodedContentFiles(byte[] deploymentHash, List<String> relativePaths, Path target) throws ExplodedContentException- Specified by:
copyExplodedContentFilesin interfaceContentRepository- Throws:
ExplodedContentException
-
explodeContent
public byte[] explodeContent(byte[] hash) throws ExplodedContentException- Specified by:
explodeContentin interfaceContentRepository- Throws:
ExplodedContentException
-
readContent
public TypedInputStream readContent(byte[] deploymentHash, String path) throws ExplodedContentException
- Specified by:
readContentin interfaceContentRepository- Throws:
ExplodedContentException
-
explodeSubContent
public byte[] explodeSubContent(byte[] deploymentHash, String relativePath) throws ExplodedContentException- Specified by:
explodeSubContentin interfaceContentRepository- Throws:
ExplodedContentException
-
listContent
public List<ContentRepositoryElement> listContent(byte[] deploymentHash, String path, ContentFilter filter) throws ExplodedContentException
- Specified by:
listContentin interfaceContentRepository- Throws:
ExplodedContentException
-
-