public class SelfContainedContentRepository extends Object implements ContentRepository, org.jboss.msc.service.Service<ContentRepository>
ContentProviderContentRepository.FactoryDELETED_CONTENT, MARKED_CONTENT, OBSOLETE_CONTENT_TIMEOUT, SERVICE_NAME| Constructor and Description |
|---|
SelfContainedContentRepository() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
addContent(InputStream stream) |
void |
addContentReference(ContentReference reference) |
static void |
addService(org.jboss.msc.service.ServiceTarget serviceTarget)
Install the service.
|
Map<String,Set<String>> |
cleanObsoleteContent() |
org.jboss.vfs.VirtualFile |
getContent(byte[] hash) |
org.jboss.msc.inject.Injector<ContentProvider> |
getContentProviderInjector() |
ContentRepository |
getValue() |
boolean |
hasContent(byte[] hash) |
void |
removeContent(ContentReference reference) |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
stop(org.jboss.msc.service.StopContext stopContext) |
boolean |
syncContent(ContentReference reference) |
public static void addService(org.jboss.msc.service.ServiceTarget serviceTarget)
public org.jboss.msc.inject.Injector<ContentProvider> getContentProviderInjector()
public byte[] addContent(InputStream stream) throws IOException
addContent in interface ContentRepositoryIOExceptionpublic void addContentReference(ContentReference reference)
addContentReference in interface ContentRepositorypublic org.jboss.vfs.VirtualFile getContent(byte[] hash)
getContent in interface ContentRepositorypublic boolean hasContent(byte[] hash)
hasContent in interface ContentRepositorypublic boolean syncContent(ContentReference reference)
syncContent in interface ContentRepositorypublic void removeContent(ContentReference reference)
removeContent in interface ContentRepositorypublic Map<String,Set<String>> cleanObsoleteContent()
cleanObsoleteContent in interface ContentRepositorypublic void start(org.jboss.msc.service.StartContext startContext)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<ContentRepository>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext stopContext)
stop in interface org.jboss.msc.service.Service<ContentRepository>public ContentRepository getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<ContentRepository>IllegalStateExceptionIllegalArgumentExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.