Safe Haskell | None |
---|
Parsing data from a simulated description of the cluster.
This module holds the code for parsing a cluster description.
Synopsis
- apolAbbrev :: String -> Result AllocPolicy
- parseDesc :: String -> [String] -> Result (AllocPolicy, Int, Int, Int, Int, Int, Bool)
- createGroup :: Int -> String -> Result (Group, [Node])
- parseData :: [String] -> Result ClusterData
- loadData :: [String] -> IO (Result ClusterData)
Documentation
apolAbbrev :: String -> Result AllocPolicy Source #
Parse a shortened policy string (for command line usage).
parseDesc :: String -> [String] -> Result (AllocPolicy, Int, Int, Int, Int, Int, Bool) Source #
Parse the string description into nodes.
Creates a node group with the given specifications.
:: [String] | Cluster description in text format |
-> Result ClusterData |
Builds the cluster data from node/instance files.
:: [String] | Cluster description in text format |
-> IO (Result ClusterData) |
Builds the cluster data from node/instance files.