示例#1
0
    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.
                                         """))
示例#2
0
文件: commands.py 项目: queba/haizea
    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.
                                         """))

        self.optparser.add_option(Option("-x", "--exclude", action="store", type="string", dest="exclude",
                                         help = """
                                         ...
                                         """))
 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.
                                      """))
示例#4
0
文件: commands.py 项目: queba/haizea
 def __init__(self, argv):
     Command.__init__(self, argv)
     self.optparser.add_option(Option("-o", "--out", action="store", type="string", dest="outf", required=True,
                                      help = """
                                      LWF file
                                      """))
     self.optparser.add_option(Option("-c", "--conf", action="store", type="string", dest="conf",
                                      help = """
                                      ...
                                      """))      
示例#5
0
 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
                                      """))
示例#6
0
 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))
示例#7
0
 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.
                                      """))
示例#8
0
    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.
                                         """))
示例#9
0
 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.
                                      """))
示例#10
0
文件: commands.py 项目: queba/haizea
 def __init__(self, argv):
     Command.__init__(self, argv)
     
     self.optparser.add_option(Option("-i", "--in", action="store",  type="string", dest="inf", required=True,
                                      help = """
                                      Input file
                                      """))
     self.optparser.add_option(Option("-o", "--out", action="store", type="string", dest="outf", required=True,
                                      help = """
                                      Output file
                                      """))
     self.optparser.add_option(Option("-p", "--preemptible", action="store", type="string", dest="preemptible", required=True,
                                      help = """
                                      Should the leases be preemptable or not?
                                      """))
     self.optparser.add_option(Option("-f", "--from", action="store", type="string", dest="from_time", default="00:00:00:00",
                                      help = """
                                      This parameter, together with the --amount parameter, allows converting just
                                      an interval of the SWF file.
                                      
                                      This parameter must be a timestamp of the format DD:HH:MM:SS. Only jobs sumitted
                                      at or after that time will be converted.
                                      
                                      Default is 00:00:00:00
                                      """))        
     self.optparser.add_option(Option("-l", "--interval-length", action="store", type="string", dest="interval_length",
                                      help = """
                                      Length of the interval in format DD:HH:MM:SS. Default is to convert jobs until the
                                      end of the SWF file.
                                      """))        
     self.optparser.add_option(Option("-q", "--queues", action="store", type="string", dest="queues",
                                      help = """
                                      Only convert jobs from the specified queues
                                      """))
     self.optparser.add_option(Option("-m", "--memory", action="store", type="string", dest="mem",
                                      help = """
                                      Memory requested by jobs.
                                      """))
     self.optparser.add_option(Option("-s", "--scale", action="store", type="string", dest="scale",
                                      help = """
                                      Scale number of processors by 1/SCALE.
                                      """))        
     self.optparser.add_option(Option("-n", "--site", action="store", type="string", dest="site",
                                      help = """
                                      File containing site description
                                      """))        
示例#11
0
文件: commands.py 项目: queba/haizea
 def __init__(self, argv):
     Command.__init__(self, argv)
     self.optparser.add_option(Option("-i", "--in", action="store",  type="string", dest="inf",
                                      help = """
                                      LWF file
                                      """))
     self.optparser.add_option(Option("-n", "--num-annotations", action="store",  type="int", dest="nleases",
                                      help = """
                                      Number of annotations
                                      """))        
     self.optparser.add_option(Option("-o", "--out", action="store", type="string", dest="outf", required=True,
                                      help = """
                                      Annotation file
                                      """))
     self.optparser.add_option(Option("-c", "--conf", action="store", type="string", dest="conf",
                                      help = """
                                      ...
                                      """))
示例#12
0
    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.
                                         """))
示例#13
0
文件: commands.py 项目: queba/haizea
 def __init__(self, argv):
     Command.__init__(self, argv)
     self.optparser.add_option(Option("-i", "--in", action="store",  type="string", dest="inf", required=True,
                                      help = """
                                      Input file
                                      """))
     self.optparser.add_option(Option("-a", "--annotation", action="store",  type="string", dest="annotationf",
                                      help = """
                                      Annotation file
                                      """))
     self.optparser.add_option(Option("-v", "--verbose", action="store_true", dest="verbose",
                                      help = """
                                      Verbose
                                      """))
     self.optparser.add_option(Option("-l", "--utilization-length", action="store", type="string", dest="utilization_length",
                                      help = """
                                      Length of the utilization interval in format DD:HH:MM:SS. Default is until
                                      the time the last lease is requested.
                                      """))          
示例#14
0
 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.
                                      """))
示例#15
0
    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
                                         """))
示例#16
0
    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.
                                         """))
示例#17
0
    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):
     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))