Class Configuration
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.Configuration
A spalloc configuration loaded from a file.
-
Constructor Details
-
Configuration
Load the configuration from a file. The configuration loader searches from the file in various "sensible" places.- Parameters:
configFilename- The name of file to load from.- Throws:
RuntimeException- If the configuration could not be loaded.
-
-
Method Details
-
getDefaults
-
getHost
- Returns:
- The spalloc TCP/IP host.
-
getPort
-
getUser
-
getKeepalive
-
getReconnectDelay
-
getTimeout
-
getMachine
- Returns:
- The desired machine name.
-
getTags
- Returns:
- The desired machine tags.
-
getMinRatio
- Returns:
- The minimum ratio for rectangular allocations.
-
getMaxDeadBoards
- Returns:
- The maximum number of dead boards wanted.
-
getMaxDeadLinks
- Returns:
- The maximum number of dead links desired. Often ignored.
-
getRequireTorus
public boolean getRequireTorus()- Returns:
- Whether a torus is required. Not normally useful.
-