public class PodOperationsImpl extends HasMetadataOperation<Pod,PodList,DoneablePod,PodResource<Pod,DoneablePod>> implements PodResource<Pod,DoneablePod>, CopyOrReadable<java.lang.Boolean,java.io.InputStream>
apiVersion, doneableType, listType, reaper, type
apiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, YAML_MAPPER
Constructor and Description |
---|
PodOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
PodOperationsImpl(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace) |
PodOperationsImpl(PodOperationContext context) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
copy(java.nio.file.Path destination) |
CopyOrReadable<java.lang.Boolean,java.io.InputStream> |
dir(java.lang.String dir) |
protected okhttp3.ResponseBody |
doGetLog() |
ExecWatch |
exec(java.lang.String... command) |
CopyOrReadable<java.lang.Boolean,java.io.InputStream> |
file(java.lang.String file) |
PodOperationContext |
getContext() |
java.lang.String |
getLog() |
java.lang.String |
getLog(java.lang.Boolean isPretty) |
protected java.lang.String |
getLogParameters() |
java.io.Reader |
getLogReader()
Returns an unclosed Reader.
|
ContainerResource<java.lang.String,LogWatch,java.io.InputStream,java.io.PipedOutputStream,java.io.OutputStream,java.io.PipedInputStream,java.lang.String,ExecWatch,java.lang.Boolean,java.io.InputStream> |
inContainer(java.lang.String containerId) |
BytesLimitTerminateTimeTailPrettyLoggable<java.lang.String,LogWatch> |
limitBytes(int limitBytes) |
PodOperationsImpl |
newInstance(OperationContext context) |
LocalPortForward |
portForward(int port)
Create a server socket on a random local port.
|
LocalPortForward |
portForward(int port,
int localPort)
Create a server socket on a specified local port.
|
PortForward |
portForward(int port,
java.nio.channels.ReadableByteChannel in,
java.nio.channels.WritableByteChannel out)
Connects directly the remote port to the given input and output channels.
|
java.io.InputStream |
read() |
TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
readingError(java.io.PipedInputStream errPipe) |
TtyExecable<java.lang.String,ExecWatch> |
readingErrorChannel(java.io.PipedInputStream errChannelPipe) |
TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
readingInput(java.io.InputStream in) |
TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
readingOutput(java.io.PipedInputStream outPipe) |
java.io.InputStream |
readTar(java.lang.String source) |
TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
redirectingError() |
TtyExecable<java.lang.String,ExecWatch> |
redirectingErrorChannel() |
TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
redirectingInput() |
TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
redirectingInput(java.lang.Integer bufferSize) |
TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
redirectingOutput() |
TailPrettyLoggable<java.lang.String,LogWatch> |
sinceSeconds(int sinceSeconds) |
TailPrettyLoggable<java.lang.String,LogWatch> |
sinceTime(java.lang.String sinceTimestamp) |
PrettyLoggable<java.lang.String,LogWatch> |
tailingLines(int withTailingLines) |
TimeTailPrettyLoggable<java.lang.String,LogWatch> |
terminated() |
Execable<java.lang.String,ExecWatch> |
usingListener(ExecListener execListener) |
BytesLimitTerminateTimeTailPrettyLoggable<java.lang.String,LogWatch> |
usingTimestamps() |
LogWatch |
watchLog() |
LogWatch |
watchLog(java.io.OutputStream out) |
Loggable<java.lang.String,LogWatch> |
withPrettyOutput() |
ExecListenable<java.lang.String,ExecWatch> |
withTTY() |
TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
writingError(java.io.OutputStream err) |
TtyExecable<java.lang.String,ExecWatch> |
writingErrorChannel(java.io.OutputStream errChannel) |
TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
writingInput(java.io.PipedOutputStream inPipe) |
TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> |
writingOutput(java.io.OutputStream out) |
edit, patch, periodicWatchUntilReady, replace, waitUntilReady
cascading, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, forOperationType, fromServer, get, getApiVersion, getConfigType, getDoneableType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getPropagationPolicy, getReloadingFromServer, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleGet, handlePatch, handleReplace, handleResponse, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReaping, isReloadingFromServer, isResourceNamespaced, list, list, load, load, load, load, lockResourceVersion, require, setReaping, updateApiVersion, updateApiVersion, updateApiVersionResource, waitUntilCondition, waitUntilExists, watch, watch, withField, withFields, withGracePeriod, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getResourceUrl, getResourceUrl, getRootUrl, handleCreate, handleDelete, handleDelete, handleGet, handleGet, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleResponse, requestException, requestFailure, unmarshal, unmarshal, unmarshal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createOrReplace, createOrReplaceWithNew
create, createNew
fromServer
replace
withGracePeriod
withPropagationPolicy
lockResourceVersion
withResourceVersion
waitUntilCondition, waitUntilReady
require
getName, getNamespace
public PodOperationsImpl(okhttp3.OkHttpClient client, Config config)
public PodOperationsImpl(okhttp3.OkHttpClient client, Config config, java.lang.String namespace)
public PodOperationsImpl(PodOperationContext context)
public PodOperationsImpl newInstance(OperationContext context)
newInstance
in class BaseOperation<Pod,PodList,DoneablePod,PodResource<Pod,DoneablePod>>
public PodOperationContext getContext()
protected java.lang.String getLogParameters()
protected okhttp3.ResponseBody doGetLog()
public java.lang.String getLog()
public java.io.Reader getLogReader()
getLogReader
in interface Loggable<java.lang.String,LogWatch>
public java.lang.String getLog(java.lang.Boolean isPretty)
public LogWatch watchLog()
public LogWatch watchLog(java.io.OutputStream out)
public PortForward portForward(int port, java.nio.channels.ReadableByteChannel in, java.nio.channels.WritableByteChannel out)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,java.nio.channels.ReadableByteChannel,java.nio.channels.WritableByteChannel>
port
- port as integerin
- input channelout
- output channelpublic LocalPortForward portForward(int port)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,java.nio.channels.ReadableByteChannel,java.nio.channels.WritableByteChannel>
port
- port as integerpublic LocalPortForward portForward(int port, int localPort)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,java.nio.channels.ReadableByteChannel,java.nio.channels.WritableByteChannel>
port
- port in integerlocalPort
- local port in integerpublic ContainerResource<java.lang.String,LogWatch,java.io.InputStream,java.io.PipedOutputStream,java.io.OutputStream,java.io.PipedInputStream,java.lang.String,ExecWatch,java.lang.Boolean,java.io.InputStream> inContainer(java.lang.String containerId)
inContainer
in interface Containerable<java.lang.String,ContainerResource<java.lang.String,LogWatch,java.io.InputStream,java.io.PipedOutputStream,java.io.OutputStream,java.io.PipedInputStream,java.lang.String,ExecWatch,java.lang.Boolean,java.io.InputStream>>
public ExecWatch exec(java.lang.String... command)
public CopyOrReadable<java.lang.Boolean,java.io.InputStream> file(java.lang.String file)
file
in interface FileSelector<CopyOrReadable<java.lang.Boolean,java.io.InputStream>>
public CopyOrReadable<java.lang.Boolean,java.io.InputStream> dir(java.lang.String dir)
dir
in interface FileSelector<CopyOrReadable<java.lang.Boolean,java.io.InputStream>>
public java.lang.Boolean copy(java.nio.file.Path destination)
public java.io.InputStream read()
public java.io.InputStream readTar(java.lang.String source) throws java.lang.Exception
java.lang.Exception
public TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> readingInput(java.io.InputStream in)
readingInput
in interface Inputable<java.io.InputStream,java.io.PipedOutputStream,TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> writingInput(java.io.PipedOutputStream inPipe)
writingInput
in interface Inputable<java.io.InputStream,java.io.PipedOutputStream,TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> redirectingInput()
redirectingInput
in interface Inputable<java.io.InputStream,java.io.PipedOutputStream,TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> redirectingInput(java.lang.Integer bufferSize)
redirectingInput
in interface Inputable<java.io.InputStream,java.io.PipedOutputStream,TtyExecOutputErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> writingOutput(java.io.OutputStream out)
writingOutput
in interface Outputable<java.io.OutputStream,java.io.PipedInputStream,TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> readingOutput(java.io.PipedInputStream outPipe)
readingOutput
in interface Outputable<java.io.OutputStream,java.io.PipedInputStream,TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> redirectingOutput()
redirectingOutput
in interface Outputable<java.io.OutputStream,java.io.PipedInputStream,TtyExecErrorable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> writingError(java.io.OutputStream err)
writingError
in interface Errorable<java.io.OutputStream,java.io.PipedInputStream,TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> readingError(java.io.PipedInputStream errPipe)
readingError
in interface Errorable<java.io.OutputStream,java.io.PipedInputStream,TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch> redirectingError()
redirectingError
in interface Errorable<java.io.OutputStream,java.io.PipedInputStream,TtyExecErrorChannelable<java.lang.String,java.io.OutputStream,java.io.PipedInputStream,ExecWatch>>
public TtyExecable<java.lang.String,ExecWatch> writingErrorChannel(java.io.OutputStream errChannel)
writingErrorChannel
in interface ErrorChannelable<java.io.OutputStream,java.io.PipedInputStream,TtyExecable<java.lang.String,ExecWatch>>
public TtyExecable<java.lang.String,ExecWatch> readingErrorChannel(java.io.PipedInputStream errChannelPipe)
readingErrorChannel
in interface ErrorChannelable<java.io.OutputStream,java.io.PipedInputStream,TtyExecable<java.lang.String,ExecWatch>>
public TtyExecable<java.lang.String,ExecWatch> redirectingErrorChannel()
redirectingErrorChannel
in interface ErrorChannelable<java.io.OutputStream,java.io.PipedInputStream,TtyExecable<java.lang.String,ExecWatch>>
public ExecListenable<java.lang.String,ExecWatch> withTTY()
withTTY
in interface Ttyable<ExecListenable<java.lang.String,ExecWatch>>
public Loggable<java.lang.String,LogWatch> withPrettyOutput()
withPrettyOutput
in interface Prettyable<Loggable<java.lang.String,LogWatch>>
public PrettyLoggable<java.lang.String,LogWatch> tailingLines(int withTailingLines)
tailingLines
in interface Tailable<PrettyLoggable<java.lang.String,LogWatch>>
public TailPrettyLoggable<java.lang.String,LogWatch> sinceTime(java.lang.String sinceTimestamp)
sinceTime
in interface Timeable<TailPrettyLoggable<java.lang.String,LogWatch>>
public TailPrettyLoggable<java.lang.String,LogWatch> sinceSeconds(int sinceSeconds)
sinceSeconds
in interface Timeable<TailPrettyLoggable<java.lang.String,LogWatch>>
public TimeTailPrettyLoggable<java.lang.String,LogWatch> terminated()
terminated
in interface Terminateable<TimeTailPrettyLoggable<java.lang.String,LogWatch>>
public Execable<java.lang.String,ExecWatch> usingListener(ExecListener execListener)
usingListener
in interface Listenable<Execable<java.lang.String,ExecWatch>,ExecListener>
public BytesLimitTerminateTimeTailPrettyLoggable<java.lang.String,LogWatch> limitBytes(int limitBytes)
limitBytes
in interface BytesLimitable<TimeTailPrettyLoggable<java.lang.String,LogWatch>>
public BytesLimitTerminateTimeTailPrettyLoggable<java.lang.String,LogWatch> usingTimestamps()
usingTimestamps
in interface Timestampable<BytesLimitTerminateTimeTailPrettyLoggable<java.lang.String,LogWatch>>
Copyright © 2015-2019 Red Hat. All Rights Reserved.