@Override public ProgressObject distribute(Target[] targets, File file, File file1) throws IllegalStateException { return getDeploymentManager().distribute(targets, file, file1); }
@Override public ProgressObject distribute(Target[] targets, ModuleType mt, InputStream in, InputStream in1) throws IllegalStateException { return getDeploymentManager().distribute(targets, mt, in, in1); }
@Override public ProgressObject distribute(Target[] targets, InputStream in, InputStream in1) throws IllegalStateException { return getDeploymentManager().distribute(targets, in, in1); }
protected ProgressObject runCommand(DeploymentManager mgr, ConsoleReader out, boolean inPlace, Target[] tlist, File module, File plan) throws DeploymentException { if (inPlace) { if (!(mgr instanceof JMXDeploymentManager)) { throw new DeploymentSyntaxException( "Target DeploymentManager is not a Geronimo one. \n" + "Cannot perform in-place deployment."); } JMXDeploymentManager jmxMgr = (JMXDeploymentManager) mgr; try { jmxMgr.setInPlace(true); return mgr.distribute(tlist, module, plan); } finally { jmxMgr.setInPlace(false); } } else { return mgr.distribute(tlist, module, plan); } }
return innerDM.distribute(target, archive, null);
retVal = innerDM.distribute(target, archive, innerPlan); retVal.addProgressListener(new FileDeleter(f));
void deploy() throws Jsr88Exception { monitor(CommandType.DISTRIBUTE, dm.distribute(targets(), ctx.moduleArchive(), ctx.deploymentPlan())); }
ProgressObject progressObject = deploymentManager.distribute( this.filterTargets(deploymentManager.getTargets()), deployableFile, null); this.waitForProgressObject(progressObject);
ProgressObject progress = mgr.distribute(targets, moduleFile, planFile); while (progress.getDeploymentStatus().isRunning()) { Thread.sleep(100);
Target[] tlist = identifyTargets(targets, mgr); multipleTargets = tlist.length > 1; po = mgr.distribute(tlist, module, plan); waitForProgress(consoleReader, po); } else { po = mgr.distribute(tlist, module, plan); waitForProgress(consoleReader, po);
PROGRESS_BARRIER.reset(); resetModuleStatus(); ProgressObject progress = deploymentManager.distribute( deploymentManager.getTargets(), moduleTypeMapper.getModuleType(archive), archive.as(ZipExporter.class).exportZip(), null);
ProgressObject po = mgr.distribute(targets, rarFile, tempFile); waitForProgress(po); if(po.getDeploymentStatus().isCompleted()) {
po = ((DeploymentManager2)dm).distribute(targetz, deployment); } else { po = dm.distribute(targetz, getApplication(), plan);