io.fabric8.kubernetes.client.dsl.ExecListener Java Examples

The following examples show how to use io.fabric8.kubernetes.client.dsl.ExecListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PodOperationContext.java    From kubernetes-client with Apache License 2.0 6 votes vote down vote up
public PodOperationContext(OkHttpClient client, Config config, String plural, String namespace, String name, String apiGroupName, String apiGroupVersion, boolean cascading, Object item, Map<String, String> labels, Map<String, String[]> labelsNot, Map<String, String[]> labelsIn, Map<String, String[]> labelsNotIn, Map<String, String> fields, Map<String, String[]> fieldsNot, String resourceVersion, boolean reloadingFromServer, long gracePeriodSeconds, DeletionPropagation propagationPolicy, long watchRetryInitialBackoffMillis, double watchRetryBackoffMultiplier, String containerId, InputStream in, OutputStream out, OutputStream err, OutputStream errChannel, PipedOutputStream inPipe, PipedInputStream outPipe, PipedInputStream errPipe, PipedInputStream errChannelPipe, Boolean tty, Boolean terminatedStatus, Boolean timestampes, String sinceTimestamp, Integer sinceSeconds, Integer tailingLines, Boolean prettyOutput, Integer limitBytes, Integer bufferSize, ExecListener execListener, String file, String dir) {
  super(client, config, plural, namespace, name, apiGroupName, apiGroupVersion, cascading, item, labels, labelsNot, labelsIn, labelsNotIn, fields, fieldsNot, resourceVersion, reloadingFromServer, gracePeriodSeconds, propagationPolicy, watchRetryInitialBackoffMillis, watchRetryBackoffMultiplier);
  this.containerId = containerId;
  this.in = in;
  this.out = out;
  this.err = err;
  this.errChannel = errChannel;
  this.inPipe = inPipe;
  this.outPipe = outPipe;
  this.errPipe = errPipe;
  this.errChannelPipe = errChannelPipe;
  this.tty = tty;
  this.terminatedStatus = terminatedStatus;
  this.timestamps = timestampes;
  this.sinceTimestamp = sinceTimestamp;
  this.sinceSeconds = sinceSeconds;
  this.tailingLines = tailingLines;
  this.prettyOutput = prettyOutput;
  this.execListener = execListener;
  this.limitBytes = limitBytes;
  this.bufferSize = bufferSize;
  this.file = file;
  this.dir = dir;
}
 
Example #2
Source File: ExecWebSocketListener.java    From kubernetes-client with Apache License 2.0 6 votes vote down vote up
public ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, OutputStream errChannel, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, PipedInputStream errorChannelPipe, ExecListener listener, Integer bufferSize) {
    this.config = config;
    this.listener = listener;
    this.in = inputStreamOrPipe(in, inputPipe, toClose, bufferSize);
    this.out = outputStreamOrPipe(out, outputPipe, toClose);
    this.err = outputStreamOrPipe(err, errorPipe, toClose);
    this.errChannel = outputStreamOrPipe(errChannel, errorChannelPipe, toClose);

    this.input = inputPipe;
    this.output = outputPipe;
    this.error = errorPipe;
    this.errorChannel = errorChannelPipe;
    this.pumper = new NonBlockingInputStreamPumper(this.in, data -> {
        try {
            send(data);
        } catch (Exception e) {
            //
        }
    });
    this.objectMapper = new ObjectMapper();
}
 
Example #3
Source File: PodOperationContext.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
public ExecListener getExecListener() {
  return execListener;
}
 
Example #4
Source File: PodOperationContext.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
public PodOperationContext withExecListener(ExecListener execListener) {
  return new PodOperationContext(client, config, plural, namespace, name, apiGroupName, apiGroupVersion, cascading,item, labels, labelsNot, labelsIn, labelsNotIn, fields, fieldsNot, resourceVersion, reloadingFromServer, gracePeriodSeconds, propagationPolicy, watchRetryInitialBackoffMillis, watchRetryBackoffMultiplier, containerId, in, out, err, errChannel, inPipe, outPipe, errPipe, errChannelPipe, tty, terminatedStatus, timestamps, sinceTimestamp, sinceSeconds, tailingLines, prettyOutput, limitBytes, bufferSize, execListener, file, dir);
}
 
Example #5
Source File: ExecWebSocketListener.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
@Deprecated
public ExecWebSocketListener(InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener) {
    this(new Config(), in, out, err, inputPipe, outputPipe, errorPipe, listener);
}
 
Example #6
Source File: ExecWebSocketListener.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
@Deprecated
public ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener) {
    this(config, in, out, err, null, inputPipe, outputPipe, errorPipe, null, listener, null);
}
 
Example #7
Source File: ExecWebSocketListener.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
@Deprecated
public ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, OutputStream errChannel, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, PipedInputStream errorChannelPipe, ExecListener listener) {
    this(config, in, out, err, errChannel, inputPipe, outputPipe, errorPipe, errorChannelPipe, listener, null);
}
 
Example #8
Source File: PodOperationsImpl.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
@Override
public Execable<String, ExecWatch> usingListener(ExecListener execListener) {
    return new PodOperationsImpl(getContext().withExecListener(execListener));
}