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, listType, typeapiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPERDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLISPOLL_INTERVAL_MS| Constructor and Description |
|---|
JobOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
JobOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace) |
JobOperationsImpl(PodControllerOperationContext context) |
| 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) |
io.fabric8.kubernetes.api.model.batch.v1.Job |
scale(int count,
boolean wait) |
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
|
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, requireFromServercascading, create, create, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getListType, getMandatory, getOperationType, getPropagationPolicy, getReadiness, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, lockResourceVersion, require, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withItem, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, requestException, requestFailure, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateOrReplacecreate, createpatch, patch, patch, patchupdateStatuseditStatusreplaceStatuspatchStatuswithGracePeriodwithPropagationPolicylockResourceVersionwaitUntilCondition, waitUntilReady, withWaitRetryBackoffwithResourceVersiondryRun, dryRunrequireinform, inform, inform, informOnCondition, withIndexersgetName, getNamespacewithLabel, withoutLabelpublic JobOperationsImpl(okhttp3.OkHttpClient client,
Config config)
public JobOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace)
public JobOperationsImpl(PodControllerOperationContext context)
public JobOperationsImpl newInstance(OperationContext context)
newInstance 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 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)
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)
public 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 logspublic io.fabric8.kubernetes.api.model.batch.v1.Job replace(io.fabric8.kubernetes.api.model.batch.v1.Job job)
ReplaceableIf 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)
ContainerableinContainer in interface Containerable<String,Loggable<LogWatch>>id - container for which we want logsCopyright © 2015–2020 Red Hat. All rights reserved.