| Line 369... |
Line 369... |
| 369 |
{
|
369 |
{
|
| 370 |
//show details on this particular VM if the user is allowed to access it
|
370 |
//show details on this particular VM if the user is allowed to access it
|
| 371 |
stringBuilder.append("Details of virtual machine with serial <i>").append(id).append("</i> is shown below:<br><br>");
|
371 |
stringBuilder.append("Details of virtual machine with serial <i>").append(id).append("</i> is shown below:<br><br>");
|
| 372 |
stringBuilder.append("<table style='width:1014px;hspace:5px;background:silver;border:0px;cellspacing:2px;padding:2px;font-family:Courier;font-size:10pt;color:black;'>");
|
372 |
stringBuilder.append("<table style='width:1014px;hspace:5px;background:silver;border:0px;cellspacing:2px;padding:2px;font-family:Courier;font-size:10pt;color:black;'>");
|
| 373 |
stringBuilder.append("<tr>");
|
373 |
stringBuilder.append("<tr>");
|
| 374 |
stringBuilder.append("<td valign='top' style='width:128px;'><img style='width:128px;' src='https://www.cise.ufl.edu/~pharsh/public/vm.png'>");
|
- |
|
| - |
|
374 |
stringBuilder.append("<td valign='top' style='width:128px;background:white;'><img style='width:128px;' src='https://www.cise.ufl.edu/~pharsh/public/vm.png'>");
|
| 375 |
stringBuilder.append("<td valign='top' align='left' bgcolor='white' width='*'>");
|
375 |
stringBuilder.append("<td valign='top' align='left' bgcolor='white' width='*'>");
|
| 376 |
boolean isError = false;
|
376 |
boolean isError = false;
|
| 377 |
String errorMsg = "";
|
377 |
String errorMsg = "";
|
| 378 |
boolean wasFound = false;
|
378 |
boolean wasFound = false;
|
| 379 |
int vm_id = -1;
|
379 |
int vm_id = -1;
|
| Line 428... |
Line 428... |
| 428 |
logger.debug("Error: SQL Exception caught while getting VM details: " + errorMsg);
|
428 |
logger.debug("Error: SQL Exception caught while getting VM details: " + errorMsg);
|
| 429 |
stringBuilder.append("</div>");
|
429 |
stringBuilder.append("</div>");
|
| 430 |
}
|
430 |
}
|
| 431 |
else
|
431 |
else
|
| 432 |
{
|
432 |
{
|
| 433 |
stringBuilder.append("<div style='background:#CCCCFF;'>");
|
- |
|
| - |
|
433 |
stringBuilder.append("<div style='background:#CED1D6;font-weight:bold;'>");
|
| 434 |
if(wasFound)
|
434 |
if(wasFound)
|
| 435 |
{
|
435 |
{
|
| 436 |
stringBuilder.append("Virtual machine ID: ").append(vm_id).append("<br>");
|
436 |
stringBuilder.append("Virtual machine ID: ").append(vm_id).append("<br>");
|
| 437 |
stringBuilder.append("IaaS controller: ").append(vm_controller).append("<br>");
|
437 |
stringBuilder.append("IaaS controller: ").append(vm_controller).append("<br>");
|
| 438 |
stringBuilder.append("IaaS ID: ").append(vm_iaas_id).append("<br>");
|
438 |
stringBuilder.append("IaaS ID: ").append(vm_iaas_id).append("<br>");
|
| Line 465... |
Line 465... |
| 465 |
logger.debug("Error: SQL Exception caught while getting VM details: " + errorMsg);
|
465 |
logger.debug("Error: SQL Exception caught while getting VM details: " + errorMsg);
|
| 466 |
stringBuilder.append("</div>");
|
466 |
stringBuilder.append("</div>");
|
| 467 |
}
|
467 |
}
|
| 468 |
else
|
468 |
else
|
| 469 |
{
|
469 |
{
|
| 470 |
stringBuilder.append("<div style='background:#CCCCFF;'>");
|
- |
|
| - |
|
470 |
stringBuilder.append("<div style='background:#CED1D6;font-weight:bold;'>");
|
| 471 |
if(wasFound)
|
471 |
if(wasFound)
|
| 472 |
{
|
472 |
{
|
| 473 |
stringBuilder.append("Virtual machine ID: ").append(vm_id).append("<br>");
|
473 |
stringBuilder.append("Virtual machine ID: ").append(vm_id).append("<br>");
|
| 474 |
stringBuilder.append("IaaS controller: ").append(vm_controller).append("<br>");
|
474 |
stringBuilder.append("IaaS controller: ").append(vm_controller).append("<br>");
|
| 475 |
stringBuilder.append("IaaS ID: ").append(vm_iaas_id).append("<br>");
|
475 |
stringBuilder.append("IaaS ID: ").append(vm_iaas_id).append("<br>");
|