@Deprecated public class StreamDatasetImplLegacy extends java.lang.Object implements StreamingAccess
StreamingAccess interface which outlines
methods to access the data streams that are available.Dataset.DatasetType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MODULE
Deprecated.
|
HIERARCHICAL_SYNOPSIS, REG_EXPRESSIONS_SYNOPSIS, STRING_SYNOPSIS, TAG_VALUE_PAIRS| Constructor and Description |
|---|
StreamDatasetImplLegacy(FormatReader mFormat)
Deprecated.
|
StreamDatasetImplLegacy(java.lang.String datasetIdentifier,
java.lang.String datasetDescription)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addInputStream(java.lang.String streamSynopsis,
int synopsisType)
Deprecated.
Add an input stream to this dataset.
|
int |
addInputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToAdd)
Deprecated.
Adds a set of input streams to this dataset.
|
int |
addOutputStream(java.lang.String streamSynopsis,
int synopsisType)
Deprecated.
Add an output stream to this dataset.
|
int |
addOutputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToAdd)
Deprecated.
Adds a set of output streams to this dataset.
|
boolean |
close()
Deprecated.
Close access to this dataset.
|
void |
commitUpdates()
Deprecated.
Commit any changes that have been made to the set of streams managed by
this dataset.
|
DataAvailabilityNotifier |
getDataAvailabilityNotifier()
Deprecated.
Retrieve the data availability notifier for this dataset.
|
Dataset.DatasetType |
getDatasetType()
Deprecated.
Retrieve the type of the data set
|
java.lang.String |
getDescription()
Deprecated.
Retrieve a description of the dataset
|
java.lang.String |
getIdentifier()
Deprecated.
Retrieve the identifier for this dataset.
|
java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> |
getInputStreams()
Deprecated.
Retrieve a HashMap of the constituent input streams.
|
long |
getLastModificationTime()
Deprecated.
Retrieve the last update to this dataset
|
int |
getNumberOfInputStreams()
Deprecated.
Retrieve the number of input streams in this dataset
|
int |
getNumberOfOutputStreams()
Deprecated.
Retrieve the number of output streams in this dataset.
|
java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> |
getOutputStreams()
Deprecated.
Retrieve a HashMap of the constituent output streams.
|
NBEvent |
getStreamingData()
Deprecated.
Retrieves a portion of the streaming dataset when data is available.
|
boolean |
hasInputStreams()
Deprecated.
Check to see if this dataset has any registered input streams.
|
boolean |
hasOutputStreams()
Deprecated.
Check to see if this dataset has any registered output streams.
|
boolean |
initializeDataset()
Deprecated.
Invokes the initialization of the dataset.
|
boolean |
isAvailable()
Deprecated.
A check to see if the dataset is available
|
boolean |
isDataAvailable()
Deprecated.
This polls the dataset to see if data is available for consumption.
|
boolean |
isInitialized()
Deprecated.
Check to see if the dataset has been initialized
|
void |
marshall(FormatWriter mFormat)
Deprecated.
|
int |
removeInputStream(java.lang.String streamSynopsis)
Deprecated.
Removes an input stream from this dataset.
|
int |
removeInputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToRemove)
Deprecated.
Removes a set of input streams from this dataset.
|
int |
removeOutputStream(java.lang.String streamSynopsis)
Deprecated.
Removes an output stream from this dataset.
|
int |
removeOutputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToRemove)
Deprecated.
Removes a set of output streams from this dataset.
|
boolean |
supportsDataAvailabilityNotifications()
Deprecated.
Indicates whether this dataset supports dynamic data availability
notifications
|
void |
writeStreamingData(int synopsisType,
java.lang.Object streamInfo,
byte[] payload)
Deprecated.
This method writes data to the output dataset.
|
void |
writeStreamingData(NBEvent nbEvent)
Deprecated.
This method writes data to the output dataset.
|
void |
writeStreamingData(java.lang.Object streamInfo,
byte[] payload)
Deprecated.
This method writes data to the output dataset.
|
public static final java.lang.String MODULE
public StreamDatasetImplLegacy(java.lang.String datasetIdentifier,
java.lang.String datasetDescription)
public StreamDatasetImplLegacy(FormatReader mFormat)
public void marshall(FormatWriter mFormat) throws FormatException
marshall in interface FormatMarshallermFormat - - The format writer to write toFormatException - If there was a problem while writingpublic Dataset.DatasetType getDatasetType()
DatasetgetDatasetType in interface Datasetpublic java.lang.String getDescription()
DatasetgetDescription in interface Datasetpublic java.lang.String getIdentifier()
DatasetgetIdentifier in interface Datasetpublic boolean isInitialized()
DatasetisInitialized in interface Datasettrue if the dataset is initialized;
false otherwise.public boolean initializeDataset()
throws DatasetException
DatasetinitializeDataset in interface Datasettrue if the dataset has been initialized;
false otherwise.DatasetExceptionpublic boolean isAvailable()
DatasetisAvailable in interface Datasettrue if the dataset is available;
false otherwise.public boolean isDataAvailable()
DatasetisDataAvailable in interface Datasettrue if data is available on this dataset;
false otherwise.public long getLastModificationTime()
DatasetgetLastModificationTime in interface Datasetpublic boolean supportsDataAvailabilityNotifications()
DatasetsupportsDataAvailabilityNotifications in interface Datasettrue if this dataset supports data availability
notifications;false otherwise.public DataAvailabilityNotifier getDataAvailabilityNotifier()
DatasetgetDataAvailabilityNotifier in interface Datasetpublic boolean close()
throws DatasetException
Datasetclose in interface Datasettrue if a graceful closure of this dataset was
performed;false otherwise.DatasetExceptionpublic NBEvent getStreamingData() throws DatasetException
StreamingAccessgetStreamingData in interface StreamingAccessDatasetException - If there are problems performing the operationpublic void writeStreamingData(NBEvent nbEvent) throws DatasetException
StreamingAccesswriteStreamingData in interface StreamingAccessnbEvent - The stream fragment that needs to be writtenDatasetException - If there are problems performing the operationpublic void writeStreamingData(java.lang.Object streamInfo,
byte[] payload)
throws DatasetException
StreamingAccesswriteStreamingData in interface StreamingAccessstreamInfo - The stream being written topayload - The payload for the individual stream fragmentsDatasetException - If there are problems performing the operationpublic void writeStreamingData(int synopsisType,
java.lang.Object streamInfo,
byte[] payload)
throws DatasetException
StreamingAccesswriteStreamingData in interface StreamingAccesssynopsisType - The synopsis Type for the streamstreamInfo - The stream being written topayload - The payload for the individual stream fragmentsDatasetException - If there are problems performing the operationpublic int addInputStream(java.lang.String streamSynopsis,
int synopsisType)
throws DatasetException
StreamingAccessaddInputStream in interface StreamingAccessstreamSynopsis - The synopsis of the streamsynopsisType - The type of the stream's synopsisDatasetException - If there are problems adding this stream to the set of
managed streamspublic int removeInputStream(java.lang.String streamSynopsis)
throws DatasetException
StreamingAccessremoveInputStream in interface StreamingAccessstreamSynopsis - The synopsis of the stream that will be removed.DatasetException - If there are problems removing this stream from the set of
managed streamspublic int addInputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToAdd)
throws DatasetException
StreamingAccessaddInputStreams in interface StreamingAccessstreamsToAdd - The set of streams to be addedDatasetException - If there are problems adding these streams to the set of
managed streamspublic int removeInputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToRemove)
throws DatasetException
StreamingAccessremoveInputStreams in interface StreamingAccessstreamsToRemove - The set of streams to be addedDatasetException - If there are problems removing these streams to the set of
managed streamspublic boolean hasInputStreams()
StreamingAccesshasInputStreams in interface StreamingAccesstrue if this dataset has any registered input
streams;false otherwise.public int getNumberOfInputStreams()
StreamingAccessgetNumberOfInputStreams in interface StreamingAccesspublic java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> getInputStreams()
StreamingAccessgetInputStreams in interface StreamingAccesspublic int addOutputStream(java.lang.String streamSynopsis,
int synopsisType)
throws DatasetException
StreamingAccessaddOutputStream in interface StreamingAccessstreamSynopsis - The synopsis of the streamsynopsisType - The type of the stream's synopsisDatasetException - If there are problems adding this stream to the set of
managed streamspublic int removeOutputStream(java.lang.String streamSynopsis)
throws DatasetException
StreamingAccessremoveOutputStream in interface StreamingAccessstreamSynopsis - The synopsis of the stream that will be removed.DatasetException - If there are problems removing this stream from the set of
managed streamspublic int addOutputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToAdd)
throws DatasetException
StreamingAccessaddOutputStreams in interface StreamingAccessstreamsToAdd - The set of output streams to be addedDatasetException - If there are problems adding these streams to the set of
managed streamspublic int removeOutputStreams(java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> streamsToRemove)
throws DatasetException
StreamingAccessremoveOutputStreams in interface StreamingAccessstreamsToRemove - The set of output streams to be removedDatasetException - If there are problems removing these streams from the set of
managed streamspublic boolean hasOutputStreams()
StreamingAccesshasOutputStreams in interface StreamingAccesstrue if this dataset has any registered output
streams;false otherwise.public int getNumberOfOutputStreams()
StreamingAccessgetNumberOfOutputStreams in interface StreamingAccesspublic java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Integer> getOutputStreams()
StreamingAccessgetOutputStreams in interface StreamingAccesspublic void commitUpdates()
throws DatasetException
StreamingAccesscommitUpdates in interface StreamingAccessDatasetException