Ejemplo n.º 1
0
 @Override
 public void onDown(Host host) {
   // Note that with well behaved balancing policy (that ignore dead nodes), the removePool call
   // is not necessary
   // since updateCreatedPools should take care of it. But better protect against non well
   // behaving policies.
   removePool(host);
   updateCreatedPools();
 }
Ejemplo n.º 2
0
 @Override
 public void onRemove(Host host) {
   removePool(host);
   updateCreatedPools();
 }
Ejemplo n.º 3
0
 @Override
 public void onAdd(Host host) {
   addOrRenewPool(host);
   updateCreatedPools();
 }