Package io.jenkins.plugins.onmonit.exec
Class DelegatedNodeExporterProcessFactory
java.lang.Object
io.jenkins.plugins.onmonit.RemoteNodeExporterProcessFactory
io.jenkins.plugins.onmonit.exec.DelegatedNodeExporterProcessFactory
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class DelegatedNodeExporterProcessFactory
extends RemoteNodeExporterProcessFactory
A factory that delegates to other factories for node_exporter execution.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(LauncherProvider launcherProvider, TaskListener listener, ComputerInfo info, FilePath temp, String envCookie, String additionalOptions, boolean debug) Create a node-exporter process on the specified launcher.The display name of the factory.booleanisSupported(Launcher launcher, TaskListener listener, ComputerInfo info) Checks if the supplied launcher is supported by this factory.
-
Constructor Details
-
DelegatedNodeExporterProcessFactory
public DelegatedNodeExporterProcessFactory()
-
-
Method Details
-
getDisplayName
The display name of the factory.- Specified by:
getDisplayNamein classRemoteNodeExporterProcessFactory- Returns:
- The display name of the factory.
-
isSupported
Checks if the supplied launcher is supported by this factory.- Specified by:
isSupportedin classRemoteNodeExporterProcessFactory- Parameters:
launcher- the launcher on which the factory would be asked to start a node-exporter.listener- a listener in case any user diagnostics are to be printed.info- information about the target environment (OS, arch)- Returns:
falseif the factory does not want to try and start a node-exporter on the launcher.
-
create
public RemoteNodeExporterProcess create(LauncherProvider launcherProvider, TaskListener listener, ComputerInfo info, FilePath temp, String envCookie, String additionalOptions, boolean debug) throws Throwable Create a node-exporter process on the specified launcher. This does not yet start it.- Specified by:
createin classRemoteNodeExporterProcessFactory- Parameters:
launcherProvider- provides launchers on which to start a node-exporter.listener- a listener for any diagnostics.info- information about the target environment (OS, arch)temp- a temporary directory to useenvCookie- a value to distinguish the created processadditionalOptions- any additional arguments to pass to the launched processdebug- whether to pass any process output to the Job console log (useful for troubleshooting)- Returns:
- the process.
- Throws:
Throwable- if the process cannot be started.
-