com.michelin.cio.hudson.plugins.wasbuilder
Class WASInstallation

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tools.ToolInstallation>
      extended by hudson.tools.ToolInstallation
          extended by com.michelin.cio.hudson.plugins.wasbuilder.WASInstallation
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tools.ToolInstallation>, hudson.model.EnvironmentSpecific<WASInstallation>, hudson.slaves.NodeSpecific<WASInstallation>, Serializable

public class WASInstallation
extends hudson.tools.ToolInstallation
implements hudson.slaves.NodeSpecific<WASInstallation>, hudson.model.EnvironmentSpecific<WASInstallation>

Corresponds to an IBM WebSphere Application Server installation (currently, it has been tested with WAS 6.0 and WAS 7.0) or an Administration Thin Client (cf. http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/txml_adminclient.html).

To use a {@link WASBuildStep} build step, it is mandatory to define an installation: No default installations can be assumed as we necessarily need {@code wsadmin.bat}/{@code wsadmin.sh}.

Author:
Romain Seguy (http://openromain.blogspot.com)
See Also:
Serialized Form

Nested Class Summary
static class WASInstallation.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
hudson.tools.ToolInstallation.ToolConverter
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String WSADMIN_BAT
           
static String WSADMIN_SH
           
 
Constructor Summary
WASInstallation(String name, String home, String wsadminCommand)
           
 
Method Summary
 WASInstallation forEnvironment(hudson.EnvVars env)
           
 WASInstallation forNode(hudson.model.Node node, hudson.model.TaskListener log)
           
static WASInstallation getWasInstallationByName(String installationName)
           
 String getWsadminCommand()
           
 String getWsadminExecutable(hudson.Launcher launcher)
           
 
Methods inherited from class hudson.tools.ToolInstallation
all, getHome, getName, getProperties, translateFor
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSADMIN_BAT

public static final String WSADMIN_BAT
See Also:
Constant Field Values

WSADMIN_SH

public static final String WSADMIN_SH
See Also:
Constant Field Values
Constructor Detail

WASInstallation

@DataBoundConstructor
public WASInstallation(String name,
                                            String home,
                                            String wsadminCommand)
Method Detail

forEnvironment

public WASInstallation forEnvironment(hudson.EnvVars env)
Specified by:
forEnvironment in interface hudson.model.EnvironmentSpecific<WASInstallation>

forNode

public WASInstallation forNode(hudson.model.Node node,
                               hudson.model.TaskListener log)
                        throws IOException,
                               InterruptedException
Specified by:
forNode in interface hudson.slaves.NodeSpecific<WASInstallation>
Throws:
IOException
InterruptedException

getWasInstallationByName

public static WASInstallation getWasInstallationByName(String installationName)

getWsadminCommand

public String getWsadminCommand()

getWsadminExecutable

public String getWsadminExecutable(hudson.Launcher launcher)
                            throws IOException,
                                   InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2004-2011. All Rights Reserved.