Class ExecWebSocketListener
- java.lang.Object
-
- okhttp3.WebSocketListener
-
- io.fabric8.kubernetes.client.dsl.internal.ExecWebSocketListener
-
- All Implemented Interfaces:
ExecWatch,Closeable,AutoCloseable
public class ExecWebSocketListener extends okhttp3.WebSocketListener implements ExecWatch, AutoCloseable
AWebSocketListenerfor exec operations. This listener, is only responsible for the resources it creates. Externally passed resource, will not get closed, by this listener. All other resources will be cleaned up once, ONLY when the close() method is called. ExecListener methods, onClose() and onFailure are mutually exclusive and are meant to be called once and only once. Failures that propagate after a close() operation will not be propagated.
-
-
Constructor Summary
Constructors Constructor Description ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, OutputStream errChannel, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, PipedInputStream errorChannelPipe, ExecListener listener)Deprecated.ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, OutputStream errChannel, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, PipedInputStream errorChannelPipe, ExecListener listener, Integer bufferSize)ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener)Deprecated.ExecWebSocketListener(InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the Watch.voidclose(int code, String reason)InputStreamgetError()InputStreamgetErrorChannel()OutputStreamgetInput()InputStreamgetOutput()voidonClosed(okhttp3.WebSocket webSocket, int code, String reason)voidonClosing(okhttp3.WebSocket webSocket, int code, String reason)voidonFailure(okhttp3.WebSocket webSocket, Throwable t, okhttp3.Response response)voidonMessage(okhttp3.WebSocket webSocket, okio.ByteString bytes)voidonOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)voidresize(int cols, int rows)voidwaitUntilReady()
-
-
-
Constructor Detail
-
ExecWebSocketListener
@Deprecated public ExecWebSocketListener(InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener)
Deprecated.
-
ExecWebSocketListener
@Deprecated public ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener)
Deprecated.
-
ExecWebSocketListener
@Deprecated public ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, OutputStream errChannel, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, PipedInputStream errorChannelPipe, ExecListener listener)
Deprecated.
-
ExecWebSocketListener
public ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, OutputStream errChannel, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, PipedInputStream errorChannelPipe, ExecListener listener, Integer bufferSize)
-
-
Method Detail
-
close
public void close()
Description copied from interface:ExecWatchClose the Watch.
-
close
public void close(int code, String reason)
-
waitUntilReady
public void waitUntilReady()
-
onOpen
public void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)- Overrides:
onOpenin classokhttp3.WebSocketListener
-
onFailure
public void onFailure(okhttp3.WebSocket webSocket, Throwable t, okhttp3.Response response)- Overrides:
onFailurein classokhttp3.WebSocketListener
-
onMessage
public void onMessage(okhttp3.WebSocket webSocket, okio.ByteString bytes)- Overrides:
onMessagein classokhttp3.WebSocketListener
-
onClosing
public void onClosing(okhttp3.WebSocket webSocket, int code, String reason)- Overrides:
onClosingin classokhttp3.WebSocketListener
-
onClosed
public void onClosed(okhttp3.WebSocket webSocket, int code, String reason)- Overrides:
onClosedin classokhttp3.WebSocketListener
-
getInput
public OutputStream getInput()
-
getOutput
public InputStream getOutput()
-
getError
public InputStream getError()
-
getErrorChannel
public InputStream getErrorChannel()
- Specified by:
getErrorChannelin interfaceExecWatch
-
-