public final class MDSStreamMetaStore extends Object implements StreamMetaStore
StreamMetaStore that access MDS directly.| Constructor and Description |
|---|
MDSStreamMetaStore(co.cask.tephra.TransactionExecutorFactory txExecutorFactory,
DatasetFramework dsFramework) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStream(Id.Stream streamId)
Adds a stream to the meta store.
|
com.google.common.collect.Multimap<Id.Namespace,co.cask.cdap.api.data.stream.StreamSpecification> |
listStreams()
List all stream specifications with their associated
Id.Namespace. |
List<co.cask.cdap.api.data.stream.StreamSpecification> |
listStreams(Id.Namespace namespaceId)
List all stream specifications stored for the
namespaceId. |
void |
removeStream(Id.Stream streamId)
Removes a stream from the meta store.
|
boolean |
streamExists(Id.Stream streamId)
Checks if a stream exists in the meta store.
|
@Inject
public MDSStreamMetaStore(co.cask.tephra.TransactionExecutorFactory txExecutorFactory,
DatasetFramework dsFramework)
public void addStream(Id.Stream streamId) throws Exception
StreamMetaStoreaddStream in interface StreamMetaStoreExceptionpublic void removeStream(Id.Stream streamId) throws Exception
StreamMetaStoreremoveStream in interface StreamMetaStoreExceptionpublic boolean streamExists(Id.Stream streamId) throws Exception
StreamMetaStorestreamExists in interface StreamMetaStoreExceptionpublic List<co.cask.cdap.api.data.stream.StreamSpecification> listStreams(Id.Namespace namespaceId) throws Exception
StreamMetaStorenamespaceId.listStreams in interface StreamMetaStoreExceptionpublic com.google.common.collect.Multimap<Id.Namespace,co.cask.cdap.api.data.stream.StreamSpecification> listStreams() throws Exception
StreamMetaStoreId.Namespace.listStreams in interface StreamMetaStoreExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.