Exemplo n.º 1
0
function getAcceptanceBranches()
{
    $branches = apc_fetch('acceptance_branches');
    if (empty($branches) || getenv('ADT_DEV_MODE')) {
        $branches = array();
        foreach (getGlobalAcceptanceInstances() as $descriptor_arrays) {
            foreach ($descriptor_arrays as $descriptor_array) {
                if (!empty($descriptor_array->SCM_BRANCH)) {
                    $branches[] = $descriptor_array->SCM_BRANCH;
                }
            }
        }
        // Instances will be cached for 2 min
        apc_store('acceptance_branches', $branches, 120);
    }
    return $branches;
}
Exemplo n.º 2
0
                            <th class="col-center">Bundle</th>
                            <th class="col-center">Database</th>
                            <th class="col-center">Server</th>
                            <th class="col-center">Status</th>
                            <th class="col-center">Prefix</th>
                            <th class="col-center">HTTP</th>
                            <th class="col-center">ES</th>
                            <th class="col-center">AJP</th>
                            <th class="col-center">JMX RMI Registration</th>
                            <th class="col-center">JMX RMI Server</th>
                            <th class="col-center">CRaSH SSH</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php 
$merged_list = getGlobalAcceptanceInstances();
$descriptor_arrays = array();
foreach ($merged_list as $tmp_array) {
    $descriptor_arrays = array_merge($descriptor_arrays, $tmp_array);
}
function cmp($a, $b)
{
    return strcmp($a->DEPLOYMENT_HTTP_PORT, $b->DEPLOYMENT_HTTP_PORT);
}
usort($descriptor_arrays, "cmp");
$servers_counter = array();
foreach ($descriptor_arrays as $descriptor_array) {
    // Compute the number of deployed instances per acceptance server
    $servers_counter[$descriptor_array->ACCEPTANCE_HOST]['nb'] = $servers_counter[$descriptor_array->ACCEPTANCE_HOST]['nb'] + 1;
    // Compute the minimum amount of JVM size allocated per acceptance server
    if (strpos($descriptor_array->DEPLOYMENT_JVM_SIZE_MIN, 'g')) {
Exemplo n.º 3
0
Arquivo: debug.php Projeto: hgong/adt
$projects_TB = getTranslationBranches($projects);
foreach ($projects_TB as $project_key => $project_TB) {
    echo "{$project_key} <br />\n";
}
my_print_r_toggle("TB_toggle", $projects_TB);
// Acceptance Branches
draw_sep("TB");
echo "## getAcceptanceBranches()<br />\n";
$projects_AB = getAcceptanceBranches();
foreach ($projects_AB as $project_AB) {
    echo "{$project_AB} <br />\n";
}
my_print_r_toggle("AB_toggle", $projects_AB);
draw_sep("INST");
echo "## getGlobalAcceptanceInstances()<br />\n";
$instances = getGlobalAcceptanceInstances();
foreach ($instances as $category => $instances_array) {
    echo "{$category} : <br />\n";
    foreach ($instances_array as $instance) {
        echo "&nbsp;&nbsp;&nbsp; {$instance->PRODUCT_DESCRIPTION} - {$instance->PRODUCT_VERSION} <br />\n";
    }
}
my_print_r_toggle("INST_toggle", $instances);
?>
</div>
</div>
<!-- /container -->
</div>
</div>
<!-- Footer ================================================== -->
<div id="footer">Copyright © 2000-2015. All rights Reserved, eXo Platform SAS.</div>
Exemplo n.º 4
0
<?php

require_once dirname(__FILE__) . '/../lib/functions.php';
checkCaches();
// Display the list in JSON
echo json_encode(getGlobalAcceptanceInstances());