Class JobOperationsImpl
- java.lang.Object
-
- io.fabric8.kubernetes.client.dsl.internal.OperationSupport
-
- io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation<T,T>
-
- io.fabric8.kubernetes.client.dsl.internal.BaseOperation<T,L,R>
-
- io.fabric8.kubernetes.client.dsl.internal.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>>
-
- io.fabric8.kubernetes.client.dsl.internal.batch.v1.JobOperationsImpl
-
- All Implemented Interfaces:
AnyNamespaceable<AnyNamespaceOperation<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>>>
,AnyNamespaceOperation<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>>
,BytesLimitTerminateTimeTailPrettyLoggable
,Containerable<String,Loggable>
,CreateOrReplaceable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,Deletable
,DeletableWithOptions
,DryRunable<WritableOperation<io.fabric8.kubernetes.api.model.batch.v1.Job>>
,EditReplacePatchable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,FieldValidateable<NonDeletingOperation<io.fabric8.kubernetes.api.model.batch.v1.Job>>
,Filterable<FilterWatchListDeletable<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>>>
,FilterWatchListDeletable<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>>
,Gettable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,Informable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,InOutCreateable<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.Job>
,ItemReplacable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,ItemWritableOperation<io.fabric8.kubernetes.api.model.batch.v1.Job>
,Listable<io.fabric8.kubernetes.api.model.batch.v1.JobList>
,Loggable
,MixedOperation<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>>
,Nameable<ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>>
,Namespaceable<NonNamespaceOperation<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>>>
,NonDeletingOperation<io.fabric8.kubernetes.api.model.batch.v1.Job>
,NonNamespaceOperation<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>>
,PrettyLoggable
,Replaceable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,ReplaceDeletable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,Resource<io.fabric8.kubernetes.api.model.batch.v1.Job>
,Scalable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,ScalableResource<io.fabric8.kubernetes.api.model.batch.v1.Job>
,ServerSideApplicable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,TailPrettyLoggable
,Timeoutable
,TimeoutableScalable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,TimestampBytesLimitTerminateTimeTailPrettyLoggable
,TimeTailPrettyLoggable
,Updatable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,Waitable<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.Job>
,Watchable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,WatchAndWaitable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,WritableOperation<io.fabric8.kubernetes.api.model.batch.v1.Job>
,ExtensibleResource<io.fabric8.kubernetes.api.model.batch.v1.Job>
,FromServerGettable<io.fabric8.kubernetes.api.model.batch.v1.Job>
,GracePeriodConfigurable<PropagationPolicyConfigurable<? extends Deletable>>
,ListerWatcher<io.fabric8.kubernetes.api.model.batch.v1.Job,io.fabric8.kubernetes.api.model.batch.v1.JobList>
,OperationInfo
,PropagationPolicyConfigurable<GracePeriodConfigurable<? extends Deletable>>
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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.dsl.FieldValidateable
FieldValidateable.Validation
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.BaseOperation
apiVersion, listType
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation
type
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, subresource
-
-
Constructor Summary
Constructors Constructor Description JobOperationsImpl(Client client)
JobOperationsImpl(PodOperationContext context, OperationContext superContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLog()
String
getLog(boolean isPretty)
InputStream
getLogInputStream()
Returns an unclosed InputStream.Reader
getLogReader()
Returns an unclosed Reader.Loggable
inContainer(String id)
TimeTailPrettyLoggable
limitBytes(int limitBytes)
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 diffJobOperationsImpl
newInstance(OperationContext context)
io.fabric8.kubernetes.api.model.batch.v1.Job
scale(int count)
TailPrettyLoggable
sinceSeconds(int seconds)
TailPrettyLoggable
sinceTime(String timestamp)
PrettyLoggable
tailingLines(int lines)
TimeTailPrettyLoggable
terminated()
BytesLimitTerminateTimeTailPrettyLoggable
usingTimestamps()
LogWatch
watchLog()
LogWatch
watchLog(OutputStream out)
Loggable
withLogWaitTimeout(Integer logWaitTimeout)
Loggable
withPrettyOutput()
Loggable
withReadyWaitTimeout(Integer timeout)
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperation
accept, edit, edit, editStatus, handleReplace, patch, patch, patch, patch, patch, patchStatus, patchStatus, replace, replaceStatus, scale, scale, update, update, updateStatus, waitUntilScaled
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.BaseOperation
appendListOptionParams, create, createOr, createOrReplace, createOrReplace, delete, delete, delete, deleteAll, dryRun, dryRun, edit, fetchListUrl, fieldManager, fieldValidation, forceConflicts, forOperationType, fromServer, get, getApiEndpointPath, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getItemOrRequireFromServer, getKind, getLimit, getListType, getNonNullItem, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getVersion, getWatchReconnectInterval, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, inWriteContext, isReady, isResourceNamespaced, item, list, list, list, load, load, load, load, lockResourceVersion, lockResourceVersion, newResource, replace, replaceStatus, require, requireFromServer, resource, resources, runnableInformer, serverSideApply, setListType, setType, submitList, submitWatch, subresource, unlock, updateApiVersion, updateListItems, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withLabelSelector, withLimit, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withTimeout
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation
create, getType
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
addNamespacedUrlPathParts, assertResponseCode, checkName, checkNamespace, correctNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getKubernetesSerialization, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getOperationContext, getRequestConfig, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrlParts, handleCreate, handleDelete, handleDeploymentRollback, handleGet, handleMetric, handlePatch, handlePatch, handleRaw, handleRawGet, handleResponse, handleResponse, handleScale, handleUpdate, requestException, requestException, requestFailure, requestFailure, restCall, waitForResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.AnyNamespaceOperation
delete
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.CreateOrReplaceable
create, createOrReplace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.DryRunable
dryRun
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.EditReplacePatchable
accept, edit, edit, edit, patch, patch, patch, patch, patch, patch
-
Methods inherited from interface io.fabric8.kubernetes.client.extension.ExtensibleResource
withTimeoutInMillis
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Filterable
withLabel, withoutLabel
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Informable
inform, inform, inform, informOnCondition, runnableInformer
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ItemReplacable
replace, replaceStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ItemWritableOperation
create, createOrReplace, delete, patchStatus, updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.NonDeletingOperation
createOr, editStatus, patchStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.OperationInfo
getFullResourceName, getName, getNamespace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Replaceable
replaceStatus, updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Resource
cascading, isReady, item, require
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.ServerSideApplicable
serverSideApply
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
waitUntilCondition, waitUntilReady
-
-
-
-
Constructor Detail
-
JobOperationsImpl
public JobOperationsImpl(Client client)
-
JobOperationsImpl
public JobOperationsImpl(PodOperationContext context, OperationContext superContext)
-
-
Method Detail
-
newInstance
public JobOperationsImpl newInstance(OperationContext context)
- Overrides:
newInstance
in classHasMetadataOperation<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>>
-
scale
public io.fabric8.kubernetes.api.model.batch.v1.Job scale(int count)
- Specified by:
scale
in interfaceExtensibleResource<io.fabric8.kubernetes.api.model.batch.v1.Job>
- Specified by:
scale
in interfaceScalable<io.fabric8.kubernetes.api.model.batch.v1.Job>
- Specified by:
scale
in interfaceTimeoutableScalable<io.fabric8.kubernetes.api.model.batch.v1.Job>
- Overrides:
scale
in classHasMetadataOperation<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>>
-
getLogReader
public Reader getLogReader()
Returns an unclosed Reader. It's the caller responsibility to close it.- Specified by:
getLogReader
in interfaceLoggable
- Returns:
- Reader
-
getLogInputStream
public InputStream getLogInputStream()
Returns an unclosed InputStream. It's the caller responsibility to close it.- Specified by:
getLogInputStream
in interfaceLoggable
- Returns:
- Reader
-
watchLog
public LogWatch watchLog(OutputStream out)
-
withLogWaitTimeout
public Loggable withLogWaitTimeout(Integer logWaitTimeout)
- Specified by:
withLogWaitTimeout
in interfaceLoggable
-
withReadyWaitTimeout
public Loggable withReadyWaitTimeout(Integer timeout)
- Specified by:
withReadyWaitTimeout
in interfaceLoggable
-
modifyItemForReplaceOrPatch
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)
Description copied from class:HasMetadataOperation
Modify the item prior to a replace or a JSON patch diff- Overrides:
modifyItemForReplaceOrPatch
in classHasMetadataOperation<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>>
- Parameters:
current
- item from the serverjob
- to be modified- Returns:
- the modified item
-
inContainer
public Loggable inContainer(String id)
- Specified by:
inContainer
in interfaceContainerable<String,Loggable>
-
limitBytes
public TimeTailPrettyLoggable limitBytes(int limitBytes)
- Specified by:
limitBytes
in interfaceBytesLimitTerminateTimeTailPrettyLoggable
-
terminated
public TimeTailPrettyLoggable terminated()
- Specified by:
terminated
in interfaceBytesLimitTerminateTimeTailPrettyLoggable
-
withPrettyOutput
public Loggable withPrettyOutput()
- Specified by:
withPrettyOutput
in interfacePrettyLoggable
-
tailingLines
public PrettyLoggable tailingLines(int lines)
- Specified by:
tailingLines
in interfaceTailPrettyLoggable
-
sinceTime
public TailPrettyLoggable sinceTime(String timestamp)
- Specified by:
sinceTime
in interfaceTimeTailPrettyLoggable
-
sinceSeconds
public TailPrettyLoggable sinceSeconds(int seconds)
- Specified by:
sinceSeconds
in interfaceTimeTailPrettyLoggable
-
usingTimestamps
public BytesLimitTerminateTimeTailPrettyLoggable usingTimestamps()
- Specified by:
usingTimestamps
in interfaceTimestampBytesLimitTerminateTimeTailPrettyLoggable
-
-