public interface StreamDataset extends Dataset
Dataset interface to support
streaming capabilities.Dataset.DatasetType| Modifier and Type | Method and Description |
|---|---|
int |
addInputStream(Topic topic)
Add an input stream to this dataset.
|
int |
addInputStreams(java.util.Collection<Topic> topics)
Adds a set of input streams to this dataset.
|
int |
addOutputStream(Topic topic)
Add an output stream to this dataset.
|
int |
addOutputStreams(java.util.Collection<Topic> topics)
Adds a set of output streams to this dataset.
|
java.util.Collection<Topic> |
getInputStreams()
Retrieve a collection of the constituent input streams.
|
int |
getNumberOfInputStreams()
Retrieve the number of input streams in this dataset
|
int |
getNumberOfOutputStreams()
Retrieve the number of output streams in this dataset.
|
java.util.Collection<Topic> |
getOutputStreams()
Retrieve a collection of the constituent output streams.
|
TopicDataEvent |
getStreamingData()
Retrieves a portion of the streaming dataset when data is available.
|
boolean |
hasInputStream(Topic topic)
Check to see if this dataset has a specified input stream.
|
boolean |
hasInputStreams()
Check to see if this dataset has any registered input streams.
|
boolean |
hasOutputStream(Topic topic)
Check to see if this dataset has a specified output stream.
|
boolean |
hasOutputStreams()
Check to see if this dataset has any registered output streams.
|
int |
removeInputStream(Topic topic)
Removes an input stream from this dataset.
|
int |
removeInputStreams(java.util.Collection<Topic> topics)
Removes a set of input streams from this dataset.
|
int |
removeOutputStream(Topic topic)
Removes an output stream from this dataset.
|
int |
removeOutputStreams(java.util.Collection<Topic> topics)
Removes a set of output streams from this dataset.
|
void |
writeStreamingData(Topic topic,
byte[] payload)
This method writes data to the output dataset.
|
void |
writeStreamingData(TopicDataEvent mtdEvent)
This method writes data to the output dataset.
|
close, getDataAvailabilityNotifier, getDatasetType, getDescription, getIdentifier, getLastModificationTime, initializeDataset, isAvailable, isDataAvailable, isInitialized, supportsDataAvailabilityNotificationsmarshallTopicDataEvent getStreamingData() throws DatasetException
DatasetException - If there are problems performing the operationvoid writeStreamingData(TopicDataEvent mtdEvent) throws DatasetException
mtdEvent - The stream fragment that needs to be writtenDatasetException - If there are problems performing the operationvoid writeStreamingData(Topic topic, byte[] payload) throws DatasetException
topic - The stream being written topayload - The payload for the individual stream fragmentsDatasetException - If there are problems performing the operationint addInputStream(Topic topic) throws DatasetException
topic - The topic of the stream to be addedDatasetException - If there are problems adding this stream to the set of
managed streamsint removeInputStream(Topic topic) throws DatasetException
topic - The topic of the stream to be removedDatasetException - If there are problems removing this stream from the set of
managed streamsint addInputStreams(java.util.Collection<Topic> topics) throws DatasetException
topics - A collection of streams to be addedDatasetException - If there are problems adding these streams to the set of
managed streamsjava.lang.NullPointerException - If the specified set of streams is NULL.int removeInputStreams(java.util.Collection<Topic> topics) throws DatasetException
topics - A collection of streams to be removedDatasetException - If there are problems removing these streams to the set of
managed streamsjava.lang.NullPointerException - If the specified set of streams is NULL.boolean hasInputStreams()
true if this dataset has any registered input
streams;false otherwise.boolean hasInputStream(Topic topic)
true if this dataset has the specified input
stream;false otherwise.int getNumberOfInputStreams()
java.util.Collection<Topic> getInputStreams()
int addOutputStream(Topic topic) throws DatasetException
topic - The topic of the stream to be addedsynopsisType - The type of the stream's synopsisDatasetException - If there are problems adding this stream to the set of
managed streamsint removeOutputStream(Topic topic) throws DatasetException
topic - The topic of the stream to be removedDatasetException - If there are problems removing this stream from the set of
managed streamsint addOutputStreams(java.util.Collection<Topic> topics) throws DatasetException
topics - A collection of streams to be addedDatasetException - If there are problems adding these streams to the set of
managed streamsjava.lang.NullPointerException - If the specified set of streams is NULL.int removeOutputStreams(java.util.Collection<Topic> topics) throws DatasetException
topics - A collection of streams to be removedDatasetException - If there are problems removing these streams from the set of
managed streamsjava.lang.NullPointerException - If the specified set of streams is NULL.boolean hasOutputStreams()
true if this dataset has any registered output
streams;false otherwise.boolean hasOutputStream(Topic topic)
true if this dataset has the specified output
stream;false otherwise.int getNumberOfOutputStreams()
java.util.Collection<Topic> getOutputStreams()