public void executeManualDeployment(String filePath) throws DeploymentException, ExecutionPlanConfigurationException { processDeploy(new DeploymentFileData(new File(filePath))); }
/** * Gets the WSInfo object related to a file if it exists, null otherwise. * */ private WSInfo getFileItem(URL url, Deployer deployer, int type) { WSInfo info = (WSInfo) currentJars.get(url.getPath()); if (info == null) { info = new WSInfo(url.getPath(), 0, deployer, type); currentJars.put(url.getPath(), info); DeploymentFileData fileData = new DeploymentFileData(url, deployer, null); deploymentEngine.addWSToDeploy(fileData); } return info; }
/** * Gets the WSInfo object related to a file if it exists, null otherwise. * */ private WSInfo getFileItem(File file , Deployer deployer , int type) { String fileName = file.getName(); WSInfo info = (WSInfo) currentJars.get(fileName); if(info==null){ info = new WSInfo(file.getAbsolutePath(), file.lastModified(), deployer ,type); currentJars.put(file.getAbsolutePath(), info); DeploymentFileData fileData = new DeploymentFileData(file, deployer); deploymentEngine.addWSToDeploy(fileData); } return info; }
/** * Gets the WSInfo object related to a file if it exists, null otherwise. * */ private WSInfo getFileItem(URL url, Deployer deployer, int type) { WSInfo info = (WSInfo) currentJars.get(url.getPath()); if (info == null) { info = new WSInfo(url.getPath(), 0, deployer, type); currentJars.put(url.getPath(), info); DeploymentFileData fileData = new DeploymentFileData(url, deployer, null); deploymentEngine.addWSToDeploy(fileData); } return info; }
/** * Gets the WSInfo object related to a file if it exists, null otherwise. * */ private WSInfo getFileItem(File file , Deployer deployer , int type) { String fileName = file.getName(); WSInfo info = (WSInfo) currentJars.get(fileName); if(info==null){ info = new WSInfo(file.getAbsolutePath(), file.lastModified(), deployer ,type); currentJars.put(file.getAbsolutePath(), info); DeploymentFileData fileData = new DeploymentFileData(file, deployer); deploymentEngine.addWSToDeploy(fileData); } return info; }
public static void reload(String filePath) throws ExecutionPlanConfigurationException { EventProcessorDeployer eventProcessorDeployer = (EventProcessorDeployer) getDeployer(EventProcessorConstants.EP_ELE_DIRECTORY); try { eventProcessorDeployer.processUndeploy(filePath); eventProcessorDeployer.processDeploy(new DeploymentFileData(new File(filePath))); } catch (ExecutionPlanConfigurationException e) { throw new ExecutionPlanConfigurationException(e); } }
public void deployModule(String moduleFileName) throws DeploymentException { File moduleFile = new File(moduleFileName); if (!moduleFile.exists()) { throw new DeploymentException("Module archive '" + moduleFileName + "' doesn't exist"); } DeploymentFileData dfd = new DeploymentFileData(moduleFile, new ModuleDeployer(this)); dfd.deploy(); }
public void deployModule(String moduleFileName) throws DeploymentException { File moduleFile = new File(moduleFileName); if (!moduleFile.exists()) { throw new DeploymentException("Module archive '" + moduleFileName + "' doesn't exist"); } DeploymentFileData dfd = new DeploymentFileData(moduleFile, new ModuleDeployer(this)); dfd.deploy(); }
public synchronized void addWSInfoItem(URL url, Deployer deployer, int type) { // There is no way to set hot-update. // Here file.getAbsolutePath() = info.getFileName() WSInfo info = (WSInfo) currentJars.get(url.getPath()); if (info != null) { if (deploymentEngine.isHotUpdate()) { WSInfo wsInfo = new WSInfo(info.getFileName(), info.getLastModifiedDate(), deployer, type); deploymentEngine.addWSToUndeploy(wsInfo); // add entry to undeploy list DeploymentFileData deploymentFileData = new DeploymentFileData(url, deployer, null); deploymentEngine.addWSToDeploy(deploymentFileData); // add entry to deploylist } } else { info = getFileItem(url, deployer, type); } jarList.add(info.getFileName()); }
public synchronized void addWSInfoItem(URL url, Deployer deployer, int type) { // There is no way to set hot-update. // Here file.getAbsolutePath() = info.getFileName() WSInfo info = (WSInfo) currentJars.get(url.getPath()); if (info != null) { if (deploymentEngine.isHotUpdate()) { WSInfo wsInfo = new WSInfo(info.getFileName(), info.getLastModifiedDate(), deployer, type); deploymentEngine.addWSToUndeploy(wsInfo); // add entry to undeploy list DeploymentFileData deploymentFileData = new DeploymentFileData(url, deployer, null); deploymentEngine.addWSToDeploy(deploymentFileData); // add entry to deploylist } } else { info = getFileItem(url, deployer, type); } jarList.add(info.getFileName()); }
try { Deployer deployer = CarbonUtils.getDeployer(AnalyticsEventStoreDeployer.class.getName()); deployer.deploy(new DeploymentFileData(new File(artifactPath))); artifact.setDeploymentStatus(AppDeployerConstants.DEPLOYMENT_STATUS_DEPLOYED); } catch (DeploymentException e) {
/** * First checks whether the file is already available by the * system call fileExists. If it is not deployed yet then adds to the jarList * and to the deployment engine as a new service or module. * While adding new item to jarList, first creates the WSInfo object and * then adds to the jarlist and actual jar file is added to DeploymentEngine. * <p/> * If the files already exists, then checks whether it has been updated * then changes the last update date of the wsInfo and adds two entries to * DeploymentEngine - one for new deployment and other for undeployment. * * @param file actual jar files for either Module or service */ public synchronized void addWSInfoItem(File file, Deployer deployer , int type) { WSInfo info = (WSInfo) currentJars.get(file.getAbsolutePath()); if (info != null) { if (deploymentEngine.isHotUpdate() && isModified(file, info)) { WSInfo wsInfo = new WSInfo(info.getFileName(), info.getLastModifiedDate(), deployer,type); deploymentEngine.addWSToUndeploy(wsInfo); // add entry to undeploy list DeploymentFileData deploymentFileData = new DeploymentFileData(file, deployer); deploymentEngine.addWSToDeploy(deploymentFileData); // add entry to deploylist } } else { info = getFileItem(file, deployer, type); setLastModifiedDate(file, info); } jarList.add(info.getFileName()); }
/** * First checks whether the file is already available by the * system call fileExists. If it is not deployed yet then adds to the jarList * and to the deployment engine as a new service or module. * While adding new item to jarList, first creates the WSInfo object and * then adds to the jarlist and actual jar file is added to DeploymentEngine. * <p/> * If the files already exists, then checks whether it has been updated * then changes the last update date of the wsInfo and adds two entries to * DeploymentEngine - one for new deployment and other for undeployment. * * @param file actual jar files for either Module or service */ public synchronized void addWSInfoItem(File file, Deployer deployer , int type) { WSInfo info = (WSInfo) currentJars.get(file.getAbsolutePath()); if (info != null) { if (deploymentEngine.isHotUpdate() && isModified(file, info)) { WSInfo wsInfo = new WSInfo(info.getFileName(), info.getLastModifiedDate(), deployer,type); deploymentEngine.addWSToUndeploy(wsInfo); // add entry to undeploy list DeploymentFileData deploymentFileData = new DeploymentFileData(file, deployer); deploymentEngine.addWSToDeploy(deploymentFileData); // add entry to deploylist } } else { info = getFileItem(file, deployer, type); setLastModifiedDate(file, info); } jarList.add(info.getFileName()); }
try { deployer.deploy(new DeploymentFileData(new File(dataServiceConfigPath), deployer)); artifact.setDeploymentStatus(AppDeployerConstants.DEPLOYMENT_STATUS_DEPLOYED); } catch (DeploymentException e) {
public static AxisServiceGroup loadServiceGroup(File serviceFile, ConfigurationContext configCtx) throws AxisFault { try { DeploymentFileData currentDeploymentFile = new DeploymentFileData(serviceFile, null); DeploymentClassLoader classLoader = Utils.createClassLoader(serviceFile, configCtx.getAxisConfiguration().isChildFirstClassLoading()); currentDeploymentFile.setClassLoader(classLoader); AxisServiceGroup serviceGroup = new AxisServiceGroup(); serviceGroup.setServiceGroupClassLoader(classLoader); // Drop the extension and take the name String fileName = serviceFile.getName(); String serviceGroupName = fileName.substring(0, fileName.lastIndexOf(".")); serviceGroup.setServiceGroupName(serviceGroupName); AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); ArchiveReader archiveReader = new ArchiveReader(); HashMap<String, AxisService> wsdlServices = archiveReader.processWSDLs(currentDeploymentFile); InputStream serviceXml = classLoader.getResourceAsStream("META-INF/services.xml"); ArrayList<AxisService> serviceList = archiveReader.buildServiceGroup(serviceXml, currentDeploymentFile, serviceGroup, wsdlServices, configCtx); fillServiceGroup(serviceGroup, serviceList, null, axisConfig); return serviceGroup; } catch (Exception e) { throw new DeploymentException(e); } }
public static AxisServiceGroup loadServiceGroup(File serviceFile, ConfigurationContext configCtx) throws AxisFault { try { DeploymentFileData currentDeploymentFile = new DeploymentFileData(serviceFile, null); DeploymentClassLoader classLoader = Utils.createClassLoader(serviceFile, configCtx.getAxisConfiguration().isChildFirstClassLoading()); currentDeploymentFile.setClassLoader(classLoader); AxisServiceGroup serviceGroup = new AxisServiceGroup(); serviceGroup.setServiceGroupClassLoader(classLoader); // Drop the extension and take the name String fileName = serviceFile.getName(); String serviceGroupName = fileName.substring(0, fileName.lastIndexOf(".")); serviceGroup.setServiceGroupName(serviceGroupName); AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); ArchiveReader archiveReader = new ArchiveReader(); HashMap<String, AxisService> wsdlServices = archiveReader.processWSDLs(currentDeploymentFile); InputStream serviceXml = classLoader.getResourceAsStream("META-INF/services.xml"); ArrayList<AxisService> serviceList = archiveReader.buildServiceGroup(serviceXml, currentDeploymentFile, serviceGroup, wsdlServices, configCtx); fillServiceGroup(serviceGroup, serviceList, null, axisConfig); return serviceGroup; } catch (Exception e) { throw new DeploymentException(e); } }
ArchiveReader archiveReader, HashMap<String, AxisService> wsdlServices) throws AxisFault { DeploymentFileData currentDeploymentFile = new DeploymentFileData(null, null); currentDeploymentFile.setClassLoader(classLoader); AxisServiceGroup serviceGroup = new AxisServiceGroup();
ArchiveReader archiveReader, HashMap<String, AxisService> wsdlServices) throws AxisFault { DeploymentFileData currentDeploymentFile = new DeploymentFileData(null, null); currentDeploymentFile.setClassLoader(classLoader); AxisServiceGroup serviceGroup = new AxisServiceGroup();
DeploymentFileData currentDeploymentFile = new DeploymentFileData(modulearchive, deployer); axismodule = new AxisModule();
DeploymentFileData currentDeploymentFile = new DeploymentFileData(modulearchive, deployer); axismodule = new AxisModule();