public class RemoteFileRepositoryService extends Object implements org.jboss.msc.service.Service<ContentRepository>
ContentRepository.FactoryDELETED_CONTENT, LOCK_TIMEOUT, MARKED_CONTENT, OBSOLETE_CONTENT_TIMEOUT, SERVICE_NAME| Modifier and Type | Method and Description |
|---|---|
byte[] |
addContent(InputStream stream) |
void |
addContentReference(ContentReference reference) |
byte[] |
addContentToExploded(byte[] deploymentHash,
List<ExplodedContent> addFiles,
boolean overwrite) |
static void |
addService(org.jboss.msc.service.ServiceTarget target,
File localDeploymentContentsFolder,
File localTmpFolder) |
Map<String,Set<String>> |
cleanObsoleteContent() |
void |
copyExplodedContent(byte[] hash,
Path target) |
void |
copyExplodedContentFiles(byte[] deploymentHash,
List<String> relativePaths,
Path target) |
void |
deleteDeployment(ContentReference reference) |
byte[] |
explodeContent(byte[] hash) |
byte[] |
explodeSubContent(byte[] deploymentHash,
String relativePath) |
org.jboss.vfs.VirtualFile |
getContent(byte[] hash) |
File[] |
getDeploymentFiles(ContentReference reference) |
File |
getDeploymentRoot(ContentReference reference) |
ContentRepository |
getValue() |
boolean |
hasContent(byte[] hash) |
List<ContentRepositoryElement> |
listContent(byte[] deploymentHash,
String path,
ContentFilter filter) |
TypedInputStream |
readContent(byte[] deploymentHash,
String path) |
void |
removeContent(ContentReference reference) |
byte[] |
removeContentFromExploded(byte[] deploymentHash,
List<String> paths) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
boolean |
syncContent(ContentReference reference) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, readOnly, readWritepublic static void addService(org.jboss.msc.service.ServiceTarget target,
File localDeploymentContentsFolder,
File localTmpFolder)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic ContentRepository getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<ContentRepository>IllegalStateExceptionIllegalArgumentExceptionpublic byte[] addContent(InputStream stream) throws IOException
IOExceptionpublic org.jboss.vfs.VirtualFile getContent(byte[] hash)
public boolean syncContent(ContentReference reference)
public boolean hasContent(byte[] hash)
public void removeContent(ContentReference reference)
public final File[] getDeploymentFiles(ContentReference reference)
public File getDeploymentRoot(ContentReference reference)
public void deleteDeployment(ContentReference reference)
public void addContentReference(ContentReference reference)
public byte[] removeContentFromExploded(byte[] deploymentHash,
List<String> paths)
throws ExplodedContentException
ExplodedContentExceptionpublic byte[] addContentToExploded(byte[] deploymentHash,
List<ExplodedContent> addFiles,
boolean overwrite)
throws ExplodedContentException
ExplodedContentExceptionpublic void copyExplodedContent(byte[] hash,
Path target)
throws ExplodedContentException
ExplodedContentExceptionpublic void copyExplodedContentFiles(byte[] deploymentHash,
List<String> relativePaths,
Path target)
throws ExplodedContentException
ExplodedContentExceptionpublic byte[] explodeContent(byte[] hash)
throws ExplodedContentException
ExplodedContentExceptionpublic TypedInputStream readContent(byte[] deploymentHash, String path) throws ExplodedContentException
ExplodedContentExceptionpublic byte[] explodeSubContent(byte[] deploymentHash,
String relativePath)
throws ExplodedContentException
ExplodedContentExceptionpublic List<ContentRepositoryElement> listContent(byte[] deploymentHash, String path, ContentFilter filter) throws ExplodedContentException
ExplodedContentExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.