public interface Admin extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Override
AutoCloseable.close() to avoid declaring a checked
exception. |
int |
countTopics(String streamPath)
Count the number of topics in a stream.
|
void |
createStream(String streamPath,
StreamDescriptor desc)
Create a stream.
|
void |
createTopic(String streamPath,
String topicName)
Create a topic with the default number of partitions.
|
void |
createTopic(String streamPath,
String topicName,
int npartitions)
Create a topic with the specified number of partitions.
|
void |
deleteStream(String streamPath)
Delete a stream.
|
void |
deleteTopic(String streamPath,
String topicName)
Delete a topic.
|
void |
editStream(String streamPath,
StreamDescriptor desc)
Modify the attributes of a stream.
|
void |
editTopic(String streamPath,
String topicName,
int npartitions)
Modify the number of partitions for a topic.
|
StreamDescriptor |
getStreamDescriptor(String streamPath)
Get the StreamDescriptor for a stream.
|
void createStream(String streamPath, StreamDescriptor desc) throws IOException, IllegalArgumentException
streamPath - absolute path of the stream in MapR-FSdesc - descriptor for stream attributesIOExceptionIllegalArgumentExceptionvoid editStream(String streamPath, StreamDescriptor desc) throws IOException, IllegalArgumentException
streamPath - absolute path of the stream in MapR-FSdesc - descriptor for stream attributesIOExceptionIllegalArgumentExceptionStreamDescriptor getStreamDescriptor(String streamPath) throws IOException, IllegalArgumentException
streamPath - absolute path of the stream in MapR-FSIOExceptionIllegalArgumentExceptionvoid deleteStream(String streamPath) throws IOException, IllegalArgumentException
streamPath - absolute path of the stream in MapR-FSIOExceptionIllegalArgumentExceptionint countTopics(String streamPath) throws IOException, IllegalArgumentException
streamPath - absolute path of the stream in MapR-FSIOExceptionIllegalArgumentExceptionvoid createTopic(String streamPath, String topicName) throws IOException
streamPath - absolute path of the stream in MapR-FStopicName - name of the topicIOExceptionvoid createTopic(String streamPath, String topicName, int npartitions) throws IOException
streamPath - absolute path of the stream in MapR-FStopicName - name of the topicIOExceptionvoid editTopic(String streamPath, String topicName, int npartitions) throws IOException
streamPath - absolute path of the stream in MapR-FStopicName - name of the topicIOExceptionvoid deleteTopic(String streamPath, String topicName) throws IOException
streamPath - absolute path of the stream in MapR-FStopicName - name of the topicIOExceptionvoid close()
AutoCloseable.close() to avoid declaring a checked
exception.close in interface AutoCloseableCopyright © 2016 Mapr Technologies, Inc.. All rights reserved.