Class AbstractWatchCommand<R extends io.fabric8.kubernetes.api.model.KubernetesResource,T extends KubernetesCommand<R>>

java.lang.Object
org.citrusframework.kubernetes.command.AbstractKubernetesCommand<R,T>
org.citrusframework.kubernetes.command.AbstractClientCommand<io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation,R,T>
org.citrusframework.kubernetes.command.AbstractWatchCommand<R,T>
All Implemented Interfaces:
KubernetesCommand<R>
Direct Known Subclasses:
WatchNamespaces, WatchNodes, WatchPods, WatchReplicationControllers, WatchServices

public abstract class AbstractWatchCommand<R extends io.fabric8.kubernetes.api.model.KubernetesResource,T extends KubernetesCommand<R>> extends AbstractClientCommand<io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation,R,T>
Since:
2.7
Author:
Christoph Deppisch
  • Constructor Details

    • AbstractWatchCommand

      public AbstractWatchCommand(String name)
      Default constructor initializing the command name.
      Parameters:
      name -
  • Method Details

    • execute

      public void execute(io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation operation, TestContext context)
      Description copied from class: AbstractClientCommand
      Execute the mixed operation
      Specified by:
      execute in class AbstractClientCommand<io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation,R extends io.fabric8.kubernetes.api.model.KubernetesResource,T extends KubernetesCommand<R>>
    • getCommandResult

      public WatchEventResult<R> getCommandResult()
      Description copied from interface: KubernetesCommand
      Provides access to this command result if any.
      Specified by:
      getCommandResult in interface KubernetesCommand<R extends io.fabric8.kubernetes.api.model.KubernetesResource>
      Overrides:
      getCommandResult in class AbstractKubernetesCommand<R extends io.fabric8.kubernetes.api.model.KubernetesResource,T extends KubernetesCommand<R>>
      Returns:
    • getWatch

      public io.fabric8.kubernetes.client.Watch getWatch()
      Gets the watch handle.
      Returns:
    • setTimeout

      public void setTimeout(long timeout)
      Sets the timeout.
      Parameters:
      timeout -
    • getTimeout

      public long getTimeout()
      Gets the timeout.
      Returns: