hudson.plugins.jboss
Class CommandsUtils

java.lang.Object
  extended by hudson.plugins.jboss.CommandsUtils

public class CommandsUtils
extends java.lang.Object

Utility class for dealing with jboss command on OS system level.

Author:
Juliusz Brzostek

Method Summary
static boolean start(JBossBuilder.ServerBean server, java.lang.String extraProperties, hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Starts given server.
static boolean stop(JBossBuilder.ServerBean server, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Stops given server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public static boolean start(JBossBuilder.ServerBean server,
                            java.lang.String extraProperties,
                            hudson.model.AbstractBuild build,
                            hudson.Launcher launcher,
                            hudson.model.BuildListener listener)
                     throws java.io.IOException,
                            java.lang.InterruptedException
Starts given server. Method is not waiting.

Parameters:
server - server to start
extraProperties - extra properties for run command
launcher - system command luncher
listener - BuildListener for logging purpose
Returns:
true if everything gone fine, false if any error occurred
Throws:
java.io.IOException
java.lang.InterruptedException

stop

public static boolean stop(JBossBuilder.ServerBean server,
                           hudson.Launcher launcher,
                           hudson.model.BuildListener listener)
Stops given server.

Parameters:
server - JBossBuilder.ServerBean to be stopped
launcher - system command luncher
listener - BuildListener for logging purpose
Returns:
true if everything gone fine, false if any error occurred


Copyright © 2004-2011. All Rights Reserved.