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_NAMEFields inherited from interface org.jboss.msc.service.Service
NULL -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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) 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) final File[]getDeploymentFiles(ContentReference reference) getDeploymentRoot(ContentReference reference) getValue()booleanhasContent(byte[] hash) listContent(byte[] deploymentHash, String path, ContentFilter filter) readContent(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, waitMethods inherited from interface org.jboss.as.repository.ContentRepository
flush, readOnly, readWrite
-
Method Details
-
addService
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ContentRepository>- Throws:
IllegalStateExceptionIllegalArgumentException
-
addContent
- Specified by:
addContentin interfaceContentRepository- Throws:
IOException
-
getContent
public org.jboss.vfs.VirtualFile getContent(byte[] hash) - Specified by:
getContentin interfaceContentRepository
-
syncContent
- Specified by:
syncContentin interfaceContentRepository
-
hasContent
public boolean hasContent(byte[] hash) - Specified by:
hasContentin interfaceContentRepository
-
removeContent
- Specified by:
removeContentin interfaceContentRepository
-
getDeploymentFiles
- Specified by:
getDeploymentFilesin interfaceDeploymentFileRepository
-
getDeploymentRoot
- Specified by:
getDeploymentRootin interfaceDeploymentFileRepository
-
deleteDeployment
- Specified by:
deleteDeploymentin interfaceDeploymentFileRepository
-
addContentReference
- Specified by:
addContentReferencein interfaceContentRepository
-
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
- 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
- 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
-