Class GitContentRepository
- java.lang.Object
-
- org.jboss.as.repository.ContentRepositoryImpl
-
- org.jboss.as.server.controller.git.GitContentRepository
-
- All Implemented Interfaces:
ContentRepository
public class GitContentRepository extends ContentRepositoryImpl
Content repository implementation that integrates with git for history.- Author:
- Emmanuel Hugonnet (c) 2017 Red Hat, inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.repository.ContentRepository
ContentRepository.Factory
-
-
Field Summary
-
Fields inherited from class org.jboss.as.repository.ContentRepositoryImpl
CONTENT, messageDigestRef
-
Fields inherited from interface org.jboss.as.repository.ContentRepository
DELETED_CONTENT, LOCK_TIMEOUT, MARKED_CONTENT, OBSOLETE_CONTENT_TIMEOUT, SERVICE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGitContentRepository(GitRepository gitRepository, File repoRoot, File tmpRoot, long obsolescenceTimeout, long lockTimeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]addContent(InputStream stream)byte[]addContentToExploded(byte[] deploymentHash, List<ExplodedContent> addFiles, boolean overwrite)static voidaddService(org.jboss.msc.service.ServiceTarget serviceTarget, GitRepository gitRepository, File repoRoot, File tmpRoot)byte[]explodeContent(byte[] deploymentHash)byte[]explodeSubContent(byte[] deploymentHash, String relativePath)voidflush(boolean success)voidremoveContent(ContentReference reference)byte[]removeContentFromExploded(byte[] deploymentHash, List<String> paths)-
Methods inherited from class org.jboss.as.repository.ContentRepositoryImpl
addContentReference, cleanObsoleteContent, copyExplodedContent, copyExplodedContentFiles, getContent, getDeploymentContentFile, getDeploymentContentFile, getDeploymentHashDir, getRepoRoot, hasContent, listContent, readContent, readOnly, readWrite, syncContent, validateDir
-
-
-
-
Constructor Detail
-
GitContentRepository
protected GitContentRepository(GitRepository gitRepository, File repoRoot, File tmpRoot, long obsolescenceTimeout, long lockTimeout)
-
-
Method Detail
-
removeContentFromExploded
public byte[] removeContentFromExploded(byte[] deploymentHash, List<String> paths) throws ExplodedContentException- Specified by:
removeContentFromExplodedin interfaceContentRepository- Overrides:
removeContentFromExplodedin classContentRepositoryImpl- Throws:
ExplodedContentException
-
addContentToExploded
public byte[] addContentToExploded(byte[] deploymentHash, List<ExplodedContent> addFiles, boolean overwrite) throws ExplodedContentException- Specified by:
addContentToExplodedin interfaceContentRepository- Overrides:
addContentToExplodedin classContentRepositoryImpl- Throws:
ExplodedContentException
-
explodeSubContent
public byte[] explodeSubContent(byte[] deploymentHash, String relativePath) throws ExplodedContentException- Specified by:
explodeSubContentin interfaceContentRepository- Overrides:
explodeSubContentin classContentRepositoryImpl- Throws:
ExplodedContentException
-
explodeContent
public byte[] explodeContent(byte[] deploymentHash) throws ExplodedContentException- Specified by:
explodeContentin interfaceContentRepository- Overrides:
explodeContentin classContentRepositoryImpl- Throws:
ExplodedContentException
-
removeContent
public void removeContent(ContentReference reference)
- Specified by:
removeContentin interfaceContentRepository- Overrides:
removeContentin classContentRepositoryImpl
-
addContent
public byte[] addContent(InputStream stream) throws IOException
- Specified by:
addContentin interfaceContentRepository- Overrides:
addContentin classContentRepositoryImpl- Throws:
IOException
-
flush
public void flush(boolean success)
-
addService
public static void addService(org.jboss.msc.service.ServiceTarget serviceTarget, GitRepository gitRepository, File repoRoot, File tmpRoot)
-
-