|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.deployment.DeploymentEngine
public abstract class DeploymentEngine
Field Summary | |
---|---|
protected AxisConfiguration |
axisConfig
to keep a ref to engine register this ref will pass to engine when it call start() method |
protected ConfigurationContext |
configContext
|
protected boolean |
hotDeployment
Support for hot deployment is controlled by this flag |
protected boolean |
hotUpdate
Support for hot update is controlled by this flag |
protected ModuleDeployer |
moduleDeployer
|
protected java.io.File |
modulesDir
|
protected java.lang.String |
modulesPath
|
protected RepositoryListener |
repoListener
|
protected Scheduler |
scheduler
|
protected ServiceDeployer |
serviceDeployer
|
protected java.io.File |
servicesDir
|
protected java.lang.String |
servicesPath
|
protected static java.lang.String |
webLocationString
|
protected java.util.List |
wsToDeploy
Stores all the web Services to deploy. |
protected java.util.List |
wsToUnDeploy
Stores all the web Services to undeploy. |
Constructor Summary | |
---|---|
DeploymentEngine()
|
Method Summary | |
---|---|
static void |
addNewModule(AxisModule modulemetadata,
AxisConfiguration axisConfiguration)
|
static void |
addServiceGroup(AxisServiceGroup serviceGroup,
java.util.ArrayList serviceList,
java.net.URL serviceLocation,
DeploymentFileData currentDeploymentFile,
AxisConfiguration axisConfiguration)
|
void |
addWSToDeploy(DeploymentFileData file)
|
void |
addWSToUndeploy(WSInfo file)
|
static AxisModule |
buildModule(java.io.File modulearchive,
AxisConfiguration config)
Builds an AxisModule for a given module archive file. |
static AxisService |
buildService(java.io.InputStream serviceInputStream,
ConfigurationContext configCtx)
Fills an axisservice object using services.xml. |
static AxisServiceGroup |
buildServiceGroup(java.io.InputStream servicesxml,
java.lang.ClassLoader classLoader,
java.lang.String serviceGroupName,
ConfigurationContext configCtx,
ArchiveReader archiveReader,
java.util.HashMap wsdlServices)
To build a AxisServiceGroup for a given services.xml You have to add the created group into AxisConfig |
void |
cleanup()
Clean up the mess |
void |
doDeploy()
|
void |
engageModules()
Checks if the modules, referred by server.xml, exist or that they are deployed. |
protected static void |
fillServiceGroup(AxisServiceGroup serviceGroup,
java.util.ArrayList serviceList,
java.net.URL serviceLocation,
AxisConfiguration axisConfig)
|
AxisConfiguration |
getAxisConfig()
Gets AxisConfiguration. |
static java.lang.String |
getAxisServiceName(java.lang.String fileName)
Retrieves service name from the archive file name. |
Deployer |
getDeployerForExtension(java.lang.String extension)
|
java.util.HashMap |
getDirectoryToExtensionMappingMap()
|
protected java.util.ArrayList |
getFileList(java.net.URL fileListUrl)
|
AxisModule |
getModule(java.lang.String moduleName)
|
ModuleDeployer |
getModuleDeployer()
|
java.io.File |
getModulesDir()
|
RepositoryListener |
getRepoListener()
|
java.io.File |
getRepositoryDir()
|
protected java.lang.String |
getRepositoryPath(java.io.File repository)
|
ServiceDeployer |
getServiceDeployer()
|
java.io.File |
getServicesDir()
|
static java.lang.String |
getWebLocationString()
|
boolean |
isHotUpdate()
|
protected MessageReceiver |
loadDefaultMessageReceiver(java.lang.String mepURL,
AxisService service)
|
void |
loadFromClassPath()
|
void |
loadRepository(java.lang.String repoDir)
|
void |
loadRepositoryFromURL(java.net.URL repoURL)
|
static AxisServiceGroup |
loadServiceGroup(java.io.File serviceFile,
ConfigurationContext configCtx)
|
void |
loadServices()
|
void |
loadServicesFromUrl(java.net.URL repoURL)
|
AxisConfiguration |
populateAxisConfiguration(java.io.InputStream in)
To get AxisConfiguration for a given inputStream this method can be used. |
protected java.util.ArrayList |
populateService(AxisServiceGroup serviceGroup,
java.net.URL servicesURL,
java.lang.String serviceName)
|
protected void |
prepareRepository(java.lang.String repositoryName)
Creates directories for modules/services, copies configuration xml from class loader if necessary |
protected void |
setClassLoaders(java.lang.String axis2repoURI)
To set the all the classLoader hierarchy this method can be used , the top most parent is CCL then SCL(system Class Loader) CCL : SCL : : MCCL SCCL : : MCL SCL MCCL : module common class loader SCCL : Service common class loader MCL : module class loader SCL : Service class loader |
void |
setConfigContext(ConfigurationContext configContext)
|
protected void |
setDeploymentFeatures()
Sets hotDeployment and hot update. |
void |
setDirectoryToExtensionMappingMap(java.util.HashMap directoryToExtensionMappingMap)
|
void |
setExtensionToDeployerMappingMap(java.util.HashMap extensionToDeployerMappingMap)
|
static void |
setWebLocationString(java.lang.String webLocationString)
|
protected void |
startSearch(RepositoryListener listener)
Starts the Deployment engine to perform Hot deployment and so on. |
void |
unDeploy()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String webLocationString
protected Scheduler scheduler
protected boolean hotUpdate
protected boolean hotDeployment
protected java.util.List wsToDeploy
protected java.util.List wsToUnDeploy
protected AxisConfiguration axisConfig
protected ConfigurationContext configContext
protected RepositoryListener repoListener
protected java.lang.String servicesPath
protected java.io.File servicesDir
protected java.lang.String modulesPath
protected java.io.File modulesDir
protected ServiceDeployer serviceDeployer
protected ModuleDeployer moduleDeployer
Constructor Detail |
---|
public DeploymentEngine()
Method Detail |
---|
public static void setWebLocationString(java.lang.String webLocationString)
public void loadServices()
public void loadRepository(java.lang.String repoDir) throws DeploymentException
DeploymentException
public void loadFromClassPath() throws DeploymentException
DeploymentException
public void loadServicesFromUrl(java.net.URL repoURL)
public void loadRepositoryFromURL(java.net.URL repoURL) throws DeploymentException
DeploymentException
protected java.util.ArrayList populateService(AxisServiceGroup serviceGroup, java.net.URL servicesURL, java.lang.String serviceName) throws DeploymentException
DeploymentException
protected MessageReceiver loadDefaultMessageReceiver(java.lang.String mepURL, AxisService service)
public static void addNewModule(AxisModule modulemetadata, AxisConfiguration axisConfiguration) throws AxisFault
AxisFault
public static void addServiceGroup(AxisServiceGroup serviceGroup, java.util.ArrayList serviceList, java.net.URL serviceLocation, DeploymentFileData currentDeploymentFile, AxisConfiguration axisConfiguration) throws AxisFault
AxisFault
protected static void fillServiceGroup(AxisServiceGroup serviceGroup, java.util.ArrayList serviceList, java.net.URL serviceLocation, AxisConfiguration axisConfig) throws AxisFault
AxisFault
public void addWSToDeploy(DeploymentFileData file)
file
- ArchiveFileDatapublic void addWSToUndeploy(WSInfo file)
file
- WSInfopublic void doDeploy()
public void engageModules() throws AxisFault
AxisFault
- : If smt goes wrongpublic AxisConfiguration populateAxisConfiguration(java.io.InputStream in) throws DeploymentException
in
- : InputStream to axis2.xml
DeploymentException
- : If something goes wrongprotected void startSearch(RepositoryListener listener)
listener
- : RepositoryListenerpublic void unDeploy()
public AxisConfiguration getAxisConfig()
AxisConfiguration
public static java.lang.String getAxisServiceName(java.lang.String fileName)
fileName
- the archive file name
public AxisModule getModule(java.lang.String moduleName) throws AxisFault
AxisFault
public boolean isHotUpdate()
public static java.lang.String getWebLocationString()
protected void setClassLoaders(java.lang.String axis2repoURI) throws DeploymentException
axis2repoURI
- : The repository folder of Axis2
DeploymentException
- if there's a problemprotected void setDeploymentFeatures()
protected void prepareRepository(java.lang.String repositoryName)
repositoryName
- the pathname of the repositoryprotected java.lang.String getRepositoryPath(java.io.File repository)
protected java.util.ArrayList getFileList(java.net.URL fileListUrl)
public void setConfigContext(ConfigurationContext configContext)
public static AxisModule buildModule(java.io.File modulearchive, AxisConfiguration config) throws DeploymentException
modulearchive
- : Actual module archive fileconfig
- : AxisConfiguration : for get classloaders etc..
DeploymentException
- if there's a problempublic static AxisService buildService(java.io.InputStream serviceInputStream, ConfigurationContext configCtx) throws DeploymentException
serviceInputStream
- InputStream containing configuration dataconfigCtx
- the ConfigurationContext in which we're deploying
DeploymentException
- if there's a problempublic static AxisServiceGroup buildServiceGroup(java.io.InputStream servicesxml, java.lang.ClassLoader classLoader, java.lang.String serviceGroupName, ConfigurationContext configCtx, ArchiveReader archiveReader, java.util.HashMap wsdlServices) throws AxisFault
servicesxml
- InputStream created from services.xml or equivalentclassLoader
- ClassLoader to useserviceGroupName
- name of the service groupconfigCtx
- the ConfigurationContext in which we're deployingarchiveReader
- the ArchiveReader we're working withwsdlServices
- Map of existing WSDL services
AxisFault
- if there's a problempublic static AxisServiceGroup loadServiceGroup(java.io.File serviceFile, ConfigurationContext configCtx) throws AxisFault
AxisFault
public java.io.File getServicesDir()
public java.io.File getModulesDir()
public java.io.File getRepositoryDir()
public void setExtensionToDeployerMappingMap(java.util.HashMap extensionToDeployerMappingMap)
public void setDirectoryToExtensionMappingMap(java.util.HashMap directoryToExtensionMappingMap)
public java.util.HashMap getDirectoryToExtensionMappingMap()
public RepositoryListener getRepoListener()
public ServiceDeployer getServiceDeployer()
public ModuleDeployer getModuleDeployer()
public Deployer getDeployerForExtension(java.lang.String extension)
public void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |