Class GitContentRepository
java.lang.Object
org.jboss.as.repository.ContentRepositoryImpl
org.jboss.as.server.controller.git.GitContentRepository
- All Implemented Interfaces:
ContentRepository
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, messageDigestRefFields inherited from interface org.jboss.as.repository.ContentRepository
DELETED_CONTENT, LOCK_TIMEOUT, MARKED_CONTENT, OBSOLETE_CONTENT_TIMEOUT, SERVICE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGitContentRepository(GitRepository gitRepository, File repoRoot, File tmpRoot, long obsolescenceTimeout, long lockTimeout) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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 Details
-
GitContentRepository
protected GitContentRepository(GitRepository gitRepository, File repoRoot, File tmpRoot, long obsolescenceTimeout, long lockTimeout)
-
-
Method Details
-
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
- Specified by:
explodeContentin interfaceContentRepository- Overrides:
explodeContentin classContentRepositoryImpl- Throws:
ExplodedContentException
-
removeContent
- Specified by:
removeContentin interfaceContentRepository- Overrides:
removeContentin classContentRepositoryImpl
-
addContent
- 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)
-