Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 156 invoked from network); 18 Jul 2006 19:26:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 19:26:32 -0000 Received: (qmail 83294 invoked by uid 500); 18 Jul 2006 19:26:30 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 82638 invoked by uid 500); 18 Jul 2006 19:26:29 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 82627 invoked by uid 99); 18 Jul 2006 19:26:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 12:26:29 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jason.dillon@gmail.com designates 64.233.162.194 as permitted sender) Received: from [64.233.162.194] (HELO nz-out-0102.google.com) (64.233.162.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 12:26:28 -0700 Received: by nz-out-0102.google.com with SMTP id n1so546055nzf for ; Tue, 18 Jul 2006 12:26:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:subject:date:to:x-mailer:from:sender; b=DUJFIiveRSlD7XHux80+vv0ydFJXuKHLt2x25AMClS8a2HaHbjLFPrsoUnyla7Bx3UO4ecRuHWbj0IWwi1vkEiHg80BBsKXGOhMEJFLWeun7g07nrUpknjT67xRMIVPzN3SPH72jcGR8rxwmiBnYOFDeblfeZuonmBn81yyFNfg= Received: by 10.36.12.12 with SMTP id 12mr5390243nzl; Tue, 18 Jul 2006 12:26:08 -0700 (PDT) Received: from ?192.168.1.104? ( [216.101.184.25]) by mx.gmail.com with ESMTP id 15sm78147nzo.2006.07.18.12.26.06; Tue, 18 Jul 2006 12:26:07 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <20060718191705.538BC1A9820@eris.apache.org> References: <20060718191705.538BC1A9820@eris.apache.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <127A2679-0623-4960-8A9E-CA513923EE85@planet57.com> Content-Transfer-Encoding: 7bit Subject: Re: svn commit: r423206 - in /geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli: CommandRestart.java DeployTool.java Date: Tue, 18 Jul 2006 12:25:52 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.2) From: Jason Dillon Sender: Jason Dillon X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Will this be merged back to trunk? --jason On Jul 18, 2006, at 12:17 PM, sppatel@apache.org wrote: > Author: sppatel > Date: Tue Jul 18 12:17:04 2006 > New Revision: 423206 > > URL: http://svn.apache.org/viewvc?rev=423206&view=rev > Log: > GERONIMO-1865 > > Added: > geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/ > geronimo/deployment/cli/CommandRestart.java (with props) > Modified: > geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/ > geronimo/deployment/cli/DeployTool.java > > Added: geronimo/branches/1.1/modules/deploy-tool/src/java/org/ > apache/geronimo/deployment/cli/CommandRestart.java > URL: http://svn.apache.org/viewvc/geronimo/branches/1.1/modules/ > deploy-tool/src/java/org/apache/geronimo/deployment/cli/ > CommandRestart.java?rev=423206&view=auto > ====================================================================== > ======== > --- geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/ > geronimo/deployment/cli/CommandRestart.java (added) > +++ geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/ > geronimo/deployment/cli/CommandRestart.java Tue Jul 18 12:17:04 2006 > @@ -0,0 +1,33 @@ > +package org.apache.geronimo.deployment.cli; > + > +import javax.enterprise.deploy.spi.status.ProgressObject; > +import javax.enterprise.deploy.spi.DeploymentManager; > +import javax.enterprise.deploy.spi.TargetModuleID; > +import java.io.PrintWriter; > + > +/** > + * The CLI deployer logic to restart. > + */ > +public class CommandRestart extends CommandStart { > + public CommandRestart() { > + super("restart", "1. Common Commands", "[ModuleID| > TargetModuleID]+", > + "Accepts the configId of a module, or the fully- > qualified " + > + "TargetModuleID identifying both the module and > the server or cluster it's " + > + "on, and restarts that module. The module should > be available to the server " + > + "and running. If multiple modules are specified, > they will all be restarted.\n"); > + } > + > + protected ProgressObject runCommand(PrintWriter out, > DeploymentManager mgr, TargetModuleID[] ids) { > + ProgressObject po = mgr.stop(ids); > + waitForProgress(out, po); > + if(po.getDeploymentStatus().isCompleted()) { > + po = mgr.start(ids); > + waitForProgress(out, po); > + } > + return po; > + } > + > + protected String getAction() { > + return "Restarted"; > + } > +} > > Propchange: geronimo/branches/1.1/modules/deploy-tool/src/java/org/ > apache/geronimo/deployment/cli/CommandRestart.java > ---------------------------------------------------------------------- > -------- > svn:eol-style = native > > Propchange: geronimo/branches/1.1/modules/deploy-tool/src/java/org/ > apache/geronimo/deployment/cli/CommandRestart.java > ---------------------------------------------------------------------- > -------- > svn:keywords = Date Rev > > Propchange: geronimo/branches/1.1/modules/deploy-tool/src/java/org/ > apache/geronimo/deployment/cli/CommandRestart.java > ---------------------------------------------------------------------- > -------- > svn:mime-type = text/plain > > Modified: geronimo/branches/1.1/modules/deploy-tool/src/java/org/ > apache/geronimo/deployment/cli/DeployTool.java > URL: http://svn.apache.org/viewvc/geronimo/branches/1.1/modules/ > deploy-tool/src/java/org/apache/geronimo/deployment/cli/ > DeployTool.java?rev=423206&r1=423205&r2=423206&view=diff > ====================================================================== > ======== > --- geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/ > geronimo/deployment/cli/DeployTool.java (original) > +++ geronimo/branches/1.1/modules/deploy-tool/src/java/org/apache/ > geronimo/deployment/cli/DeployTool.java Tue Jul 18 12:17:04 2006 > @@ -73,6 +73,7 @@ > registerCommand(new CommandRedeploy()); > registerCommand(new CommandStart()); > registerCommand(new CommandStop()); > + registerCommand(new CommandRestart()); > registerCommand(new CommandUndeploy()); > registerCommand(new CommandListConfigurations()); > registerCommand(new CommandInstallCAR()); > >