org.jboss.deployment.spi
Class LocalhostTarget

java.lang.Object
  extended byorg.jboss.deployment.spi.LocalhostTarget
All Implemented Interfaces:
JBossTarget (src) , Target (src)

public class LocalhostTarget
extends java.lang.Object
implements JBossTarget (src)

A Target interface represents a single logical core server of one instance of a J2EE platform product. It is a designator for a server and the implied location to copy a configured application for the server to access.


Constructor Summary
LocalhostTarget()
           
 
Method Summary
 void deploy(TargetModuleID (src)  targetModuleID)
          Deploy a given module
 TargetModuleID (src) [] getAvailableModules(ModuleType (src)  moduleType)
          Retrieve the list of all J2EE application modules running or not running on the identified targets.
 java.lang.String getDescription()
          Get the target's description
 java.lang.String getHostName()
          Get the target's host name
 java.lang.String getName()
          Get the target's name
 void start(TargetModuleID (src)  targetModuleID)
          Start a given module
 void stop(TargetModuleID (src)  targetModuleID)
          Stop a given module
 void undeploy(TargetModuleID (src)  targetModuleID)
          Undeploy a given module
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalhostTarget

public LocalhostTarget()
Method Detail

getDescription

public java.lang.String getDescription()
Get the target's description

Specified by:
getDescription in interface Target (src)
Returns:
the description

getName

public java.lang.String getName()
Get the target's name

Specified by:
getName in interface Target (src)
Returns:
the name

getHostName

public java.lang.String getHostName()
Get the target's host name

Specified by:
getHostName in interface JBossTarget (src)

deploy

public void deploy(TargetModuleID (src)  targetModuleID)
            throws java.lang.Exception
Deploy a given module

Specified by:
deploy in interface JBossTarget (src)
Throws:
java.lang.Exception

start

public void start(TargetModuleID (src)  targetModuleID)
           throws java.lang.Exception
Start a given module

Specified by:
start in interface JBossTarget (src)
Throws:
java.lang.Exception

stop

public void stop(TargetModuleID (src)  targetModuleID)
          throws java.lang.Exception
Stop a given module

Specified by:
stop in interface JBossTarget (src)
Throws:
java.lang.Exception

undeploy

public void undeploy(TargetModuleID (src)  targetModuleID)
              throws java.lang.Exception
Undeploy a given module

Specified by:
undeploy in interface JBossTarget (src)
Throws:
java.lang.Exception

getAvailableModules

public TargetModuleID (src) [] getAvailableModules(ModuleType (src)  moduleType)
                                     throws TargetException (src) 
Retrieve the list of all J2EE application modules running or not running on the identified targets.

Specified by:
getAvailableModules in interface JBossTarget (src)
Throws:
TargetException (src)