Package org.vast.process
Interface IDataConnection
- All Known Implementing Classes:
DataConnection
,DataQueue
public interface IDataConnection
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all remaining data on this connectionboolean
void
Publish data from source component on this connectionvoid
setDestination
(IProcessExec process, DataComponent component) void
setSource
(IProcessExec process, DataComponent component) boolean
transferData
(boolean block) Transfer data to destination component
-
Method Details
-
setSource
-
getSourceProcess
IProcessExec getSourceProcess() -
getSourcePort
DataComponent getSourcePort() -
getSourceComponent
DataComponent getSourceComponent() -
setDestination
-
getDestinationProcess
IProcessExec getDestinationProcess() -
getDestinationPort
DataComponent getDestinationPort() -
getDestinationComponent
DataComponent getDestinationComponent() -
transferData
Transfer data to destination component- Parameters:
block
- Set to true if processing should wait until data is available on this connection, false if processing should continue without it- Returns:
- True if data was actually transferred, false otherwise
- Throws:
InterruptedException
- if interrupted while waiting
-
publishData
Publish data from source component on this connection- Throws:
InterruptedException
- if interrupted while waiting
-
isDataAvailable
boolean isDataAvailable()- Returns:
- true if data is available (i.e. ready to be transfered) on this connection
-
clear
void clear()Clear all remaining data on this connection
-