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