org.ow2.ishmael.deploy.spi.impl
Interface IDeploymentSpecific

All Known Implementing Classes:
AbsDeploymentSpecific, DeploymentSpecificEasyBeans, DeploymentSpecificJOnAS

public interface IDeploymentSpecific

Interface that all implementation needs to implement

Author:
Florent Benoit

Field Summary
static int AVAILABLE
          State of the modules distributed on the Server but undeployed
static int RUNNING
          State of the modules deployed on the Server
 
Method Summary
 void deployApplication(java.util.Properties p)
          deploy application p
 java.util.List getDeployedModules(javax.enterprise.deploy.shared.ModuleType type)
           
 java.util.List listModules(javax.enterprise.deploy.shared.ModuleType type, int state)
          List modules type in a given state
 java.lang.String sendFile(byte[] file, java.lang.String name)
          distribute (send) the file on the server and copy the result file into JOnAS server directory for deployment
 void stopApplication(java.util.Properties p)
          Stop application p
 void undeployApplication(java.util.Properties p)
          Undeploy application p
 

Field Detail

AVAILABLE

static final int AVAILABLE
State of the modules distributed on the Server but undeployed

See Also:
Constant Field Values

RUNNING

static final int RUNNING
State of the modules deployed on the Server

See Also:
Constant Field Values
Method Detail

listModules

java.util.List listModules(javax.enterprise.deploy.shared.ModuleType type,
                           int state)
                           throws DeploymentException
List modules type in a given state

Parameters:
state - of the module
J2EE - module types
Returns:
a list of J2EE modules in the given state
Throws:
DeploymentException

getDeployedModules

java.util.List getDeployedModules(javax.enterprise.deploy.shared.ModuleType type)
                                  throws DeploymentException
Throws:
DeploymentException

sendFile

java.lang.String sendFile(byte[] file,
                          java.lang.String name)
                          throws DeploymentException
distribute (send) the file on the server and copy the result file into JOnAS server directory for deployment

Parameters:
type - of the archive
file - Byte Array representing the file to upload
name - name of the file
Returns:
path to the distributed file
Throws:
DeploymentException

deployApplication

void deployApplication(java.util.Properties p)
                       throws DeploymentException
deploy application p

Parameters:
p -
Throws:
DeploymentException

stopApplication

void stopApplication(java.util.Properties p)
                     throws DeploymentException
Stop application p

Parameters:
p -
Throws:
DeploymentException

undeployApplication

void undeployApplication(java.util.Properties p)
                         throws DeploymentException
Undeploy application p

Parameters:
p -
Throws:
DeploymentException


Copyright © 2007-2010 OW2 Consortium. All Rights Reserved.