@Extension public class SSHD extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static String |
IDLE_TIMEOUT_KEY
Key used to retrieve the value of idle timeout after which
the server will close the connection.
|
clazz| Constructor and Description |
|---|
SSHD() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
static SSHD |
get() |
int |
getActualPort()
Gets the current TCP/IP port that this daemon is running with.
|
GlobalConfigurationCategory |
getCategory() |
int |
getPort()
Returns the configured port to run SSHD.
|
static void |
init() |
void |
restart() |
void |
setPort(int port)
Set the port number to be used.
|
void |
start() |
void |
stop() |
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic static final String IDLE_TIMEOUT_KEY
@NonNull public GlobalConfigurationCategory getCategory()
getCategory in class Descriptor<GlobalConfiguration>public int getPort()
public int getActualPort()
public void setPort(int port)
port - -1 to disable this, 0 to run with a random port, otherwise the port number.public void start()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void restart()
public void stop()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws Descriptor.FormException
configure in class GlobalConfigurationDescriptor.FormExceptionpublic static SSHD get()
@Initializer(after=JOB_LOADED, fatal=false) public static void init() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2022. All rights reserved.