Package com.consol.citrus.actions
Class PurgeEndpointAction
- java.lang.Object
-
- com.consol.citrus.actions.AbstractTestAction
-
- com.consol.citrus.actions.PurgeEndpointAction
-
- All Implemented Interfaces:
com.consol.citrus.common.Described
,com.consol.citrus.common.Named
,com.consol.citrus.TestAction
,com.consol.citrus.TestActorAware
public class PurgeEndpointAction extends AbstractTestAction
Action purges all messages from a message endpoint. Action receives a list of endpoint objects or a list of endpoint names that are resolved dynamically at runtime.- Since:
- 2.4
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PurgeEndpointAction.Builder
Action builder.
-
Field Summary
-
Fields inherited from class com.consol.citrus.actions.AbstractTestAction
description
-
-
Constructor Summary
Constructors Constructor Description PurgeEndpointAction(PurgeEndpointAction.Builder builder)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doExecute(com.consol.citrus.context.TestContext context)
Subclasses may add custom execution logic here.List<String>
getEndpointNames()
Gets the endpointNames.List<com.consol.citrus.endpoint.Endpoint>
getEndpoints()
Gets the endpoints.String
getMessageSelector()
Gets the messageSelector.Map<String,Object>
getMessageSelectorMap()
Gets the messageSelector as map.long
getReceiveTimeout()
Gets the receiveTimeout.com.consol.citrus.spi.ReferenceResolver
getReferenceResolver()
Gets the bean reference resolver for endpoint name resolving.long
getSleepTime()
Gets the sleepTime.protected com.consol.citrus.endpoint.Endpoint
resolveEndpointName(String endpointName)
Resolve the endpoint by name.-
Methods inherited from class com.consol.citrus.actions.AbstractTestAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
-
-
-
-
Constructor Detail
-
PurgeEndpointAction
public PurgeEndpointAction(PurgeEndpointAction.Builder builder)
Default constructor.
-
-
Method Detail
-
doExecute
public void doExecute(com.consol.citrus.context.TestContext context)
Description copied from class:AbstractTestAction
Subclasses may add custom execution logic here.- Specified by:
doExecute
in classAbstractTestAction
-
resolveEndpointName
protected com.consol.citrus.endpoint.Endpoint resolveEndpointName(String endpointName)
Resolve the endpoint by name.- Parameters:
endpointName
- the name to resolve- Returns:
- the Endpoint object
-
getReferenceResolver
public com.consol.citrus.spi.ReferenceResolver getReferenceResolver()
Gets the bean reference resolver for endpoint name resolving.- Returns:
-
getEndpointNames
public List<String> getEndpointNames()
Gets the endpointNames.- Returns:
- the endpointNames the endpointNames to get.
-
getEndpoints
public List<com.consol.citrus.endpoint.Endpoint> getEndpoints()
Gets the endpoints.- Returns:
- the endpoints the endpoints to get.
-
getMessageSelectorMap
public Map<String,Object> getMessageSelectorMap()
Gets the messageSelector as map.- Returns:
- the messageSelectorMap
-
getMessageSelector
public String getMessageSelector()
Gets the messageSelector.- Returns:
- the messageSelector
-
getReceiveTimeout
public long getReceiveTimeout()
Gets the receiveTimeout.- Returns:
- the receiveTimeout
-
getSleepTime
public long getSleepTime()
Gets the sleepTime.- Returns:
- the sleepTime the sleepTime to get.
-
-