Package repast.simphony.batch.ssh
Class Configuration
java.lang.Object
repast.simphony.batch.ssh.Configuration
Configuration data loaded from a config file for configuring batch
run execution.
- Author:
- Nick Collier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the path to the batch parameter file to use in the batch runs.Gets the path to the model archive.Gets the directory into which the aggregated session output will be written.Gets the output patterns for this configuration.float
Gets how often, in seconds, to poll remotes to see if they are done.int
Gets the numer of specified remote locations to run the model.Gets the directory where the ssh keys for the user are located.Gets any arguments to pass the VM that runs the model.sessions()
Gets an iterable over the sessions described in this Configuration.
-
Field Details
-
MA_KEY
- See Also:
-
SSH_DIR_KEY
- See Also:
-
OUT_DIR_KEY
- See Also:
-
BATCH_PARAMS_KEY
- See Also:
-
POLL_INTERVAL_KEY
- See Also:
-
VM_ARGS_KEY
- See Also:
-
LOCAL_PREFIX
- See Also:
-
REMOTE_PREFIX
- See Also:
-
SESSION_USER
- See Also:
-
SESSION_HOST
- See Also:
-
SESSION_INSTANCES
- See Also:
-
SESSION_KEY_FILE
- See Also:
-
PATTERN_PREFIX
- See Also:
-
PATTERN
- See Also:
-
PATH
- See Also:
-
HEADER
- See Also:
-
CONCATENATE
- See Also:
-
-
Constructor Details
-
Configuration
- Throws:
IOException
-
-
Method Details
-
getOutputPatterns
Gets the output patterns for this configuration. The output patterns should be specified in "glob" format using only "/".- Returns:
- the output patterns for this configuration.
-
getModelArchive
Gets the path to the model archive.- Returns:
- the path to the model archive.
-
getBatchParamsFile
Gets the path to the batch parameter file to use in the batch runs.- Returns:
- the path to the batch parameter file to use in the batch runs.
-
getSSHKeyDir
Gets the directory where the ssh keys for the user are located.- Returns:
- the directory where the ssh keys for the user are located.
-
getOutputDir
Gets the directory into which the aggregated session output will be written.- Returns:
- he directory into which the aggregated session output will be written.
-
getPollFrequency
public float getPollFrequency()Gets how often, in seconds, to poll remotes to see if they are done.- Returns:
-
getRemoteCount
public int getRemoteCount()Gets the numer of specified remote locations to run the model.- Returns:
- the numer of specified remote locations to run the model.
-
getVMArguments
Gets any arguments to pass the VM that runs the model.- Returns:
- any arguments to pass the VM that runs the model.
-
sessions
Gets an iterable over the sessions described in this Configuration.- Returns:
- an iterable over the sessions described in this Configuration.
-