Class DistributerDef

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
net.sf.antcontrib.cpptasks.DistributerDef
All Implemented Interfaces:
Cloneable

public final class DistributerDef extends org.apache.tools.ant.types.DataType
Distributed build information (Non-functional prototype).
  • Field Summary

    Fields inherited from class org.apache.tools.ant.types.DataType

    checked, ref

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Local to remote filename maps.
    void
    Required by documentation generator.
    Gets hosts.
    Gets protocol.
    int
    Gets tcp cork.
    boolean
    Returns true if the if and unless conditions (if any) are satisfied.
    void
    Sets hosts.
    void
    Sets an id that can be used to reference this element.
    void
    setIf(String propName)
    Sets the property name for the 'if' condition.
    void
    Sets protocol.
    void
    setRefid(org.apache.tools.ant.types.Reference r)
    Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location.
    void
    setTcpcork(int value)
    Sets TCP_CORK value.
    void
    setUnless(String propName)
    Set the property name for the 'unless' condition.
    void
    setUser(String value)
    Sets remote user name.

    Methods inherited from class org.apache.tools.ant.types.DataType

    checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DistributerDef

      public DistributerDef()
      Constructor.
  • Method Details

    • execute

      public void execute()
      Required by documentation generator.
    • isActive

      public boolean isActive()
      Returns true if the if and unless conditions (if any) are satisfied.
      Returns:
      true if definition is active.
    • setId

      public void setId(String id)
      Sets an id that can be used to reference this element.
      Parameters:
      id - id
    • setIf

      public void setIf(String propName)
      Sets the property name for the 'if' condition. The define will be ignored unless the property is defined. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") will throw an exception when evaluated.
      Parameters:
      propName - property name
    • setRefid

      public void setRefid(org.apache.tools.ant.types.Reference r)
      Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location. If specified, no other attributes should be specified.
      Overrides:
      setRefid in class org.apache.tools.ant.types.DataType
      Parameters:
      r - reference name
    • setUnless

      public void setUnless(String propName)
      Set the property name for the 'unless' condition. If named property is set, the define will be ignored. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") of the behavior will throw an exception when evaluated.
      Parameters:
      propName - name of property
    • getHosts

      public String getHosts()
      Gets hosts.
      Returns:
      hosts, may be null.
    • getTcpcork

      public int getTcpcork()
      Gets tcp cork.
      Returns:
      TCP_CORK value.
    • getProtocol

      public DistributerProtocolEnum getProtocol()
      Gets protocol.
      Returns:
      protocol, may be null.
    • setHosts

      public void setHosts(String value)
      Sets hosts.
      Parameters:
      value - new value
    • setTcpcork

      public void setTcpcork(int value)
      Sets TCP_CORK value.
      Parameters:
      value - new value
    • setProtocol

      public void setProtocol(DistributerProtocolEnum value)
      Sets protocol.
      Parameters:
      value - new value
    • createMap

      public DistributerMap createMap()
      Local to remote filename maps.
      Returns:
      new map
    • setUser

      public void setUser(String value)
      Sets remote user name.
      Parameters:
      value - user name