VMware VCLOUD SDK FOR JAVA 1.0 - DEVELOPER S GUIDE Manual de usuario Pagina 49

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 65
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 48
47
}
} else {
// We are dropped below the threshold
stop the timer
return FALSE
}
Get total number of connections
1. Get list of Virtual Servers configured in the Public LTM using the
Virtual Server Binding Stub
LocalLBVirtualServerLocator().getLocalLBVirtualServerPort('URL to Public LTM POrtal')
2. Get List of virtual Servers and statistics.
stats = stub.get_statistics(virtual Server List);
for(all the statistics entries) {
// We are only interested in the "vs_GemPet_http" Virtual Server that receives the
traffic for the Pet Store Application in the
// Public Cloud
if(Stat Entry.Server Name == "vs_GemPet_http") {
// Now look fo ronly the cline tside open conection statistic entry
if(Statistic Type ==
CommonStatisticType.STATISTIC_CLIENT_SIDE_CURRENT_CONNECTIONS) {
numberOfConnectios = stat Entry.value();
}
}
}
Vista de pagina 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 64 65

Comentarios a estos manuales

Sin comentarios