@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.FormatMarshaller
ds.funnel.data.format.FormatException
public Dataset.DatasetType getDatasetType()
Dataset
getDatasetType
in interface Dataset
public String getDescription()
Dataset
getDescription
in interface Dataset
public String getDatasetIdentifier()
Dataset
getDatasetIdentifier
in interface Dataset
public boolean isInitialized()
Dataset
isInitialized
in interface Dataset
true
if the dataset is initialized;
false
otherwise.public boolean initializeDataset() throws DatasetException
Dataset
initializeDataset
in interface Dataset
true
if the dataset has been initialized;
false
otherwise.DatasetException
public boolean isAvailable()
Dataset
isAvailable
in interface Dataset
true
if the dataset is available;
false
otherwise.public boolean isDataAvailable()
Dataset
isDataAvailable
in interface Dataset
true
if data is available on this dataset;
false
otherwise.public long getLastModificationTime()
Dataset
getLastModificationTime
in interface Dataset
public boolean supportsDataAvailabilityNotifications()
Dataset
supportsDataAvailabilityNotifications
in interface Dataset
true
if this dataset supports data availability
notifications;false
otherwise.public DataAvailabilityNotifier getDataAvailabilityNotifier()
Dataset
getDataAvailabilityNotifier
in interface Dataset
public boolean close() throws DatasetException
Dataset
close
in interface Dataset
true
if a graceful closure of this dataset was
performed;false
otherwise.DatasetException
public cgl.narada.event.NBEvent getStreamingData() throws DatasetException
StreamingAccess
getStreamingData
in interface StreamingAccess
DatasetException
- If there are problems performing the operationpublic void writeStreamingData(cgl.narada.event.NBEvent nbEvent) throws DatasetException
StreamingAccess
writeStreamingData
in interface StreamingAccess
nbEvent
- The stream fragment that needs to be writtenDatasetException
- If there are problems performing the operationpublic void writeStreamingData(Object streamInfo, byte[] payload) throws DatasetException
StreamingAccess
writeStreamingData
in interface StreamingAccess
streamInfo
- 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
StreamingAccess
writeStreamingData
in interface StreamingAccess
synopsisType
- 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
StreamingAccess
addInputStream
in interface StreamingAccess
streamSynopsis
- 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
StreamingAccess
removeInputStream
in interface StreamingAccess
streamSynopsis
- 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
StreamingAccess
addInputStreams
in interface StreamingAccess
streamsToAdd
- 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
StreamingAccess
removeInputStreams
in interface StreamingAccess
streamsToRemove
- The set of streams to be addedDatasetException
- If there are problems removing these streams to the set of
managed streamspublic boolean hasInputStreams()
StreamingAccess
hasInputStreams
in interface StreamingAccess
true
if this dataset has any registered input
streams;false
otherwise.public int getNumberOfInputStreams()
StreamingAccess
getNumberOfInputStreams
in interface StreamingAccess
public ConcurrentHashMap<String,Integer> getInputStreams()
StreamingAccess
getInputStreams
in interface StreamingAccess
public int addOutputStream(String streamSynopsis, int synopsisType) throws DatasetException
StreamingAccess
addOutputStream
in interface StreamingAccess
streamSynopsis
- 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
StreamingAccess
removeOutputStream
in interface StreamingAccess
streamSynopsis
- 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
StreamingAccess
addOutputStreams
in interface StreamingAccess
streamsToAdd
- 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
StreamingAccess
removeOutputStreams
in interface StreamingAccess
streamsToRemove
- The set of output streams to be removedDatasetException
- If there are problems removing these streams from the set of
managed streamspublic boolean hasOutputStreams()
StreamingAccess
hasOutputStreams
in interface StreamingAccess
true
if this dataset has any registered output
streams;false
otherwise.public int getNumberOfOutputStreams()
StreamingAccess
getNumberOfOutputStreams
in interface StreamingAccess
public ConcurrentHashMap<String,Integer> getOutputStreams()
StreamingAccess
getOutputStreams
in interface StreamingAccess
public void commitUpdates() throws DatasetException
StreamingAccess
commitUpdates
in interface StreamingAccess
DatasetException
Copyright © 2015. All rights reserved.