def __init__(self, argv): Command.__init__(self, argv) self.optparser.add_option( Option("-c", "--conf", action="store", type="string", dest="conf", help=""" The location of the Haizea configuration file. If not specified, Haizea will first look for it in /etc/haizea/haizea.conf and then in ~/.haizea/haizea.conf. """)) self.optparser.add_option( Option("-f", "--fg", action="store_true", dest="foreground", help=""" Runs Haizea in the foreground. """)) self.optparser.add_option( Option("--stop", action="store_true", dest="stop", help=""" Stops the Haizea daemon. """))
def __init__(self, argv): Command.__init__(self, argv) self.optparser.add_option( Option("-c", "--conf", action="store", type="string", dest="conf", required=True, help=""" Multiconfiguration file used in haizea-generate-configs. """)) self.optparser.add_option( Option("-d", "--confdir", action="store", type="string", dest="confdir", required=True, help=""" Directory containing the individual configuration files. """)) self.optparser.add_option( Option("-t", "--template", action="store", type="string", dest="template", required=True, help=""" Script template (sample templates are included in /usr/share/haizea/etc) """)) self.optparser.add_option( Option("-m", "--only-missing", action="store_true", dest="onlymissing", help=""" If specified, the generated script will only run the configurations that have not already produced a datafile. This is useful when some simulations fail, and you don't want to have to rerun them all. """))
def __init__(self, argv): Command.__init__(self, argv) self.optparser.add_option( Option("-s", "--server", action="store", type="string", dest="server", default=defaults.RPC_URI, help=""" Haizea RPC server URI. If not specified, the default %s is used """ % defaults.RPC_URI))
def __init__(self, argv): RPCCommand.__init__(self, argv) self.optparser.add_option( Option("-l", "--lease", action="store", type="int", dest="lease", help=""" ID of lease to cancel. """))
def __init__(self, argv): Command.__init__(self, argv) self.optparser.add_option( Option("-i", "--in", action="store", type="string", dest="inf", help=""" Input file """)) self.optparser.add_option( Option("-o", "--out", action="store", type="string", dest="outf", help=""" Output file """))
def __init__(self, argv): self.argv = argv self.optparser = OptionParser() self.optparser.add_option( Option("-D", "--debug", action="store_true", dest="debug", help=""" Run command in debug mode. """)) self.opt = None self.args = None
def __init__(self, argv): Command.__init__(self, argv) self.optparser.add_option( Option("-t", "--type", action="store", dest="type", choices=["per-run", "per-lease", "counter"], help=""" Type of data to produce. """)) self.optparser.add_option( Option("-c", "--counter", action="store", dest="counter", help=""" Counter to print out when using '--type counter'. """)) self.optparser.add_option( Option("-f", "--format", action="store", type="string", dest="format", help=""" Output format. Currently supported: csv """)) self.optparser.add_option( Option("-l", "--list-counters", action="store_true", dest="list_counters", help=""" If specified, the command will just print out the names of counters stored in the data file and then exit, regardless of other parameters. """))
def __init__(self, argv): Command.__init__(self, argv) self.optparser.add_option( Option("-c", "--conf", action="store", type="string", dest="conf", help=""" The location of the Haizea configuration file. If not specified, Haizea will first look for it in /etc/haizea/haizea.conf and then in ~/.haizea/haizea.conf. """))
def __init__(self, argv): Command.__init__(self, argv) self.optparser.add_option( Option("-c", "--conf", action="store", type="string", dest="conf", required=True, help=""" Multiconfiguration file. """)) self.optparser.add_option( Option("-d", "--dir", action="store", type="string", dest="dir", required=True, help=""" Directory where the individual configuration files must be created. """))
def __init__(self, argv): RPCCommand.__init__(self, argv) self.optparser.add_option( Option("-f", "--file", action="store", type="string", dest="file", help=""" File containing a lease description in XML. """)) self.optparser.add_option( Option("-t", "--start", action="store", type="string", dest="start", help=""" Starting time. Can be an ISO timestamp, "best_effort", or "now" """)) self.optparser.add_option( Option("-d", "--duration", action="store", type="string", dest="duration", help=""" Duration. Can be an ISO timestamp or "unlimited" """)) self.optparser.add_option( Option("-n", "--numnodes", action="store", type="int", dest="numnodes", help=""" Number of nodes. """)) self.optparser.add_option( Option("--preemptible", action="store_true", dest="preemptible", help=""" Specifies a preemptible lease. """)) self.optparser.add_option( Option("--non-preemptible", action="store_false", dest="preemptible", help=""" Specifies a non-preemptible lease. """)) self.optparser.add_option( Option("-c", "--cpu", action="store", type="int", dest="cpu", help=""" Percentage of CPU (must be 0 < c <= 100) """)) self.optparser.add_option( Option("-m", "--mem", action="store", type="int", dest="mem", help=""" Memory per node (in MB) """)) self.optparser.add_option( Option("-i", "--vmimage", action="store", type="string", dest="vmimage", help=""" Disk image identifier. """)) self.optparser.add_option( Option("-z", "--vmimagesize", action="store", type="int", dest="vmimagesize", help=""" Disk image size. """))