Пример #1
0
 public static function getAppDeploymentData()
 {
     $appDeployments = Airavata::getAllApplicationDeployments(Session::get('authz-token'), Session::get("gateway_id"));
     //var_dump( $appDeployments); exit;
     $computeResources = Airavata::getAllComputeResourceNames(Session::get('authz-token'));
     $modules = AppUtilities::getAllModules();
     $apt = new ApplicationParallelismType();
     return array("appDeployments" => $appDeployments, "applicationParallelismTypes" => $apt::$__names, "computeResources" => $computeResources, "modules" => $modules);
 }
public static function getAllCRObjects( $onlyName = false){
    $crNames = Airavata::getAllComputeResourceNames();
    if( $onlyName)
        return $crNames;
    else
    {
        $crObjects = array();
        foreach( $crNames as $id => $crName)
        {
            $crObjects[] = Airavata::getComputeResource( $id);
        }
        return $crObjects;
    }

}
Пример #3
0
 public static function getAllCRObjects($onlyName = false)
 {
     $crNames = Airavata::getAllComputeResourceNames(Session::get('authz-token'));
     if ($onlyName) {
         return $crNames;
     } else {
         $crObjects = array();
         foreach ($crNames as $id => $crName) {
             array_push($crObjects, Airavata::getComputeResource(Session::get('authz-token'), $id));
         }
         return $crObjects;
     }
 }