public class JobOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.JobList,ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>> implements ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
apiVersion, listType
type
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS
POLL_INTERVAL_MS
Constructor and Description |
---|
JobOperationsImpl(ClientContext clientContext) |
JobOperationsImpl(ClientContext clientContext,
String namespace) |
JobOperationsImpl(PodControllerOperationContext context,
OperationContext superContext) |
Modifier and Type | Method and Description |
---|---|
ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job> |
fromServer() |
String |
getLog()
Get logs of a resource
|
String |
getLog(Boolean isPretty)
Get logs with pretty enabled
|
Reader |
getLogReader()
Returns an unclosed Reader.
|
Loggable<LogWatch> |
inContainer(String id)
Get logs of a specific container
|
ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job> |
load(InputStream is)
Load from an
InputStream . |
JobOperationsImpl |
newInstance(OperationContext context) |
io.fabric8.kubernetes.api.model.batch.v1.Job |
replace(io.fabric8.kubernetes.api.model.batch.v1.Job job)
Replace the server's state with the given item.
|
io.fabric8.kubernetes.api.model.autoscaling.v1.Scale |
scale() |
io.fabric8.kubernetes.api.model.batch.v1.Job |
scale(int count)
Scale the resource to given count
|
io.fabric8.kubernetes.api.model.batch.v1.Job |
scale(int count,
boolean wait)
Scale the resource to given count
|
io.fabric8.kubernetes.api.model.autoscaling.v1.Scale |
scale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale) |
LogWatch |
watchLog()
Watch logs of a resource
|
LogWatch |
watchLog(OutputStream out)
Watch logs of resource and put them inside OutputStream inside
if the OutputStream is a PipedOutputStream, it will be closed when the Watch terminates |
Loggable<LogWatch> |
withLogWaitTimeout(Integer logWaitTimeout)
While waiting for Pod logs, how long shall we wait until a Pod
becomes ready and starts producing logs
|
accept, createVisitableBuilder, edit, edit, editStatus, modifyItemForReplaceOrPatch, patch, patch, patch, patchStatus, replace, replaceStatus, requireFromServer, requireFromServer, validateOperation
appendListOptionParams, cascading, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getKind, getLabelQueryParam, getListType, getMandatory, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getVersion, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, lockResourceVersion, require, runnableInformer, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withItem, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withLabelSelector, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoff
create, create, getType
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleRawGet, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, requestException, requestException, requestFailure, requestFailure, restCall, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createOrReplace
patch, patch, patch, patch
updateStatus
editStatus
replaceStatus
patchStatus
withGracePeriod
withPropagationPolicy
lockResourceVersion
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
withResourceVersion
dryRun, dryRun
require
inform, inform, inform, informOnCondition, runnableInformer, withIndexers
create, create
getFullResourceName, getName, getNamespace
withLabel, withoutLabel
getNamespace
public JobOperationsImpl(ClientContext clientContext)
public JobOperationsImpl(ClientContext clientContext, String namespace)
public JobOperationsImpl(PodControllerOperationContext context, OperationContext superContext)
public JobOperationsImpl newInstance(OperationContext context)
newInstance
in class HasMetadataOperation<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.JobList,ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>>
public ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job> load(InputStream is)
Loadable
InputStream
.load
in interface Loadable<ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>>
load
in class BaseOperation<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.JobList,ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>>
is
- The input stream.public ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job> fromServer()
fromServer
in interface FromServerable<Gettable<io.fabric8.kubernetes.api.model.batch.v1.Job>>
fromServer
in class BaseOperation<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.JobList,ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>>
public io.fabric8.kubernetes.api.model.batch.v1.Job scale(int count)
Scaleable
public io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale()
public io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale)
public io.fabric8.kubernetes.api.model.batch.v1.Job scale(int count, boolean wait)
Scaleable
public String getLog(Boolean isPretty)
Loggable
public Reader getLogReader()
getLogReader
in interface Loggable<LogWatch>
public LogWatch watchLog()
Loggable
public LogWatch watchLog(OutputStream out)
Loggable
watchLog
in interface Loggable<LogWatch>
out
- OutputStream
for storing logspublic Loggable<LogWatch> withLogWaitTimeout(Integer logWaitTimeout)
Loggable
withLogWaitTimeout
in interface Loggable<LogWatch>
logWaitTimeout
- timeout in millisecondsLoggable
for fetching logspublic io.fabric8.kubernetes.api.model.batch.v1.Job replace(io.fabric8.kubernetes.api.model.batch.v1.Job job)
Replaceable
If Lockable.lockResourceVersion(String)
has been used to lock the resourceVersion,
this operation is effectively a single update attempt against that version.
If Lockable.lockResourceVersion(String)
has not been called, this operation
will be retried a number of times in the event of a conflict. If a resourceVersion has been set
on the item, the first update attempt will be made against that version. Subsequent attempts will fetch
the latest resourceVersion from the server.
replace
in interface Replaceable<io.fabric8.kubernetes.api.model.batch.v1.Job>
replace
in class HasMetadataOperation<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.JobList,ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>>
job
- with the replacement statepublic Loggable<LogWatch> inContainer(String id)
Containerable
inContainer
in interface Containerable<String,Loggable<LogWatch>>
id
- container for which we want logsCopyright © 2015–2020 Red Hat. All rights reserved.