Changeset 743 for branches/0.4/web
- Timestamp:
- 03/25/13 12:52:33 (10 years ago)
- Location:
- branches/0.4/web/addons/job_monarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/web/addons/job_monarch/libtoga.php
r742 r743 1311 1311 $this->height = 0; 1312 1312 $this->output = 1; 1313 $this->jobs = null; 1314 $this->nodes = null; 1313 1315 } 1314 1316 … … 1333 1335 $this->output = 0; 1334 1336 } 1337 function setJobs($jobs ) 1338 { 1339 $this->jobs = &$jobs; 1340 } 1341 function getJobs() 1342 { 1343 if( $this->jobs == null ) 1344 { 1345 $mydatag = $this->dataget; 1346 $mydatag->parseXML( $this->data ); 1347 $this->jobs = $mydatag->getJobs(); 1348 } 1349 1350 return $this->jobs; 1351 } 1352 function getNodes() 1353 { 1354 if( $this->nodes== null ) 1355 { 1356 $mydatag = $this->dataget; 1357 $mydatag->parseXML( $this->data ); 1358 $this->nodes = $mydatag->getNodes(); 1359 } 1360 1361 return $this->nodes; 1362 } 1363 function setNodes($nodes) 1364 { 1365 $this->nodes = &$nodes; 1366 } 1335 1367 function isSmall() 1336 1368 { … … 1349 1381 { 1350 1382 $filtered_nodes = array(); 1383 1384 //print_r( $nodes ); 1351 1385 1352 1386 foreach( $nodes as $node ) … … 1415 1449 } 1416 1450 1417 $mydatag = $this->dataget;1418 $mydatag->parseXML( $this->data );1419 1420 1451 if( $this->isSmall() ) 1421 1452 { … … 1429 1460 } 1430 1461 1431 $nodes = $ mydatag->getNodes();1462 $nodes = $this->getNodes(); 1432 1463 $nodes_hosts = array_keys( $nodes ); 1433 1464 … … 1468 1499 $this->height = ($y_offset + (($node_rows*$node_width)+1) ); 1469 1500 1470 $jobs = $ mydatag->getJobs();1501 $jobs = $this->getJobs(); 1471 1502 $filtered_nodes = $this->filterNodes( $jobs, $nodes ); 1472 1503 -
branches/0.4/web/addons/job_monarch/overview.php
r741 r743 47 47 $use_fqdn = $data_gatherer->getUsingFQDN(); 48 48 49 //print_r( $gnodes ); 50 49 51 function setupFilterSettings() 50 52 { … … 70 72 $ic = new ClusterImage( $myxml_data, $clustername ); 71 73 74 $ic->setJobs( $data_gatherer->getJobs() ); 75 $ic->setNodes( $data_gatherer->getNodes() ); 72 76 $ic->setBig(); 73 77 $ic->setNoimage();
Note: See TracChangeset
for help on using the changeset viewer.