public boolean equals(Object obj) { if (!(obj instanceof DeploymentUnitDir)) return false; return ((DeploymentUnitDir) obj).getDeployDir().getAbsolutePath().equals(getDeployDir().getAbsolutePath()); }
public URI getBaseURI() { return _du.getDeployDir().toURI(); }
public URI getBaseURI() { return du.getDeployDir().toURI(); }
public boolean equals(Object obj) { if (!(obj instanceof DeploymentUnitDir)) { return false; } return ((DeploymentUnitDir) obj).getDeployDir().getAbsolutePath().equals(getDeployDir().getAbsolutePath()); }
public URI getBaseURI() { return _du.getDeployDir().toURI(); }
/** * The list of endpoint configuration files contained in the deployment directory and its subdirectories. * Files are ordered lexicographically but for each directory, files come before its sudirectories. * <p>The list is built on each call to handle changes. * * @see org.apache.ode.utils.fs.FileUtils#directoryEntriesInPath(java.io.File) */ public List<File> getEndpointConfigFiles() { return FileUtils.directoryEntriesInPath(getDeployDir(), _endpointFilter); }
/** * * The list of endpoint configuration files contained in the deployment directory and its subdirectories. * Files are ordered lexicographically but for each directory, files come before its sudirectories. * <p>The list is built on each call to handle changes. * @see org.apache.ode.utils.fs.FileUtils#directoryEntriesInPath(java.io.File) */ public List<File> getEndpointConfigFiles() { return FileUtils.directoryEntriesInPath(getDeployDir(),_endpointFilter); }
public String getBpelDocument() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); try { String relative = getRelativePath(_du.getDeployDir(), cbpInfo.cbp).replaceAll("\\\\", "/"); if (!relative.endsWith(".cbp")) throw new ContextException("CBP file must end with .cbp suffix: " + cbpInfo.cbp); relative = relative.replace(".cbp", ".bpel"); File bpelFile = new File(_du.getDeployDir(), relative); if (!bpelFile.exists()) __log.warn("BPEL file does not exist: " + bpelFile); return relative; } catch (IOException e) { throw new ContextException("IOException in getBpelRelativePath: " + cbpInfo.cbp, e); } }
public String getBpelDocument() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); try { String relative = getRelativePath(_du.getDeployDir(), cbpInfo.cbp).replaceAll("\\\\", "/"); if (!relative.endsWith(".cbp")) throw new ContextException("CBP file must end with .cbp suffix: " + cbpInfo.cbp); relative = relative.replace(".cbp", ".bpel"); File bpelFile = new File(_du.getDeployDir(), relative); if (!bpelFile.exists()) __log.warn("BPEL file does not exist: " + bpelFile); return relative; } catch (IOException e) { throw new ContextException("IOException in getBpelRelativePath: " + cbpInfo.cbp, e); } }
private void readAnalyticsServerProfiles(TDeployment.Process processDD, DeploymentUnitDir du) { TAnalyticsServerProfiles analyticsServerProfiles = processDD.getAnalyticsServerProfiles(); if (analyticsServerProfiles != null) { for (TAnalyticsServerProfiles.Profile analyticsServerProfile : analyticsServerProfiles.getProfileList()) { String location = analyticsServerProfile.getLocation(); if (location.startsWith(UnifiedEndpointConstants.VIRTUAL_FILE)) { if (!EndpointConfiguration.isAbsolutePath( location.substring(UnifiedEndpointConstants.VIRTUAL_FILE.length()))) { location = EndpointConfiguration.getAbsolutePath( du.getDeployDir().getAbsolutePath(), location.substring(UnifiedEndpointConstants.VIRTUAL_FILE.length())); } } else if ((!location.startsWith(UnifiedEndpointConstants.VIRTUAL_CONF_REG) && !location.startsWith(UnifiedEndpointConstants.VIRTUAL_GOV_REG) && !location.startsWith(UnifiedEndpointConstants.VIRTUAL_REG))) { if (EndpointConfiguration.isAbsolutePath(location)) { location = UnifiedEndpointConstants.VIRTUAL_FILE + location; } else { location = EndpointConfiguration.getAbsolutePath(du.getDeployDir().getAbsolutePath(), location); location = UnifiedEndpointConstants.VIRTUAL_FILE + location; } } AnalyticsServerProfileBuilder builder = new AnalyticsServerProfileBuilder(location, tenantId); AnalyticsServerProfile profile = builder.build(); addAnalyticsServerProfile(profile.getName(), profile); } } }
public String getBpelDocument() { DeploymentUnitDir.CBPInfo cbpInfo = du.getCBPInfo(getType()); if (cbpInfo == null) { throw new ContextException("CBP record not found for type " + getType()); } try { String relative = getRelativePath(du.getDeployDir(), cbpInfo.getCbp()). replaceAll("\\\\", "/"); if (!relative.endsWith(BPELConstants.BPEL_COMPILED_FILE_EXTENSION)) { throw new ContextException("CBP file must end with " + BPELConstants.BPEL_COMPILED_FILE_EXTENSION + " suffix: " + cbpInfo.getCbp()); } relative = relative.replace(BPELConstants.BPEL_COMPILED_FILE_EXTENSION, BPELConstants.BPEL_FILE_EXTENSION); File bpelFile = new File(du.getDeployDir(), relative); if (!bpelFile.exists()) { log.warn("BPEL file does not exist: " + bpelFile); } return relative; } catch (IOException e) { throw new ContextException("IOException in getBpelRelativePath: " + cbpInfo.getCbp(), e); } }
private void readPackageConfiguration() { File depDir = du.getDeployDir();
__log.info(__msgs.msgProcessDeployed(du.getDeployDir(), process.getProcessId())); _processes.put(process.getProcessId(), process);
__log.info(__msgs.msgProcessDeployed(du.getDeployDir(), process.getProcessId())); _processes.put(process.getProcessId(), process);