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