Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
void com.griddynamics.jagger.invoker.QueryPoolLoadBalancer< Q, E >.init ( )

To be called after all dependencies are injected.

Definition at line 81 of file QueryPoolLoadBalancer.java.

81  {
82  synchronized (lock) {
83  if (initialized) {
84  log.debug("already initialized. returning...");
85  return;
86  }
87 
88  if (endpointProvider == null) {
89  throw new IllegalStateException("Endpoint provider is null");
90  } else {
91  log.info("total endpoints number - {}", endpointSize());
92  }
93 
94  if (queryProvider == null) {
95  log.info("Query provider is null.");
96  } else {
97  log.info("total queries number - {}", querySize());
98  }
99 
100  log.info("kernel info: {}", kernelInfo);
101 
102  initialized = true;
103  }
104  }