Class KubernetesClient
java.lang.Object
org.citrusframework.endpoint.AbstractEndpoint
org.citrusframework.kubernetes.client.KubernetesClient
- All Implemented Interfaces:
Named,Endpoint,org.citrusframework.messaging.Consumer,org.citrusframework.messaging.Producer,org.citrusframework.messaging.ReplyConsumer,org.citrusframework.messaging.SelectiveConsumer
public class KubernetesClient
extends AbstractEndpoint
implements org.citrusframework.messaging.Producer, org.citrusframework.messaging.ReplyConsumer
Kubernetes client uses Java kubernetes client implementation for executing kubernetes commands.
- Since:
- 2.7
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor initializing endpoint configuration.KubernetesClient(KubernetesEndpointConfiguration endpointConfiguration) Default constructor using endpoint configuration. -
Method Summary
Modifier and TypeMethodDescriptionorg.citrusframework.messaging.SelectiveConsumerorg.citrusframework.messaging.Producerio.fabric8.kubernetes.client.KubernetesClientGets the Kubernetes client.receive(String selector, TestContext context) receive(String selector, TestContext context, long timeout) receive(TestContext context) receive(TestContext context, long timeout) voidsend(Message message, TestContext context) Methods inherited from class org.citrusframework.endpoint.AbstractEndpoint
getActor, getConsumerName, getName, getProducerName, setActor, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.messaging.Consumer
getNameMethods inherited from interface org.citrusframework.messaging.Producer
getName
-
Constructor Details
-
KubernetesClient
public KubernetesClient()Default constructor initializing endpoint configuration. -
KubernetesClient
Default constructor using endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Details
-
getEndpointConfiguration
- Specified by:
getEndpointConfigurationin interfaceEndpoint- Overrides:
getEndpointConfigurationin classAbstractEndpoint
-
send
- Specified by:
sendin interfaceorg.citrusframework.messaging.Producer
-
receive
- Specified by:
receivein interfaceorg.citrusframework.messaging.Consumer
-
receive
- Specified by:
receivein interfaceorg.citrusframework.messaging.SelectiveConsumer
-
receive
- Specified by:
receivein interfaceorg.citrusframework.messaging.Consumer
-
receive
- Specified by:
receivein interfaceorg.citrusframework.messaging.SelectiveConsumer
-
createProducer
public org.citrusframework.messaging.Producer createProducer()- Specified by:
createProducerin interfaceEndpoint
-
createConsumer
public org.citrusframework.messaging.SelectiveConsumer createConsumer()- Specified by:
createConsumerin interfaceEndpoint
-
getClient
public io.fabric8.kubernetes.client.KubernetesClient getClient()Gets the Kubernetes client.- Returns:
-