Package com.nike.pdm.localstack.aws.sqs
Class PublishSqsTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- com.nike.pdm.localstack.aws.sqs.PublishSqsTask
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.Task
,org.gradle.util.Configurable<org.gradle.api.Task>
public class PublishSqsTask extends org.gradle.api.DefaultTask
Task that publishes messages to SQS queues.
-
-
Constructor Summary
Constructors Constructor Description PublishSqsTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getGroup()
java.util.List<java.io.File>
getMessages()
Gets the message files to publish.java.util.List<java.lang.String>
getQueueNames()
Gets the names of the queues to which to publish messages.void
run()
void
setMessage(java.lang.String path)
Sets the message files to publish.void
setMessages(java.util.List<java.io.File> messages)
Sets the message files to publish.void
setQueueNames(java.lang.String queues)
Sets the names of the queues to which to publish messages.void
setQueueNames(java.util.List<java.lang.String> queueNames)
Sets the names of the queues to which to publish messages.-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
-
-
-
Method Detail
-
run
public void run()
-
getGroup
@Internal public java.lang.String getGroup()
- Specified by:
getGroup
in interfaceorg.gradle.api.Task
- Overrides:
getGroup
in classorg.gradle.api.internal.AbstractTask
-
getDescription
@Internal public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceorg.gradle.api.Task
- Overrides:
getDescription
in classorg.gradle.api.internal.AbstractTask
-
getQueueNames
public java.util.List<java.lang.String> getQueueNames()
Gets the names of the queues to which to publish messages.- Returns:
- queue names
-
setQueueNames
public void setQueueNames(java.util.List<java.lang.String> queueNames)
Sets the names of the queues to which to publish messages.- Parameters:
queueNames
- queue names
-
setQueueNames
public void setQueueNames(java.lang.String queues)
Sets the names of the queues to which to publish messages. This method supports providing the queue names as a comma-delimited list of names.- Parameters:
queues
- queue names
-
getMessages
public java.util.List<java.io.File> getMessages()
Gets the message files to publish. Message files may be a single file, a directory containing multiple files, or a tar.gz archive of multiple files.- Returns:
- messages files
-
setMessages
public void setMessages(java.util.List<java.io.File> messages)
Sets the message files to publish. Message files may be a single file, a directory containing multiple files, or a tar.gz archive of multiple files.- Parameters:
messages
- files
-
setMessage
public void setMessage(java.lang.String path)
Sets the message files to publish. Message files may be a single file, a directory containing multiple files, or a tar.gz archive of multiple files.- Parameters:
path
- message file path
-
-