Class JobOperationsImpl

    • Constructor Detail

      • JobOperationsImpl

        public JobOperationsImpl​(okhttp3.OkHttpClient client,
                                 Config config)
      • JobOperationsImpl

        public JobOperationsImpl​(okhttp3.OkHttpClient client,
                                 Config config,
                                 String namespace)
    • Method Detail

      • load

        public ScalableResource<io.fabric8.kubernetes.api.model.batch.Job> load​(InputStream is)
        Description copied from interface: Loadable
        Load from an InputStream.
        Specified by:
        load in interface Loadable<ScalableResource<io.fabric8.kubernetes.api.model.batch.Job>>
        Overrides:
        load in class BaseOperation<io.fabric8.kubernetes.api.model.batch.Job,​io.fabric8.kubernetes.api.model.batch.JobList,​ScalableResource<io.fabric8.kubernetes.api.model.batch.Job>>
        Parameters:
        is - The input stream.
        Returns:
        returns de-serialized object
      • scale

        public io.fabric8.kubernetes.api.model.batch.Job scale​(int count)
        Specified by:
        scale in interface Scaleable<io.fabric8.kubernetes.api.model.batch.Job>
      • scale

        public io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale()
        Specified by:
        scale in interface Scaleable<io.fabric8.kubernetes.api.model.batch.Job>
      • scale

        public io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale​(io.fabric8.kubernetes.api.model.autoscaling.v1.Scale scale)
        Specified by:
        scale in interface Scaleable<io.fabric8.kubernetes.api.model.batch.Job>
      • scale

        public io.fabric8.kubernetes.api.model.batch.Job scale​(int count,
                                                               boolean wait)
        Specified by:
        scale in interface Scaleable<io.fabric8.kubernetes.api.model.batch.Job>
      • getLog

        public String getLog()
        Description copied from interface: Loggable
        Get logs of a resource
        Specified by:
        getLog in interface Loggable<LogWatch>
        Returns:
        logs as string
      • getLog

        public String getLog​(Boolean isPretty)
        Description copied from interface: Loggable
        Get logs with pretty enabled
        Specified by:
        getLog in interface Loggable<LogWatch>
        Parameters:
        isPretty - whether we need logs with pretty output or not
        Returns:
        logs as string
      • getLogReader

        public Reader getLogReader()
        Returns an unclosed Reader. It's the caller responsibility to close it.
        Specified by:
        getLogReader in interface Loggable<LogWatch>
        Returns:
        Reader
      • watchLog

        public LogWatch watchLog()
        Description copied from interface: Loggable
        Watch logs of a resource
        Specified by:
        watchLog in interface Loggable<LogWatch>
        Returns:
        returns a Closeable interface for log watch
      • watchLog

        public LogWatch watchLog​(OutputStream out)
        Description copied from interface: Loggable
        Watch logs of resource and put them inside OutputStream inside
        Specified by:
        watchLog in interface Loggable<LogWatch>
        Parameters:
        out - OutputStream for storing logs
        Returns:
        returns a Closeable interface for log watch
      • withLogWaitTimeout

        public Loggable<LogWatch> withLogWaitTimeout​(Integer logWaitTimeout)
        Description copied from interface: Loggable
        While waiting for Pod logs, how long shall we wait until a Pod becomes ready and starts producing logs
        Specified by:
        withLogWaitTimeout in interface Loggable<LogWatch>
        Parameters:
        logWaitTimeout - timeout in milliseconds
        Returns:
        Loggable for fetching logs
      • replace

        public io.fabric8.kubernetes.api.model.batch.Job replace​(io.fabric8.kubernetes.api.model.batch.Job job)
        Specified by:
        replace in interface Replaceable<io.fabric8.kubernetes.api.model.batch.Job>
        Overrides:
        replace in class HasMetadataOperation<io.fabric8.kubernetes.api.model.batch.Job,​io.fabric8.kubernetes.api.model.batch.JobList,​ScalableResource<io.fabric8.kubernetes.api.model.batch.Job>>
      • edit

        public io.fabric8.kubernetes.api.model.batch.Job edit​(io.fabric8.kubernetes.api.builder.Visitor... visitors)
        Specified by:
        edit in interface Editable<io.fabric8.kubernetes.api.model.batch.Job>
        Overrides:
        edit in class BaseOperation<io.fabric8.kubernetes.api.model.batch.Job,​io.fabric8.kubernetes.api.model.batch.JobList,​ScalableResource<io.fabric8.kubernetes.api.model.batch.Job>>