org.codehaus.cargo.container
Interface Container

All Superinterfaces:
Loggable
All Known Subinterfaces:
EmbeddedLocalContainer, InstalledLocalContainer, LocalContainer, RemoteContainer
All Known Implementing Classes:
AbstractContainer, AbstractEmbeddedLocalContainer, AbstractInstalledLocalContainer, AbstractLocalContainer, AbstractRemoteContainer

public interface Container
extends Loggable

Common container API to wrap a physical container. There can be specialized types of containers such as LocalContainer or RemoteContainer.

Version:
$Id: Container.java 1705 2008-09-02 13:14:55Z adriana $

Method Summary
 ContainerCapability getCapability()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 State getState()
           
 ContainerType getType()
           
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Method Detail

getId

java.lang.String getId()
Returns:
the short name of the container. Note: this is not a unique id. It is simply the name in a computer-usable format.

getName

java.lang.String getName()
Returns:
the human readable name of the Container (ex: "Resin 3.x", "JBoss 3.0.8", etc).

getCapability

ContainerCapability getCapability()
Returns:
the ContainerCapability of the container in term of ability to deploy such and such type of Deployables (eg WAR, EAR, etc).

getState

State getState()
Returns:
the container state (Valid states are Container.STOPPED, Container.STARTED, Container.STARTING and Container.STOPPING)

getType

ContainerType getType()
Returns:
the container's type (local , remote, etc)


Copyright © 2004-2011 Codehaus. All Rights Reserved.