| Constructor and Description |
|---|
MarlinAdminImpl(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Override
AutoCloseable.close() to avoid declaring a checked
exception. |
int |
countTopics(java.lang.String streamName)
Count the number of topics in a stream.
|
void |
createStream(java.lang.String streamName,
StreamDescriptor gdesc)
Create a stream.
|
static void |
createStreamForCopy(java.lang.String replicaStreamName,
java.lang.String srcStreamName) |
void |
createTopic(java.lang.String streamPath,
java.lang.String topicName)
Create a topic with the default number of partitions.
|
void |
createTopic(java.lang.String streamPath,
java.lang.String topicName,
int nfeeds)
Create a topic with the specified number of partitions.
|
void |
deleteCursors(java.lang.String streamName,
java.lang.String listenerGID,
java.lang.String topicName,
int feedId) |
void |
deleteStream(java.lang.String streamName)
Delete a stream.
|
void |
deleteTopic(java.lang.String streamPath,
java.lang.String topicName)
Delete a topic.
|
void |
editStream(java.lang.String streamName,
StreamDescriptor gdesc)
Modify the attributes of a stream.
|
void |
editTopic(java.lang.String streamPath,
java.lang.String topicName,
int nfeeds)
Modify the number of partitions for a topic.
|
boolean |
FilterResult(org.ojai.Document rec,
java.lang.String streamName,
java.lang.String listenerGID,
java.lang.String topic,
AssignInfo ai,
java.util.Map<java.lang.String,com.mapr.fs.proto.Marlinserver.MarlinTopicMetaEntry> topicMetaMap,
com.mapr.fs.jni.MapRUserInfo userInfo) |
StreamDescriptor |
getStreamDescriptor(java.lang.String streamName)
Get the StreamDescriptor for a stream.
|
com.mapr.fs.proto.Marlinserver.MarlinTopicMetaEntry |
getTopicMetaEntry(java.lang.String topicFullName) |
java.util.List<TopicFeedInfo> |
infoTopic(java.lang.String topicFullName) |
java.util.List<TopicFeedInfo> |
infoTopicCommon(java.lang.String topicFullName,
boolean headOnly) |
java.util.List<CursorInfo> |
listAllCursors(java.lang.String streamName) |
java.util.List<AssignInfo> |
listAssigns(java.lang.String streamName,
java.lang.String listenerGID,
java.lang.String topicName) |
java.util.List<CursorInfo> |
listCursors(java.lang.String streamName,
java.lang.String listenerGID,
java.lang.String topicName,
int feedId) |
java.util.List<CursorInfo> |
listCursorsForTopic(java.lang.String topicFullName) |
java.util.Map<java.lang.String,java.util.List<TopicFeedInfo>> |
listTopics(java.lang.String streamName) |
public MarlinAdminImpl(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic void createStream(java.lang.String streamName,
StreamDescriptor gdesc)
throws java.io.IOException,
java.lang.IllegalArgumentException
AdmincreateStream in interface AdminstreamName - absolute path of the stream in MapR-FSgdesc - descriptor for stream attributesjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic void editStream(java.lang.String streamName,
StreamDescriptor gdesc)
throws java.io.IOException,
java.lang.IllegalArgumentException
AdmineditStream in interface AdminstreamName - absolute path of the stream in MapR-FSgdesc - descriptor for stream attributesjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic StreamDescriptor getStreamDescriptor(java.lang.String streamName) throws java.io.IOException, java.lang.IllegalArgumentException
AdmingetStreamDescriptor in interface AdminstreamName - absolute path of the stream in MapR-FSjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic static void createStreamForCopy(java.lang.String replicaStreamName,
java.lang.String srcStreamName)
throws java.io.IOException,
java.lang.IllegalArgumentException
java.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic void deleteStream(java.lang.String streamName)
throws java.io.IOException,
java.lang.IllegalArgumentException
AdmindeleteStream in interface AdminstreamName - absolute path of the stream in MapR-FSjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic int countTopics(java.lang.String streamName)
throws java.io.IOException,
java.lang.IllegalArgumentException
AdmincountTopics in interface AdminstreamName - absolute path of the stream in MapR-FSjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic void createTopic(java.lang.String streamPath,
java.lang.String topicName)
throws java.io.IOException
AdmincreateTopic in interface AdminstreamPath - absolute path of the stream in MapR-FStopicName - name of the topicjava.io.IOExceptionpublic void createTopic(java.lang.String streamPath,
java.lang.String topicName,
int nfeeds)
throws java.io.IOException
AdmincreateTopic in interface AdminstreamPath - absolute path of the stream in MapR-FStopicName - name of the topicjava.io.IOExceptionpublic void editTopic(java.lang.String streamPath,
java.lang.String topicName,
int nfeeds)
throws java.io.IOException
Adminpublic void deleteTopic(java.lang.String streamPath,
java.lang.String topicName)
throws java.io.IOException
AdmindeleteTopic in interface AdminstreamPath - absolute path of the stream in MapR-FStopicName - name of the topicjava.io.IOExceptionpublic com.mapr.fs.proto.Marlinserver.MarlinTopicMetaEntry getTopicMetaEntry(java.lang.String topicFullName)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<TopicFeedInfo> infoTopicCommon(java.lang.String topicFullName, boolean headOnly) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<TopicFeedInfo> infoTopic(java.lang.String topicFullName) throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.util.List<TopicFeedInfo>> listTopics(java.lang.String streamName) throws java.io.IOException, java.lang.IllegalArgumentException
java.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic java.util.List<CursorInfo> listCursors(java.lang.String streamName, java.lang.String listenerGID, java.lang.String topicName, int feedId) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<CursorInfo> listAllCursors(java.lang.String streamName) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<CursorInfo> listCursorsForTopic(java.lang.String topicFullName) throws java.io.IOException
java.io.IOExceptionpublic void deleteCursors(java.lang.String streamName,
java.lang.String listenerGID,
java.lang.String topicName,
int feedId)
throws java.io.IOException
java.io.IOExceptionpublic boolean FilterResult(org.ojai.Document rec,
java.lang.String streamName,
java.lang.String listenerGID,
java.lang.String topic,
AssignInfo ai,
java.util.Map<java.lang.String,com.mapr.fs.proto.Marlinserver.MarlinTopicMetaEntry> topicMetaMap,
com.mapr.fs.jni.MapRUserInfo userInfo)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<AssignInfo> listAssigns(java.lang.String streamName, java.lang.String listenerGID, java.lang.String topicName) throws java.io.IOException
java.io.IOException