public class XmlConfig extends Object
ConnectionInfo
instance:
address (required)
port (optional, defaults to: 22/SSH)
fingerprint (required)
user (required)
password (required)
Child elements are used for creating a ClusterConfig
instance:
<job-folder> (required)
<tmp-folder>, <tmp-folder-debug> (optional, defauls to {$TMPDIR})
<date-command> (optional, the command must return date+time in format 2016-11-25 14:18:27,
defaults to: date +'%Y-%m-%d %T')
<host-info-command> (optional)
<opengrid-info-command> (optional)
<job-agent-id> (optional)
<nodes> (optional, should contain one or more <node name="..." /> child elements)Modifier and Type | Field and Description |
---|---|
private List<OpenGridCluster> |
clusters |
private static org.slf4j.Logger |
logger |
Constructor and Description |
---|
XmlConfig()
Create a new configuration instance.
|
Modifier and Type | Method and Description |
---|---|
List<OpenGridCluster> |
getClusters()
Get all clusters loaded so far.
|
void |
readFromResource(String path)
Read cluster configuration from a resource on the class path.
|
private static final org.slf4j.Logger logger
private List<OpenGridCluster> clusters
public void readFromResource(String path)
public List<OpenGridCluster> getClusters()