Class ETComRegisterClient
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.tool.client.AbstractToolClient
-
- de.tracetronic.jenkins.plugins.ecutest.tool.client.ETComRegisterClient
-
- All Implemented Interfaces:
ToolClient
public class ETComRegisterClient extends AbstractToolClient
Client to register the ecu.test COM server via command line execution.
-
-
Constructor Summary
Constructors Constructor Description ETComRegisterClient(String toolName, String installPath)
Instantiates a newETComRegisterClient
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ArgumentListBuilder
createCmdLine()
Creates the command line string for a process invocation.boolean
restart(boolean checkProcesses, FilePath workspace, Launcher launcher, TaskListener listener)
Restarts a tool.boolean
start(boolean checkProcesses, FilePath workspace, Launcher launcher, TaskListener listener)
Starts a tool.boolean
stop(boolean checkProcesses, FilePath workspace, Launcher launcher, TaskListener listener)
Stops a tool.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.tool.client.AbstractToolClient
getInstallPath, getTimeout, getToolName, launchProcess
-
-
-
-
Constructor Detail
-
ETComRegisterClient
public ETComRegisterClient(String toolName, String installPath)
Instantiates a newETComRegisterClient
.- Parameters:
toolName
- the tool name identifying the chosenETInstallation
.installPath
- the Tool-Server install path
-
-
Method Detail
-
start
public boolean start(boolean checkProcesses, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException
Description copied from interface:ToolClient
Starts a tool.- Parameters:
checkProcesses
- specifies whether to check open processes after tear downworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if successful,false
otherwise- Throws:
InterruptedException
- if the build gets interrupted
-
stop
public boolean stop(boolean checkProcesses, FilePath workspace, Launcher launcher, TaskListener listener)
Description copied from interface:ToolClient
Stops a tool.- Parameters:
checkProcesses
- specifies whether to check open processes after tear downworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if successful,false
otherwise
-
restart
public boolean restart(boolean checkProcesses, FilePath workspace, Launcher launcher, TaskListener listener)
Description copied from interface:ToolClient
Restarts a tool.- Parameters:
checkProcesses
- specifies whether to check open processes after tear downworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if successful,false
otherwise
-
createCmdLine
protected ArgumentListBuilder createCmdLine()
Description copied from class:AbstractToolClient
Creates the command line string for a process invocation.- Specified by:
createCmdLine
in classAbstractToolClient
- Returns:
- the
ArgumentListBuilder
-
-