@Deprecated public class StreamDatasetImplLegacy extends 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 String |
MODULE
Deprecated.
|
HIERARCHICAL_SYNOPSIS, REG_EXPRESSIONS_SYNOPSIS, STRING_SYNOPSIS, TAG_VALUE_PAIRS| Constructor and Description |
|---|
StreamDatasetImplLegacy(ds.funnel.data.format.FormatReader mFormat)
Deprecated.
|
StreamDatasetImplLegacy(String datasetIdentifier,
String datasetDescription)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addInputStream(String streamSynopsis,
int synopsisType)
Deprecated.
Add an input stream to this dataset.
|
int |
addInputStreams(ConcurrentHashMap<String,Integer> streamsToAdd)
Deprecated.
Adds a set of input streams to this dataset.
|
int |
addOutputStream(String streamSynopsis,
int synopsisType)
Deprecated.
Add an output stream to this dataset.
|
int |
addOutputStreams(ConcurrentHashMap<String,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.
|
String |
getDatasetIdentifier()
Deprecated.
Retrieve the identifier for this dataset.
|
Dataset.DatasetType |
getDatasetType()
Deprecated.
Retrieve the type of the data set
|
String |
getDescription()
Deprecated.
Retrieve a description of the dataset
|
ConcurrentHashMap<String,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.
|
ConcurrentHashMap<String,Integer> |
getOutputStreams()
Deprecated.
Retrieve a HashMap of the constituent output streams.
|
cgl.narada.event.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(ds.funnel.data.format.FormatWriter mFormat)
Deprecated.
|
int |
removeInputStream(String streamSynopsis)
Deprecated.
Removes an input stream from this dataset.
|
int |
removeInputStreams(ConcurrentHashMap<String,Integer> streamsToRemove)
Deprecated.
Removes a set of input streams from this dataset.
|
int |
removeOutputStream(String streamSynopsis)
Deprecated.
Removes an output stream from this dataset.
|
int |
removeOutputStreams(ConcurrentHashMap<String,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,
Object streamInfo,
byte[] payload)
Deprecated.
This method writes data to the output dataset.
|
void |
writeStreamingData(cgl.narada.event.NBEvent nbEvent)
Deprecated.
This method writes data to the output dataset.
|
void |
writeStreamingData(Object streamInfo,
byte[] payload)
Deprecated.
This method writes data to the output dataset.
|
public static final String MODULE
public StreamDatasetImplLegacy(String datasetIdentifier, String datasetDescription)
public StreamDatasetImplLegacy(ds.funnel.data.format.FormatReader mFormat)
public void marshall(ds.funnel.data.format.FormatWriter mFormat)
throws ds.funnel.data.format.FormatException
marshall in interface ds.funnel.data.format.FormatMarshallerds.funnel.data.format.FormatExceptionpublic Dataset.DatasetType getDatasetType()
DatasetgetDatasetType in interface Datasetpublic String getDescription()
DatasetgetDescription in interface Datasetpublic String getDatasetIdentifier()
DatasetgetDatasetIdentifier 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 cgl.narada.event.NBEvent getStreamingData()
throws DatasetException
StreamingAccessgetStreamingData in interface StreamingAccessDatasetException - If there are problems performing the operationpublic void writeStreamingData(cgl.narada.event.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(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,
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(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(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(ConcurrentHashMap<String,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(ConcurrentHashMap<String,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 ConcurrentHashMap<String,Integer> getInputStreams()
StreamingAccessgetInputStreams in interface StreamingAccesspublic int addOutputStream(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(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(ConcurrentHashMap<String,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(ConcurrentHashMap<String,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 ConcurrentHashMap<String,Integer> getOutputStreams()
StreamingAccessgetOutputStreams in interface StreamingAccesspublic void commitUpdates()
throws DatasetException
StreamingAccesscommitUpdates in interface StreamingAccessDatasetExceptionCopyright © 2015. All rights reserved.