Class GemConfig
java.lang.Object
io.gem.config.GemConfig
Configuration properties for SBK-GEM orchestration.
Values are typically loaded from gem.properties and may be overridden via
command-line parameters. Contains defaults for SSH connection, remote directory
management, and SBM coordination.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringString BIN_DIR = "bin".intMaximum platform threads used for concurrent SSH connection and control operations.static final intDefault maximum stdout/stderr bytes retained per SSH command.static final intDefault diagnostic prefix retained before the truncation marker.static final intDefault maximum characters retained in a diagnostic summary.static final intBackward-compatible SCP copy buffer for directSshSessionconstruction.longMaximum runtime bundle creation, transfer, and activation duration in seconds.static final StringString DESC = "Storage Benchmark Kit - Group Execution Monitor".static final StringMarker inserted between retained diagnostic prefix and suffix text.intMaximum stdout/stderr bytes retained per SSH command.intPrefix characters retained when a remote diagnostic is truncated.Resolved driver class selected for this invocation; assigned after driver discovery.booleanWhether complete JDK and SBK distribution copies replace the default minimal copies.static final StringCommand-line option name used to supply the SSH password.SSH password.intSSH port.SSH user name.booleanWhether remote SSH host keys must match an entry inknownhosts.Optional remote Java home containingbin/java.Optional known-hosts file path; an empty value uses the launching user's default file.static final StringString LOCAL_HOST = "localhost".intMaximum accepted OpenSSH-agent response frame bytes.intMaximum characters retained in a summarized remote diagnostic.static final StringString NAME = "sbk-gem".String nodes.booleanWhether inactive non-current managed runtimes and local cached bundles are removed automatically.Remote working directory on each host (derived from app name/version).longTimeout value used for remote operations (seconds).Local content-addressed runtime bundle cache directory, absolute or relative to the user's home.longAge after which an unlaunched runtime lease reservation may be reclaimed.longAge after which an abandoned remote managed-runtime lifecycle lock may be reclaimed.longMaximum wait for the remote managed-runtime lifecycle lock.intInterval between runtime preparation and transfer progress messages.static final StringStandard SBK launcher relative to an installed distribution.static final StringString SBK_GEM_APP_NAME = "sbk.gem.applicationName.static final StringDefault logger package to scan forGemLoggerimplementations.static final StringEnvironment variable name from which to read the SSH password if not provided in properties.Local SBK application directory resolved from the generated launcher'ssbk.appHome.Expected SBK version, discovered from the local SBK distribution undersbkdir.longMaximum time to wait for all remote SBK clients to register with SBM (seconds).intRead buffer bytes used by each bulk SCP upload.intPer-iteration wait timeout used during async joins (seconds).intMaximum deployment-transfer threads used by automatic sizing.intMinimum deployment-transfer threads used by automatic sizing.intFixed deployment-transfer threads, or zero to size the pool automatically.intDesired number of queued transfer waves used by automatic sizing. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DIAGNOSTIC_TRUNCATION_MARKER
Marker inserted between retained diagnostic prefix and suffix text.- See Also:
-
DEFAULT_DIAGNOSTIC_BYTES
public static final int DEFAULT_DIAGNOSTIC_BYTESDefault maximum stdout/stderr bytes retained per SSH command.- See Also:
-
DEFAULT_MAXIMUM_DIAGNOSTIC_CHARACTERS
public static final int DEFAULT_MAXIMUM_DIAGNOSTIC_CHARACTERSDefault maximum characters retained in a diagnostic summary.- See Also:
-
DEFAULT_DIAGNOSTIC_PREFIX_CHARACTERS
public static final int DEFAULT_DIAGNOSTIC_PREFIX_CHARACTERSDefault diagnostic prefix retained before the truncation marker.- See Also:
-
DEFAULT_SSH_COPY_BUFFER_BYTES
public static final int DEFAULT_SSH_COPY_BUFFER_BYTESBackward-compatible SCP copy buffer for directSshSessionconstruction.- See Also:
-
SBK_GEM_APP_NAME
String SBK_GEM_APP_NAME = "sbk.gem.applicationName.- See Also:
-
NAME
-
DESC
String DESC = "Storage Benchmark Kit - Group Execution Monitor".- See Also:
-
BIN_DIR
-
SBK_COMMAND
Standard SBK launcher relative to an installed distribution. -
LOCAL_HOST
-
SBK_GEM_LOGGER_PACKAGE_NAME
Default logger package to scan forGemLoggerimplementations.- See Also:
-
SBK_GEM_SSH_PASSWD
Environment variable name from which to read the SSH password if not provided in properties.- See Also:
-
GEM_PASS_OPTION
Command-line option name used to supply the SSH password.- See Also:
-
nodes
String nodes. -
gemuser
SSH user name. -
gempass
SSH password. -
hostkeycheck
public boolean hostkeycheckWhether remote SSH host keys must match an entry inknownhosts. -
knownhosts
Optional known-hosts file path; an empty value uses the launching user's default file. -
gemport
public int gemportSSH port. -
sbkdir
Local SBK application directory resolved from the generated launcher'ssbk.appHome. -
sbkVersion
-
javadir
Optional remote Java home containingbin/java. -
packagescleanup
public boolean packagescleanupWhether inactive non-current managed runtimes and local cached bundles are removed automatically. -
fullcopy
public boolean fullcopyWhether complete JDK and SBK distribution copies replace the default minimal copies. -
driverClass
Resolved driver class selected for this invocation; assigned after driver discovery. -
remoteTimeoutSeconds
public long remoteTimeoutSecondsTimeout value used for remote operations (seconds). -
deploymentTimeoutSeconds
public long deploymentTimeoutSecondsMaximum runtime bundle creation, transfer, and activation duration in seconds. -
runtimeProgressIntervalSeconds
public int runtimeProgressIntervalSecondsInterval between runtime preparation and transfer progress messages. -
runtimeCacheDirectory
Local content-addressed runtime bundle cache directory, absolute or relative to the user's home. -
runtimeManagementLockTimeoutSeconds
public long runtimeManagementLockTimeoutSecondsMaximum wait for the remote managed-runtime lifecycle lock. -
runtimeManagementLockStaleSeconds
public long runtimeManagementLockStaleSecondsAge after which an abandoned remote managed-runtime lifecycle lock may be reclaimed. -
runtimeLeaseReservationSeconds
public long runtimeLeaseReservationSecondsAge after which an unlaunched runtime lease reservation may be reclaimed. -
sbmRegistrationTimeoutSeconds
public long sbmRegistrationTimeoutSecondsMaximum time to wait for all remote SBK clients to register with SBM (seconds). -
timeoutSeconds
public int timeoutSecondsPer-iteration wait timeout used during async joins (seconds). -
remoteDir
Remote working directory on each host (derived from app name/version). -
controlExecutorThreads
public int controlExecutorThreadsMaximum platform threads used for concurrent SSH connection and control operations. -
transferExecutorThreads
public int transferExecutorThreadsFixed deployment-transfer threads, or zero to size the pool automatically. -
transferExecutorMinimumThreads
public int transferExecutorMinimumThreadsMinimum deployment-transfer threads used by automatic sizing. -
transferExecutorMaximumThreads
public int transferExecutorMaximumThreadsMaximum deployment-transfer threads used by automatic sizing. -
transferTargetWaves
public int transferTargetWavesDesired number of queued transfer waves used by automatic sizing. -
sshCopyBufferBytes
public int sshCopyBufferBytesRead buffer bytes used by each bulk SCP upload. -
diagnosticBytes
public int diagnosticBytesMaximum stdout/stderr bytes retained per SSH command. -
maximumAgentResponseBytes
public int maximumAgentResponseBytesMaximum accepted OpenSSH-agent response frame bytes. -
maximumDiagnosticCharacters
public int maximumDiagnosticCharactersMaximum characters retained in a summarized remote diagnostic. -
diagnosticPrefixCharacters
public int diagnosticPrefixCharactersPrefix characters retained when a remote diagnostic is truncated.
-
-
Constructor Details
-
GemConfig
public GemConfig()Creates an empty GEM configuration for property binding.
-
-
Method Details
-
load
Loads the module-owned GEM configuration.- Returns:
- GEM configuration
- Throws:
IOException- if the bundled configuration cannot be read
-