Package org.vast.process
Interface IDataConnection
- All Known Implementing Classes:
 DataConnection,DataQueue
public interface IDataConnection
- 
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all remaining data on this connectionbooleanvoidPublish data from source component on this connectionvoidsetDestination(IProcessExec process, DataComponent component) voidsetSource(IProcessExec process, DataComponent component) booleantransferData(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 
 -