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 Summary
ConstructorsConstructorDescriptionAbstractWatchCommand(String name) Default constructor initializing the command name. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation operation, TestContext context) Execute the mixed operationProvides access to this command result if any.longGets the timeout.io.fabric8.kubernetes.client.WatchgetWatch()Gets the watch handle.voidsetTimeout(long timeout) Sets the timeout.Methods inherited from class org.citrusframework.kubernetes.command.AbstractClientCommand
execute, operationMethods inherited from class org.citrusframework.kubernetes.command.AbstractKubernetesCommand
getLabels, getName, getParameter, getParameters, getResultCallback, getWithoutLabels, hasParameter, label, label, name, namespace, setCommandResult, setParameters, validate, withoutLabel, withoutLabel, withParam
-
Constructor Details
-
AbstractWatchCommand
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:AbstractClientCommandExecute the mixed operation- Specified by:
executein classAbstractClientCommand<io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation,R extends io.fabric8.kubernetes.api.model.KubernetesResource, T extends KubernetesCommand<R>>
-
getCommandResult
Description copied from interface:KubernetesCommandProvides access to this command result if any.- Specified by:
getCommandResultin interfaceKubernetesCommand<R extends io.fabric8.kubernetes.api.model.KubernetesResource>- Overrides:
getCommandResultin classAbstractKubernetesCommand<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:
-