Exemplo n.º 1
0
 public function benchExecutionsAction()
 {
     $dbUtils = $this->container->getDBUtils();
     $this->buildFilters(array('bench' => array('default' => null)));
     $whereClause = $this->filters->getWhereClause();
     $type = Utils::get_GET_string("pageTab");
     if (!$type) {
         $type = 'SUMMARY';
     }
     if ($type == 'SUMMARY') {
         $show_in_result = array('id_exec' => 'ID', 'bench' => 'Benchmark', 'exe_time' => 'Exe Time', 'exec' => 'Exec Conf', 'cost' => 'Running Cost $', 'id_cluster' => 'Cluster', 'vm_OS' => 'OS', 'cdesc' => 'Cluster description', 'datanodes' => 'Datanodes', 'prv' => 'PARAVER', 'init_time' => 'End time', 'hadoop_version' => 'H Version', 'bench_type' => 'Bench');
     } else {
         if ($type == 'HWCONFIG') {
             $show_in_result = array('id_exec' => 'ID', 'bench' => 'Benchmark', 'exe_time' => 'Exe Time', 'exec' => 'Exec Conf', 'cost' => 'Running Cost $', 'net' => 'Net', 'disk' => 'Disk', 'id_cluster' => 'Cluster', 'vm_OS' => 'OS', 'cdesc' => 'Cluster description', 'datanodes' => 'Datanodes', 'prv' => 'PARAVER', 'init_time' => 'End time', 'hadoop_version' => 'H Version', 'bench_type' => 'Bench');
         } else {
             if ($type == 'SWCONFIG') {
                 $show_in_result = array('id_exec' => 'ID', 'bench' => 'Benchmark', 'exe_time' => 'Exe Time', 'exec' => 'Exec Conf', 'cost' => 'Running Cost $', 'net' => 'Net', 'disk' => 'Disk', 'maps' => 'Maps', 'iosf' => 'IO SFac', 'replication' => 'Rep', 'iofilebuf' => 'IO FBuf', 'comp' => 'Comp', 'blk_size' => 'Blk size', 'id_cluster' => 'Cluster', 'vm_OS' => 'OS', 'cdesc' => 'Cluster description', 'datanodes' => 'Datanodes', 'prv' => 'PARAVER', 'init_time' => 'End time', 'hadoop_version' => 'H Version', 'bench_type' => 'Bench');
             } else {
                 $show_in_result = self::$show_in_result;
             }
         }
     }
     $discreteOptions = Utils::getExecsOptions($this->container->getDBUtils(), $whereClause);
     return $this->render('repositoryViews/benchexecutions.html.twig', array('theaders' => $show_in_result, 'clustersInfo' => Utils::getClustersInfo($dbUtils), 'type' => $type, 'discreteOptions' => $discreteOptions));
 }
