public class JsonStreamService extends Object implements StreamService
| Constructor and Description |
|---|
JsonStreamService() |
| Modifier and Type | Method and Description |
|---|---|
StreamComponent |
getComponentBy(Repository repository,
Codebase codebase)
Get the StreamComponent which specifies the given repository and codebase.
|
List<Repository> |
getDistinctURLRepositories()
Retrieve all Repositories across all Streams.
|
List<Repository> |
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(Repository repository,
Codebase codebase)
Find all the streams associated to the given repository and codebase
|
boolean |
init(Aphrodite aphrodite,
AphroditeConfig config)
Initialize the stream service.
|
public boolean init(Aphrodite aphrodite, AphroditeConfig config) throws NotFoundException
StreamServiceinit in interface StreamServiceNotFoundExceptionpublic List<Stream> getStreams()
StreamServicegetStreams in interface StreamServiceStreamService, or an empty list if no streams exist.public Stream getStream(String streamName)
StreamServiceStream object based upon its String name.getStream in interface StreamServicestreamName - the name of the Stream to be returned.Stream object which corresponds to the specified streamName
if it exists, otherwise null.public List<Repository> getDistinctURLRepositories()
StreamServicegetDistinctURLRepositories in interface StreamServicepublic List<Repository> getDistinctURLRepositoriesByStream(String streamName)
StreamServicegetDistinctURLRepositoriesByStream in interface StreamServicestreamName - the name of the Stream containing the returned repositories.public List<Stream> getStreamsBy(Repository repository, Codebase codebase)
StreamServicegetStreamsBy in interface StreamServicerepository - the Repository to search against.codebase - the Codebase to search against.Stream objects.public StreamComponent getComponentBy(Repository repository, Codebase codebase)
StreamServicegetComponentBy in interface StreamServicerepository - the Repository to be searched against.codebase - the codebase to be searched against.Copyright © 2016 JBoss by Red Hat. All rights reserved.