public interface StreamService
| Modifier and Type | Method and Description |
|---|---|
StreamComponent |
getComponentBy(URI repository,
Codebase codebase)
Get the StreamComponent which specifies the given repository and codebase.
|
List<URI> |
getDistinctURLRepositories()
Retrieve all Repositories across all Streams.
|
List<URI> |
getDistinctURLRepositoriesByStream(String streamName)
Retrieve the URLs of all Repositories associated with a given Stream.
|
Stream |
getStream(String streamName)
Get a specific
Stream object based upon its String name. |
List<Stream> |
getStreams()
Returns all streams discovered by this service.
|
List<Stream> |
getStreamsBy(URI repository,
Codebase codebase)
Find all the streams associated to the given repository and codebase
|
boolean |
init(Aphrodite aphrodite,
AphroditeConfig config)
Initialize the stream service.
|
void |
serializeStreams(URL url,
OutputStream out)
Serialize streams for certain URL.
|
StreamComponent |
updateStreamComponent(StreamComponent streamComponent)
Updates stream component version in memory and in back end storage if possible.
|
boolean |
updateStreams()
Trigger for updating streams information.
|
boolean init(Aphrodite aphrodite, AphroditeConfig config) throws NotFoundException
boolean updateStreams()
throws NotFoundException
NotFoundExceptionList<Stream> getStreams()
StreamService, or an empty list if no streams exist.Stream getStream(String streamName)
Stream object based upon its String name.streamName - the name of the Stream to be returned.Stream object which corresponds to the specified streamName
if it exists, otherwise null.List<URI> getDistinctURLRepositories()
List<URI> getDistinctURLRepositoriesByStream(String streamName)
streamName - the name of the Stream containing the returned repositories.List<Stream> getStreamsBy(URI repository, Codebase codebase)
repository - the Repository to search against.codebase - the Codebase to search against.Stream objects.StreamComponent getComponentBy(URI repository, Codebase codebase)
repository - the Repository to be searched against.codebase - the codebase to be searched against.StreamComponent updateStreamComponent(StreamComponent streamComponent) throws StreamComponentUpdateException
streamComponent - - component which should be updatedStreamComponentUpdateException - - in case there is some error on update.void serializeStreams(URL url, OutputStream out) throws NotFoundException
url - - urlout - - sink for bytesNotFoundException - - if url does not match any set of streamsCopyright © 2018 JBoss by Red Hat. All rights reserved.