public class SlurmComputationConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SlurmComputationConfig.SshConfig |
Constructor and Description |
---|
SlurmComputationConfig(SlurmComputationConfig.SshConfig sshConfig,
java.lang.String workingDir,
java.nio.file.Path localDir,
int pollingInSecond,
int scontrolInMinute)
Configuration for a remote access to a Slurm infrastructure, through SSH.
|
SlurmComputationConfig(java.lang.String workingDir,
java.nio.file.Path localDir,
int pollingInSecond,
int scontrolInMinute)
Configuration for a local access to a Slurm infrastructure.
|
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getLocalDir() |
int |
getPollingInterval() |
int |
getScontrolInterval() |
SlurmComputationConfig.SshConfig |
getSshConfig() |
java.lang.String |
getWorkingDir() |
boolean |
isRemote() |
static SlurmComputationConfig |
load() |
static SlurmComputationConfig |
load(com.powsybl.commons.config.PlatformConfig platformConfig) |
public SlurmComputationConfig(SlurmComputationConfig.SshConfig sshConfig, java.lang.String workingDir, java.nio.file.Path localDir, int pollingInSecond, int scontrolInMinute)
public SlurmComputationConfig(java.lang.String workingDir, java.nio.file.Path localDir, int pollingInSecond, int scontrolInMinute)
public static SlurmComputationConfig load()
public static SlurmComputationConfig load(com.powsybl.commons.config.PlatformConfig platformConfig)
public java.lang.String getWorkingDir()
public java.nio.file.Path getLocalDir()
public int getPollingInterval()
public int getScontrolInterval()
public boolean isRemote()
public SlurmComputationConfig.SshConfig getSshConfig()
Copyright © 2020. All rights reserved.