geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r423331 - in /geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli: ./ CommandRestart.java DeployTool.java
Date Wed, 19 Jul 2006 01:39:37 GMT
Author: jdillon
Date: Tue Jul 18 18:39:36 2006
New Revision: 423331

URL: http://svn.apache.org/viewvc?rev=423331&view=rev
Log:
Sync from trunk (for GERONIMO-1865)

Added:
    geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java
  (with props)
Modified:
    geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/
  (props changed)
    geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/DeployTool.java

Propchange: geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/
------------------------------------------------------------------------------
--- svk:merge (added)
+++ svk:merge Tue Jul 18 18:39:36 2006
@@ -0,0 +1 @@
+13f79535-47bb-0310-9956-ffa450edef68:/geronimo/sandbox/svkmerge/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli:423294

Added: geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java?rev=423331&view=auto
==============================================================================
--- geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java
(added)
+++ geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java
Tue Jul 18 18:39:36 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/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java
------------------------------------------------------------------------------
    svn:keywords = Date Rev

Propchange: geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/CommandRestart.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/DeployTool.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/DeployTool.java?rev=423331&r1=423330&r2=423331&view=diff
==============================================================================
--- geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/DeployTool.java
(original)
+++ geronimo/sandbox/svkmerge/m2migration/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/DeployTool.java
Tue Jul 18 18:39:36 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());



Mime
View raw message