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_POLICYapiVersion, listTypetypeapiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCHDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLISPOLL_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. |
protected io.fabric8.kubernetes.api.model.batch.v1.Job |
modifyItemForReplaceOrPatch(Supplier<io.fabric8.kubernetes.api.model.batch.v1.Job> current,
io.fabric8.kubernetes.api.model.batch.v1.Job job)
Modify the item prior to a replace or a JSON patch diff
|
JobOperationsImpl |
newInstance(OperationContext context) |
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, patch, patch, patch, patchStatus, replace, replace, replaceStatus, requireFromServer, requireFromServer, validateOperationappendListOptionParams, cascading, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getKind, getLabelQueryParam, getLimit, 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, withLimit, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffcreate, create, getTypeassertResponseCode, 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, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlockResourceVersionwaitUntilCondition, waitUntilReady, withWaitRetryBackoffwithResourceVersioncreateOrReplacepatch, patch, patch, patchupdateStatuseditStatusreplaceStatuspatchStatusreplacewithGracePeriodwithPropagationPolicydryRun, dryRunrequireinform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimitcreate, creategetFullResourceName, getName, getNamespacewithLabel, withoutLabelgetNamespacepublic 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)
LoadableInputStream.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)
Scaleablepublic 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)
Scaleablepublic String getLog(Boolean isPretty)
Loggablepublic Reader getLogReader()
getLogReader in interface Loggable<LogWatch>public LogWatch watchLog()
Loggablepublic LogWatch watchLog(OutputStream out)
LoggablewatchLog in interface Loggable<LogWatch>out - OutputStream for storing logspublic Loggable<LogWatch> withLogWaitTimeout(Integer logWaitTimeout)
LoggablewithLogWaitTimeout in interface Loggable<LogWatch>logWaitTimeout - timeout in millisecondsLoggable for fetching logsprotected io.fabric8.kubernetes.api.model.batch.v1.Job modifyItemForReplaceOrPatch(Supplier<io.fabric8.kubernetes.api.model.batch.v1.Job> current, io.fabric8.kubernetes.api.model.batch.v1.Job job)
HasMetadataOperationmodifyItemForReplaceOrPatch 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>>current - item from the serverjob - to be modifiedpublic Loggable<LogWatch> inContainer(String id)
ContainerableinContainer in interface Containerable<String,Loggable<LogWatch>>id - container for which we want logsCopyright © 2015–2022 Red Hat. All rights reserved.