public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException { deploymentFileDataMap.put(deploymentFileData.getAbsolutePath(), deploymentFileData); }
public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException { deploymentFileDataMap.put(deploymentFileData.getAbsolutePath(), deploymentFileData); }
inputStream = new BufferedInputStream(new FileInputStream(new File(deploymentFileData.getAbsolutePath()))); XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(inputStream); StAXOMBuilder builder = new StAXOMBuilder(reader); log.info("Deploying event sink: " + eventSinkName + " - file: " + deploymentFileData.getAbsolutePath()); } catch (FileNotFoundException e) { throw new DeploymentException( "Deployment artifact file \"" + deploymentFileData.getAbsolutePath() + "\" not found", e); } catch (XMLStreamException e) { throw new DeploymentException( "Event sink XML in \"" + deploymentFileData.getAbsolutePath() + "\" is malformed", e); } catch (EventSinkException e) { throw new DeploymentException( "Event sink configuration in \"" + deploymentFileData.getAbsolutePath() + "\" is invalid", e); } finally { if (inputStream != null) { } catch (IOException e) { log.warn("Failed to close file input stream after deploying event sink from file " + deploymentFileData.getAbsolutePath());
try { List<String> classList = null; if(DeploymentFileData.isServiceArchiveFile(deploymentFileData.getAbsolutePath())){ FileInputStream fin = new FileInputStream(deploymentFileData.getAbsolutePath()); try { ZipInputStream zin = new ZipInputStream(fin);
/** * This will be called when there is a change in the specified deployment * folder (in the axis2.xml) and this will register class loader into the deployement store * * @param deploymentFileData - describes the updated file * @throws DeploymentException - in case an error on the deployment */ public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException { String mediatorPath = FilenameUtils.normalize(deploymentFileData.getAbsolutePath()); log.info("Deploying Class mediators from file : " + mediatorPath); ClassLoader mediatorLoader = Utils.getClassLoader(ClassMediatorDeployer.class.getClassLoader(), mediatorPath, false); getDeploymentStore().addClassMediatorClassLoader(mediatorPath, mediatorLoader); }
try { List<String> classList = null; if(DeploymentFileData.isServiceArchiveFile(deploymentFileData.getAbsolutePath())){ FileInputStream fin = new FileInputStream(deploymentFileData.getAbsolutePath()); try { ZipInputStream zin = new ZipInputStream(fin);
/** * Reads the query-plan.siddhiql and deploys it. * * @param deploymentFileData information about query plan * @throws org.apache.axis2.deployment.DeploymentException */ public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException { try { String path = deploymentFileData.getAbsolutePath(); if (!deployedExecutionPlanFilePaths.contains(path)) { try { processDeploy(deploymentFileData); } catch (ExecutionPlanConfigurationException e) { throw new DeploymentException("Execution plan not deployed properly.", e); } } else { log.debug("Execution plan file is already deployed :" + path); deployedExecutionPlanFilePaths.remove(path); } } catch (Throwable t) { log.error("Can't deploy the execution plan: " + deploymentFileData.getName(), t); throw new DeploymentException("Can't deploy the execution plan: " + deploymentFileData.getName(), t); } }
FileInputStream fin; try { fin = new FileInputStream(deploymentFile.getAbsolutePath()); zin = new ZipInputStream(fin); ZipEntry entry; Messages.getMessage( DeploymentErrorMsgs.MODULE_XML_MISSING, deploymentFile.getAbsolutePath())); File file = new File(deploymentFile.getAbsolutePath(), MODULE_XML); (file = new File(deploymentFile.getAbsolutePath(), MODULE_XML.toLowerCase())) .exists()) { InputStream in = null; Messages.getMessage( DeploymentErrorMsgs.MODULE_XML_MISSING, deploymentFile.getAbsolutePath()));
FileInputStream fin; try { fin = new FileInputStream(deploymentFile.getAbsolutePath()); zin = new ZipInputStream(fin); ZipEntry entry; Messages.getMessage( DeploymentErrorMsgs.MODULE_XML_MISSING, deploymentFile.getAbsolutePath())); File file = new File(deploymentFile.getAbsolutePath(), MODULE_XML); (file = new File(deploymentFile.getAbsolutePath(), MODULE_XML.toLowerCase())) .exists()) { InputStream in = null; Messages.getMessage( DeploymentErrorMsgs.MODULE_XML_MISSING, deploymentFile.getAbsolutePath()));
public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException { String libFilePath = FilenameUtils.normalize(deploymentFileData.getAbsolutePath()); if (log.isDebugEnabled()) { log.debug("Deployment of the synapse library artifact from file : " + libFilePath + " : STARTED"); log.debug("Skipped the library artifact deployment (since the Synapse " + "server doesn't seem to be started yet), from file : " + deploymentFileData.getAbsolutePath());
log.info("Loading extensions from: " + deploymentFileData.getAbsolutePath());
String absolutePath = deploymentFileData.getAbsolutePath(); String ext = FilenameUtils.getExtension(absolutePath); userStoreDeploymentManager.deploy(deploymentFileData.getAbsolutePath());
String absolutePath = deploymentFileData.getAbsolutePath(); String ext = FilenameUtils.getExtension(absolutePath); userStoreDeploymentManager.deploy(deploymentFileData.getAbsolutePath());
String absolutePath = deploymentFileData.getAbsolutePath(); String ext = FilenameUtils.getExtension(absolutePath); userStoreDeploymentManager.deploy(deploymentFileData.getAbsolutePath());
log.info("Loading extensions from: " + deploymentFileData.getAbsolutePath());
public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException { String libFilePath = FilenameUtils.normalize(deploymentFileData.getAbsolutePath()); if (log.isDebugEnabled()) { log.debug("Deployment of the synapse library artifact from file : " + libFilePath
/** * Creates AxisService with the given deployment information. */ private AxisService processService(DeploymentFileData currentFile, AxisServiceGroup axisServiceGroup, ConfigurationContext configCtx) throws DataServiceFault { /* Security Comment CurrentFile contains the actual dbs data location in the server. there isn't any input from the user. */ AxisService axisService = createDBService(currentFile.getAbsolutePath(), configCtx.getAxisConfiguration()); axisService.setParent(axisServiceGroup); axisService.setClassLoader(axisConfig.getServiceClassLoader()); /* handle services.xml, if exists */ this.handleTransports(currentFile, axisService); return axisService; }
public void deploy(DeploymentFileData deploymentFileData) { ClassLoader threadClassLoader = Thread.currentThread().getContextClassLoader(); String serviceHierarchy = Utils.getServiceHierarchy(deploymentFileData.getAbsolutePath(), this.directory);
String executionPlanName = ""; try { String executionPlan = readFile(deploymentFileData.getAbsolutePath()); EventProcessorHelper.validateExecutionPlan(executionPlan); executionPlanConfigurationFile.setExecutionPlanName(executionPlanName); executionPlanConfigurationFile.setFileName(deploymentFileData.getName()); executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath()); carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile); executionPlanConfigurationFile.setExecutionPlanName(executionPlanName); executionPlanConfigurationFile.setFileName(deploymentFileData.getName()); executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath()); carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile); executionPlanConfigurationFile.setExecutionPlanName(executionPlanName); executionPlanConfigurationFile.setFileName(deploymentFileData.getName()); executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath()); carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile);
deploymentFileData.getAbsolutePath(), this.repoDir); if (serviceHierarchy == null){ serviceHierarchy = ""; deploymentFileData.getName(), deploymentFileData.getAbsolutePath()));