org.codehaus.cargo.container.spi
Class AbstractRemoteContainer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.AbstractContainer
          extended by org.codehaus.cargo.container.spi.AbstractRemoteContainer
All Implemented Interfaces:
Container, RemoteContainer, Loggable

public abstract class AbstractRemoteContainer
extends AbstractContainer
implements RemoteContainer

Base implementation of a remote container.

Version:
$Id: AbstractRemoteContainer.java 969 2006-03-27 11:34:18Z vmassol $

Constructor Summary
AbstractRemoteContainer(RuntimeConfiguration configuration)
          Default constructor.
 
Method Summary
 RuntimeConfiguration getConfiguration()
          
 State getState()
          
 ContainerType getType()
          
 void setConfiguration(RuntimeConfiguration configuration)
          
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.container.Container
getCapability, getId, getName
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

AbstractRemoteContainer

public AbstractRemoteContainer(RuntimeConfiguration configuration)
Default constructor.

Parameters:
configuration - the configuration to associate to this container. It can be changed later on by calling setConfiguration(RuntimeConfiguration)
Method Detail

setConfiguration

public void setConfiguration(RuntimeConfiguration configuration)

Specified by:
setConfiguration in interface RemoteContainer
Parameters:
configuration - the runtime configuration implementation to use
See Also:
RemoteContainer.setConfiguration(RuntimeConfiguration)

getConfiguration

public RuntimeConfiguration getConfiguration()

Specified by:
getConfiguration in interface RemoteContainer
Returns:
the runtime configuration to use
See Also:
RemoteContainer.getConfiguration()

getState

public State getState()

Specified by:
getState in interface Container
Returns:
the container state (Valid states are Container.STOPPED, Container.STARTED, Container.STARTING and Container.STOPPING)
See Also:
Container.getState()

getType

public ContainerType getType()

Specified by:
getType in interface Container
Returns:
the container's type (local , remote, etc)
See Also:
Container.getType()


Copyright © 2004-2011 Codehaus. All Rights Reserved.