public class StreamImpl extends Object implements Stream, DashboardRenderable
DASHBOARD_CIRCUITS, DASHBOARD_CONNECTIONS, DASHBOARD_CONNECTIONS_VERBOSE, DASHBOARD_PREDICTED_PORTS, DASHBOARD_STREAMS| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this stream.
|
void |
dashboardRender(DashboardRenderer renderer,
PrintWriter writer,
int flags) |
Circuit |
getCircuit()
Returns the
Circuit this stream belongs to. |
InputStream |
getInputStream()
Returns an
InputStream for sending data on this stream. |
OutputStream |
getOutputStream()
Returns an
OutputStream for receiving data from this stream. |
int |
getStreamId()
Returns the stream id value of this stream.
|
CircuitNode |
getTargetNode() |
void |
openDirectory(long timeout) |
String |
toString() |
void |
waitForSendWindow()
If the circuit and stream level packaging windows are open for this stream
this method returns immediately, otherwise it blocks until both windows are
open or the stream is closed.
|
void |
waitForSendWindow(boolean decrement) |
void |
waitForSendWindowAndDecrement() |
public int getStreamId()
StreamgetStreamId in interface Streampublic Circuit getCircuit()
StreamCircuit this stream belongs to.getCircuit in interface StreamCircuit this stream belongs to.public CircuitNode getTargetNode()
getTargetNode in interface Streampublic void close()
Streampublic void openDirectory(long timeout)
throws InterruptedException,
TimeoutException,
StreamConnectFailedException
public InputStream getInputStream()
StreamInputStream for sending data on this stream.getInputStream in interface StreamInputStream for transferring data on this stream.public OutputStream getOutputStream()
StreamOutputStream for receiving data from this stream.getOutputStream in interface StreamOutputStream for receiving data from this stream.public void waitForSendWindowAndDecrement()
public void waitForSendWindow()
StreamwaitForSendWindow in interface Streampublic void waitForSendWindow(boolean decrement)
public void dashboardRender(DashboardRenderer renderer, PrintWriter writer, int flags) throws IOException
dashboardRender in interface DashboardRenderableIOExceptionCopyright © 2015. All rights reserved.