Exemplo n.º 2
0
 public function benchExecutionsAction()
 {
     $dbUtils = $this->container->getDBUtils();
     $preset = null;
     if (sizeof($_GET) <= 1) {
         $preset = Utils::setDefaultPreset($dbUtils, 'Benchmark Executions');
     }
     $selPreset = isset($_GET['presets']) ? $_GET['presets'] : "none";
     $datefrom = Utils::read_params('datefrom', $where_configs);
     $dateto = Utils::read_params('dateto', $where_configs);
     $benchs = Utils::read_params('benchs', $where_configs);
     $nets = Utils::read_params('nets', $where_configs);
     $disks = Utils::read_params('disks', $where_configs);
     $blk_sizes = Utils::read_params('blk_sizes', $where_configs);
     $comps = Utils::read_params('comps', $where_configs);
     $id_clusters = Utils::read_params('id_clusters', $where_configs);
     $mapss = Utils::read_params('mapss', $where_configs);
     $replications = Utils::read_params('replications', $where_configs);
     $iosfs = Utils::read_params('iosfs', $where_configs);
     $iofilebufs = Utils::read_params('iofilebufs', $where_configs);
     $money = Utils::read_params('money', $where_configs);
     $datanodes = Utils::read_params('datanodess', $where_configs, false);
     $benchtype = Utils::read_params('bench_types', $where_configs);
     $vm_sizes = Utils::read_params('vm_sizes', $where_configs, false);
     $vm_coress = Utils::read_params('vm_coress', $where_configs, false);
     $vm_RAMs = Utils::read_params('vm_RAMs', $where_configs, false);
     $hadoop_versions = Utils::read_params('hadoop_versions', $where_configs, false);
     $types = Utils::read_params('types', $where_configs, false);
     $filters = Utils::read_params('filters', $where_configs, false);
     $allunchecked = isset($_GET['allunchecked']) ? $_GET['allunchecked'] : '';
     $type = Utils::get_GET_string("type");
     $minexetime = Utils::read_params('minexetime', $where_configs, false);
     $maxexetime = Utils::read_params('maxexetime', $where_configs, false);
     $provider = Utils::read_params('providers', $where_configs, false);
     $vm_OS = Utils::read_params('vm_OSs', $where_configs, false);
     if (!$type) {
         $type = 'SUMMARY';
     }
     if ($type == 'SUMMARY') {
         $show_in_result = array('id_exec' => 'ID', 'bench' => 'Benchmark', 'exe_time' => 'Exe Time', 'exec' => 'Exec Conf', 'cost' => 'Running Cost $', 'id_cluster' => 'Cluster', 'vm_OS' => 'OS', 'cdesc' => 'Cluster description', 'datanodes' => 'Datanodes', 'prv' => 'PARAVER', 'init_time' => 'End time', 'hadoop_version' => 'H Version', 'bench_type' => 'Bench');
     } else {
         if ($type == 'HWCONFIG') {
             $show_in_result = array('id_exec' => 'ID', 'bench' => 'Benchmark', 'exe_time' => 'Exe Time', 'exec' => 'Exec Conf', 'cost' => 'Running Cost $', 'net' => 'Net', 'disk' => 'Disk', 'id_cluster' => 'Cluster', 'vm_OS' => 'OS', 'cdesc' => 'Cluster description', 'datanodes' => 'Datanodes', 'prv' => 'PARAVER', 'init_time' => 'End time', 'hadoop_version' => 'H Version', 'bench_type' => 'Bench');
         } else {
             if ($type == 'SWCONFIG') {
                 $show_in_result = array('id_exec' => 'ID', 'bench' => 'Benchmark', 'exe_time' => 'Exe Time', 'exec' => 'Exec Conf', 'cost' => 'Running Cost $', 'net' => 'Net', 'disk' => 'Disk', 'maps' => 'Maps', 'iosf' => 'IO SFac', 'replication' => 'Rep', 'iofilebuf' => 'IO FBuf', 'comp' => 'Comp', 'blk_size' => 'Blk size', 'id_cluster' => 'Cluster', 'vm_OS' => 'OS', 'cdesc' => 'Cluster description', 'datanodes' => 'Datanodes', 'prv' => 'PARAVER', 'init_time' => 'End time', 'hadoop_version' => 'H Version', 'bench_type' => 'Bench');
             } else {
                 $show_in_result = self::$show_in_result;
             }
         }
     }
     $discreteOptions = Utils::getExecsOptions($this->container->getDBUtils(), $where_configs);
     echo $this->container->getTwig()->render('benchexecutions/benchexecutions.html.twig', array('selected' => 'Benchmark Executions', 'theaders' => $show_in_result, 'discreteOptions' => $discreteOptions, 'datefrom' => $datefrom, 'dateto' => $dateto, 'benchs' => $benchs, 'nets' => $nets, 'disks' => $disks, 'blk_sizes' => $blk_sizes, 'comps' => $comps, 'id_clusters' => $id_clusters, 'mapss' => $mapss, 'replications' => $replications, 'iosfs' => $iosfs, 'iofilebufs' => $iofilebufs, 'money' => $money, 'datanodess' => $datanodes, 'bench_types' => $benchtype, 'vm_sizes' => $vm_sizes, 'vm_coress' => $vm_coress, 'vm_RAMs' => $vm_RAMs, 'vm_OS' => $vm_OS, 'hadoop_versions' => $hadoop_versions, 'types' => $types, 'providers' => $provider, 'filters' => $filters, 'allunchecked' => $allunchecked, 'minexetime' => $minexetime, 'maxexetime' => $maxexetime, 'preset' => $preset, 'selPreset' => $selPreset, 'clustersInfo' => Utils::getClustersInfo($dbUtils), 'options' => Utils::getFilterOptions($dbUtils), 'type' => $type));
 }