public final class RundeckClientTools extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.ext.XLogger |
LOG
SLF4J XLogger.
|
Modifier | Constructor and Description |
---|---|
private |
RundeckClientTools()
Private constructor to prevent Instantiating.
|
Modifier and Type | Method and Description |
---|---|
static RundeckClient |
buildMinimalRundeckClient(RundeckMonitorConfiguration rundeckMonitorConfiguration)
Build a minimal Rundeck client with the argument configuration to test connection and authentication.
|
static RundeckClient |
buildRundeckClient(int rundeckAPIVersion,
RundeckMonitorConfiguration rundeckMonitorConfiguration)
Build a Rundeck client with the API version and configuration arguments.
|
static RundeckClient |
buildRundeckClient(RundeckMonitorConfiguration rundeckMonitorConfiguration)
Build a Rundeck client with the argument configuration.
|
private RundeckClientTools()
public static RundeckClient buildMinimalRundeckClient(RundeckMonitorConfiguration rundeckMonitorConfiguration)
rundeckMonitorConfiguration
- configuration to usepublic static RundeckClient buildRundeckClient(RundeckMonitorConfiguration rundeckMonitorConfiguration) throws InvalidRundeckVersion
rundeckMonitorConfiguration
- configuration to useInvalidRundeckVersion
- if the detected Rundeck version don't support API version 5 (before version 1.4.4)public static RundeckClient buildRundeckClient(int rundeckAPIVersion, RundeckMonitorConfiguration rundeckMonitorConfiguration)
rundeckAPIVersion
- Rundeck API version to userundeckMonitorConfiguration
- configuration to useCopyright © 2013–2015. All rights reserved.