org.jboss.deployment.spi
Interface JBossTarget

All Superinterfaces:
Target (src)
All Known Implementing Classes:
JMXTarget (src) , LocalhostTarget (src)

public interface JBossTarget
extends Target (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.


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 getHostName()
          Get the target's host 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 interface javax.enterprise.deploy.spi.Target (src)
getDescription, getName
 

Method Detail

getHostName

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


deploy

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

Throws:
java.lang.Exception

start

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

Throws:
java.lang.Exception

stop

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

Throws:
java.lang.Exception

undeploy

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

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.

Throws:
TargetException (src)