All Classes Namespaces Files Functions Variables Enumerator Groups Pages
com.griddynamics.jagger.invoker.QueryPoolLoadBalancer< Q, E > Class Reference

LoadBalancer which uses query and endpoint provider. More...

Inheritance diagram for com.griddynamics.jagger.invoker.QueryPoolLoadBalancer< Q, E >:

Public Member Functions

int endpointSize ()
 Returns number of endpoints. More...
int getIterableSize (Iterable iterable)
void init ()
 To be called after all dependencies are injected. More...
final Iterator< Pair< Q, E > > iterator ()
 QueryPoolLoadBalancer ()
 QueryPoolLoadBalancer (Iterable< Q > queryProvider, Iterable< E > endpointProvider)
int querySize ()
 Returns number of queries. More...
void setEndpointProvider (Iterable< E > endpointProvider)
void setKernelInfo (KernelInfo kernelInfo)
void setQueryProvider (Iterable< Q > queryProvider)
- Public Member Functions inherited from com.griddynamics.jagger.invoker.LoadBalancer< Q, E >
Iterator< Pair< Q, E > > provide ()
 Returns an iterator over pairs. More...

Protected Attributes

Iterable< E > endpointProvider
volatile boolean initialized = false
KernelInfo kernelInfo
final Object lock = new Object()
Iterable< Q > queryProvider

Detailed Description

LoadBalancer which uses query and endpoint provider.

Gribov Kirill

Abstract implementation of LoadBalancer. Contains query and endpoint providers. Create pairs of queries and endpoints, which you can take from providers, in your implementation.

Definition at line 37 of file QueryPoolLoadBalancer.java.

The documentation for this class was generated from the following file: