public interface MetadataTable extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
createTopic(TopicMetadata topicMetadata)
Create a topic with properties.
|
void |
deleteTopic(co.cask.cdap.proto.id.TopicId topicId)
Delete a topic.
|
TopicMetadata |
getMetadata(co.cask.cdap.proto.id.TopicId topicId)
Fetch the metadata of the
TopicId. |
List<co.cask.cdap.proto.id.TopicId> |
listTopics()
List all topics in the messaging system.
|
List<co.cask.cdap.proto.id.TopicId> |
listTopics(co.cask.cdap.proto.id.NamespaceId namespaceId)
List all the topics in a namespace.
|
void |
updateTopic(TopicMetadata topicMetadata)
Updates the topic properties.
|
TopicMetadata getMetadata(co.cask.cdap.proto.id.TopicId topicId) throws co.cask.cdap.api.messaging.TopicNotFoundException, IOException
TopicId.topicId - message topicTopicIdco.cask.cdap.api.messaging.TopicNotFoundException - if the topic doesn't existIOException - if failed to retrieve metadatavoid createTopic(TopicMetadata topicMetadata) throws co.cask.cdap.api.messaging.TopicAlreadyExistsException, IOException
topicMetadata - metadata of the topicco.cask.cdap.api.messaging.TopicAlreadyExistsException - if the topic already existIOException - if failed to create topicvoid updateTopic(TopicMetadata topicMetadata) throws co.cask.cdap.api.messaging.TopicNotFoundException, IOException
topicMetadata - metadata of the topic.co.cask.cdap.api.messaging.TopicNotFoundException - if the topic doesn't existIOException - if failed to update metadatavoid deleteTopic(co.cask.cdap.proto.id.TopicId topicId)
throws co.cask.cdap.api.messaging.TopicNotFoundException,
IOException
topicId - message topicco.cask.cdap.api.messaging.TopicNotFoundException - if the topic doesn't existIOException - if failed to delete the topicList<co.cask.cdap.proto.id.TopicId> listTopics(co.cask.cdap.proto.id.NamespaceId namespaceId) throws IOException
namespaceId - namespaceList of topics in that namespaceIOException - if failed to retrieve topicsList<co.cask.cdap.proto.id.TopicId> listTopics() throws IOException
List of all topics.IOException - if failed to retrieve topicsCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.