@AntTask(value="ssdp-discover") public class SSDPDiscoverTask extends Task implements AnnotatedAntTask, ClasspathDelegateAntTask, ConfigurableAntTask, SSDPDiscoveryThread.Listener
Task
to run SSDP
discovery.
<ssdp-discover classname="String" classpathref="Reference" description="String" taskname="String" timeout="int">
<classpath .../>
</ssdp-discover>
description, location, project
Constructor and Description |
---|
SSDPDiscoverTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Default implementation for
Task subclasses. |
void |
init()
Default implementation for
Task
subclasses. |
void |
receiveEvent(SSDPDiscoveryThread thread,
SSDPMessage message)
Callback made after receiving a
SSDPMessage . |
void |
sendEvent(SSDPDiscoveryThread thread,
SSDPMessage message)
Callback made just before sending a
SSDPMessage . |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAntTaskName
log, log, log, log, log, log, log, log, log, log, log
createClasspath, delegate, delegate, getClassForName, getClassLoader, setClassname, setClasspathref
configure
public SSDPDiscoverTask()
public void init() throws BuildException
ClasspathDelegateAntTask
Task
subclasses.init
in interface ClasspathDelegateAntTask
init
in interface ConfigurableAntTask
init
in class Task
BuildException
public void execute() throws BuildException
AnnotatedAntTask
Task
subclasses. Check attributes
annotated with AntTaskAttributeConstraint
.
See AnnotatedAntTaskConfigurationChecker
.execute
in interface AnnotatedAntTask
execute
in class Task
BuildException
- If a
AntTaskAttributeConstraint.Checker
fails.public void sendEvent(SSDPDiscoveryThread thread, SSDPMessage message)
SSDPDiscoveryThread.Listener
SSDPMessage
.sendEvent
in interface SSDPDiscoveryThread.Listener
thread
- The SSDPDiscoveryThread
.message
- The SSDPMessage
.public void receiveEvent(SSDPDiscoveryThread thread, SSDPMessage message)
SSDPDiscoveryThread.Listener
SSDPMessage
.receiveEvent
in interface SSDPDiscoveryThread.Listener
thread
- The SSDPDiscoveryThread
.message
- The SSDPMessage
.Copyright © 2015–2020 Allen D. Ball. All rights reserved.