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

Method Summary
 void deployApplication(java.util.Properties p)
          deploy application p
 java.lang.String deployFile(javax.enterprise.deploy.shared.ModuleType type, byte[] file, java.lang.String name, java.lang.String[] genicArgs)
          deploy the file on the server : call genic to generate class for JOnAS and copy the result file into JOnAS server directory for deployment
 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
 

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 - STATUS_RUNNING = 1, STATUS_STOPPED = 2, STATUS_ALL = 0
type - TYPE_JAR = 1, TYPE_WAR = 2, TYPE_EAR = 3, TYPE_RAR = 4 public final int TYPE_CAR = 5;
Returns:
Throws:
DeploymentException

deployFile

java.lang.String deployFile(javax.enterprise.deploy.shared.ModuleType type,
                            byte[] file,
                            java.lang.String name,
                            java.lang.String[] genicArgs)
                            throws DeploymentException
deploy the file on the server : call genic to generate class for JOnAS and copy the result file into JOnAS server directory for deployment

Parameters:
type -
file -
name -
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-2008 OW2 Consortium. All Rights Reserved.