org.gridlab.gat.io
Interface Pipe

All Superinterfaces:
Monitorable

public interface Pipe
extends Monitorable

A Pipe represents a connection to another process. The real communication is done through the streams that this pipe contains.

Author:
rob

Method Summary
 void close()
          Close the connection to the other process.
 InputStream getInputStream()
          Get the input stream connected to this pipe.
 OutputStream getOutputStream()
          Get the output stream connected to this pipe.
 
Methods inherited from interface org.gridlab.gat.monitoring.Monitorable
addMetricListener, getMeasurement, getMetricDefinitionByName, getMetricDefinitions, removeMetricListener
 

Method Detail

getOutputStream

OutputStream getOutputStream()
                             throws GATInvocationException
Get the output stream connected to this pipe.

Returns:
the output stream connected to this pipe.
Throws:
GATInvocationException - an IO error occurred

getInputStream

InputStream getInputStream()
                           throws GATInvocationException
Get the input stream connected to this pipe.

Returns:
the input stream connected to this pipe.
Throws:
GATInvocationException - an IO error occurred

close

void close()
           throws GATInvocationException
Close the connection to the other process.

Throws:
GATInvocationException - an IO error occurred