public interface ExecListener
long running operations should not be called as these methods are called directly from the IO thread.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ExecListener.Response |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(int code,
String reason)
Called when the server sends a close message.
|
default void |
onExit(int code,
io.fabric8.kubernetes.api.model.Status status)
Called after a Status message is seen on channel 3.
|
default void |
onFailure(Throwable t,
ExecListener.Response failureResponse)
Called when the transport or protocol layer of this web socket errors during communication.
|
default void |
onOpen()
Called when the request has successfully been upgraded to a web socket.
|
default void onOpen()
default void onFailure(Throwable t, ExecListener.Response failureResponse)
t - ThrowablefailureResponse - non-null if the failure is caused by the handshakevoid onClose(int code,
String reason)
code - The RFC-compliant
status code.reason - Reason for close or an empty string.default void onExit(int code,
io.fabric8.kubernetes.api.model.Status status)
See https://github.com/kubernetes/kubernetes/issues/89899 - which explains there's currently no way to indicate end of input over a websocket, so you may not get an exit code when using stdIn.
See also ExecWatch.exitCode()
code - the exit code, -1 will be used if the code cannot be determinedstatus - may be null if no valid status was receivedCopyright © 2015–2024 Red Hat. All rights reserved.