Esempio 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();
 }
Esempio n. 2
0
 @Override
 public void onRemove(Host host) {
   removePool(host);
   updateCreatedPools();
 }
Esempio n. 3
0
 @Override
 public void onAdd(Host host) {
   addOrRenewPool(host);
   updateCreatedPools();
 }