/** * Get the contexts in error info. * * @return string info */ public String getContextsInErrorInfo() { if (contextsInErrorInfo == null) calculateContextsError(); return contextsInErrorInfo; }
/** * Is deployed. * * @param name the name of the deployment * @return true if deployed, false otherwise */ protected boolean checkDeployed(String name) { org.jboss.deployers.spi.DeploymentState deploymentState = delegate.getDeploymentState(name); log.debug("isDeployed, url="+name+", state="+deploymentState); return deploymentState == org.jboss.deployers.spi.DeploymentState.DEPLOYED; }
/** * Create a new classpath * * @param path the path * @return the classpath * @throws IllegalArgumentException for a null path */ public static List<ClassPathEntry> createClassPath(String path) { return Collections.singletonList(createClassPathEntry(path)); }
@Override public Throwable transform(Throwable exception) { IncompleteDeploymentException incompleteDeploymentException = findIncompleteDeploymentException(exception); if(incompleteDeploymentException != null) { for (Entry<String, Throwable> entry : incompleteDeploymentException.getIncompleteDeployments().getContextsInError().entrySet()) { return entry.getValue(); } } return null; }
@Deprecated public void deploy(Deployment deployment) throws org.jboss.deployers.spi.DeploymentException { delegate.deploy(deployment); }
private AbstractDeployment createSimpleDeployment(String name) { AbstractDeployment unit = new AbstractDeployment(name); // There is one top level deployment factory.addContext(unit, ""); return unit; }
@Deprecated public void undeploy(Deployment deployment) throws org.jboss.deployers.spi.DeploymentException { delegate.undeploy(deployment); }
/** * Create the root deployment context * * @param deployment the deployment * @return the deployment context * @throws Exception for any error */ protected DeploymentContext createRootDeploymentContext(Deployment deployment) throws Exception { return new AbstractDeploymentContext(deployment.getName(), ""); }
@Override String display() { return String.format("Dependency \"%s\" (is currently being installed in a background thread)\n", getDependency()); } }
/** Check the current deployment states and generate a IncompleteDeploymentException * if there are mbeans waiting for depedencies. * @exception IncompleteDeploymentException * @jmx.managed-operation */ public void checkIncompleteDeployments() throws DeploymentException { try { delegate.checkComplete(); } catch (Exception e) { throw new DeploymentException("Deployments are incomplete", e); } }
@Override public Throwable transform(Throwable exception) { IncompleteDeploymentException incompleteDeploymentException = findIncompleteDeploymentException(exception); if(incompleteDeploymentException != null) { for (Entry<String, Throwable> entry : incompleteDeploymentException.getIncompleteDeployments().getContextsInError().entrySet()) { return entry.getValue(); } } return null; }
private AbstractDeployment createSimpleDeployment(String name) { AbstractDeployment unit = new AbstractDeployment(name); // There is one top level deployment factory.addContext(unit, ""); return unit; }
/** * Create the root deployment context * * @param deployment the deployment * @return the deployment context * @throws Exception for any error */ protected DeploymentContext createRootDeploymentContext(Deployment deployment) throws Exception { return new AbstractDeploymentContext(deployment.getName(), ""); }
/** * Get the contexts missing dependecies info * * @return the contexts missing dependency */ public String getContextsMissingDependenciesInfo() { if (contextsMissingDependenciesInfo == null) calculateContextsError(); return contextsMissingDependenciesInfo; }
/** * Create a new classpath * * @param path the path * @param suffixes the suffixes * @return the classpath * @throws IllegalArgumentException for a null path */ public static List<ClassPathEntry> createClassPath(String path, String suffixes) { return Collections.singletonList(createClassPathEntry(path, suffixes)); }
@Override public Throwable transform(Throwable exception) { IncompleteDeploymentException incompleteDeploymentException = findIncompleteDeploymentException(exception); if(incompleteDeploymentException != null) { for (Entry<String, Throwable> entry : incompleteDeploymentException.getIncompleteDeployments().getContextsInError().entrySet()) { return entry.getValue(); } } return null; }
/** * Creates simple web deployment using deployers client api. * * @param name deployment name * @return new deployment */ private Deployment createSimpleDeployment(final String name) { final Deployment unit = new AbstractDeployment(name); this.factory.addContext(unit, ""); return unit; }
@Override public Throwable transform(Throwable exception) { IncompleteDeploymentException incompleteDeploymentException = findIncompleteDeploymentException(exception); if(incompleteDeploymentException != null) { for (Entry<String, Throwable> entry : incompleteDeploymentException.getIncompleteDeployments().getContextsInError().entrySet()) { return entry.getValue(); } } return null; }
private AbstractDeployment createSimpleDeployment(String name) { AbstractDeployment unit = new AbstractDeployment(name); // There is one top level deployment factory.addContext(unit, ""); return unit; }
private AbstractDeployment createSimpleDeployment(String name) { AbstractDeployment unit = new AbstractDeployment(name); // There is one top level deployment factory.addContext(unit, ""); return unit; }