org.apache.cactus.integration.ant
Class ContainerSet

java.lang.Object
  extended by org.apache.cactus.integration.ant.ContainerSet

public class ContainerSet
extends java.lang.Object

Ant data type that represents a set of J2EE containers.

Version:
$Id: ContainerSet.java 238810 2004-02-29 10:05:26Z vmassol $

Constructor Summary
ContainerSet()
           
 
Method Summary
 void addCargo(CargoElement theElement)
          Adds a nested generic container to the set of containers.
 org.codehaus.cargo.ant.CargoTask createCargo()
           
 CargoElement[] getCargos()
          Returns an iterator over the nested container elements, in the order they appear in the build file.
 int getProxyPort()
          Returns the proxy port, or -1 if no proxy port has been set.
 long getTimeout()
          Returns the timeout after which connecting to a container will be given up, or -1 if no timeout has been set.
 void setProxyPort(int theProxyPort)
          Sets the proxy port which will be used by the test caller instead of the real container port.
 void setTimeout(long theTimeout)
          Sets the timeout after which connecting to a container will be given up.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerSet

public ContainerSet()
Method Detail

addCargo

public final void addCargo(CargoElement theElement)
Adds a nested generic container to the set of containers.

Parameters:
theElement - The generic cargo element to add

createCargo

public org.codehaus.cargo.ant.CargoTask createCargo()
Returns:
CargoTask - the created cargo task.

getCargos

public final CargoElement[] getCargos()
Returns an iterator over the nested container elements, in the order they appear in the build file.

Returns:
An iterator over the nested container elements

getTimeout

public final long getTimeout()
Returns the timeout after which connecting to a container will be given up, or -1 if no timeout has been set.

Returns:
The timeout in milliseconds

setTimeout

public final void setTimeout(long theTimeout)
Sets the timeout after which connecting to a container will be given up.

Parameters:
theTimeout - The timeout in milliseconds

getProxyPort

public final int getProxyPort()
Returns the proxy port, or -1 if no proxy port has been set.

Returns:
The proxy port

setProxyPort

public final void setProxyPort(int theProxyPort)
Sets the proxy port which will be used by the test caller instead of the real container port. This can be used to insert protocol tracers between the test caller and the container.

Parameters:
theProxyPort - The proxy port to set


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.