public class Components extends Object
| Constructor and Description |
|---|
Components(Computer slave)
Call Components(slave.getNode().getRootPath(), slave) Add construction
description, Checks if config exists and creates it, then store all remote
objects to be used at deploy time
|
Components(FilePath remoteRootPath,
Computer slave)
Add construction description, Checks if config exists and creates it, then
store all remote objects to be used at deploy time
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearTemporally()
Only works on Unix Operating Systems, this will use some unix commands to
clear temporally data
If file has more than 5 minutes in the last modified tag, it will be removed.
|
static void |
debug(String message)
Print only if debug enabled (debug purposes)
|
static void |
disableDebug()
Just disable debug Mode
|
void |
doConfig()
Iterates over all instance's SetupConfigItem performing/calling a singleSetup
for each SetupConfigItem
|
static boolean |
doConfigSetups(List<Computer> activeSlaves)
Iterates over all given computers performing the doConfig for each computer
|
void |
doSetup()
Slave setup flow, here, the method iterates all SetupItems and if not
installed jet, will call doDeploy
|
static boolean |
doSetups(List<Computer> activeSlaves)
Iterates over all the given computers list seting up or updating the
installation if required.
|
static void |
enableDebug()
Just enable debug mode
|
static void |
info(String message)
Global printer to return logger to master
|
boolean |
newDeploy()
Check if slave contains some setup configured as false,it means that is first
time connection or any designed setup.
|
static void |
setLogger(TaskListener listener)
Required method to define logging procedures
|
void |
singleSetup(SetupConfigItem item)
Performs the execution of the config item on the matching label nodes.
|
public Components(FilePath remoteRootPath, Computer slave) throws IOException, InterruptedException
remoteRootPath - FilePath of remote/slave rootPathslave - Computer slave.InterruptedException - Pipe BrokenIOException - IO error while accessing configFilepublic Components(Computer slave) throws IOException, InterruptedException
slave - Computer slave.InterruptedException - Pipe BrokenIOException - IO error while accessing configFilepublic boolean newDeploy()
public static void setLogger(TaskListener listener)
listener - TaskListener of the jobpublic void doSetup()
throws AbortException,
IOException,
InterruptedException
InterruptedException - If connection is brokenIOException - IOErrors accessing cacheAbortException - User close/Cancelledpublic void singleSetup(SetupConfigItem item) throws IOException, InterruptedException
item - SetupConfigItem to perform.InterruptedException - If connection is brokenIOException - IOErrors accessing hashCodepublic void doConfig()
throws AbortException,
IOException,
InterruptedException
InterruptedException - If connection is brokenIOException - IOErrors accessing cacheAbortException - User close/Cancelledpublic static boolean doConfigSetups(List<Computer> activeSlaves)
activeSlaves - List of the conected slaveComputerspublic static boolean doSetups(List<Computer> activeSlaves)
activeSlaves - List conatining all the instance's slaveComputerspublic void clearTemporally()
throws AbortException,
IOException,
InterruptedException
InterruptedException - Broken pipe.IOException - IO error accessing remotePathAbortException - User close/Cancelledpublic static void debug(String message)
message - String to print as DEBUGpublic static void info(String message)
message - String to print as INFOpublic static void enableDebug()
public static void disableDebug()
Copyright © 2016–2023. All rights reserved.