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
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 . |
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, validateOperation
appendListOptionParams, 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, 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
lockResourceVersion
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
withResourceVersion
createOrReplace
patch, patch, patch, patch
updateStatus
editStatus
replaceStatus
patchStatus
replace
withGracePeriod
withPropagationPolicy
dryRun, dryRun
require
inform, inform, inform, informOnCondition, runnableInformer, withIndexers, withLimit
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 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)
HasMetadataOperation
modifyItemForReplaceOrPatch
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)
Containerable
inContainer
in interface Containerable<String,Loggable<LogWatch>>
id
- container for which we want logsCopyright © 2015–2022 Red Hat. All rights reserved.