org.codehaus.cargo.container.spi.util
Class ContainerUtils

java.lang.Object
  extended byorg.codehaus.cargo.container.spi.util.ContainerUtils

public final class ContainerUtils
extends java.lang.Object

Set of common Container utility methods for people extending Cargo.

Version:
$Id: ContainerUtils.java 938 2006-03-17 14:53:32Z vmassol $

Method Summary
static java.net.URL getCPCURL(Configuration configuration)
           
static void waitTillContainerIsStopped(Container container)
          Wait indefinitely till the container is stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCPCURL

public static java.net.URL getCPCURL(Configuration configuration)
Parameters:
configuration - the configuration from which to derive the CPC URL. We need it to get the hostname, the port, etc.
Returns:
the CPC Cargo URL

waitTillContainerIsStopped

public static void waitTillContainerIsStopped(Container container)
Wait indefinitely till the container is stopped.

Parameters:
container - the local container


Copyright © 2004-2007 Codehaus. All Rights Reserved.