public StaticServiceSelector(Iterable<ServiceDescriptor> serviceDescriptors)
{
Preconditions.checkNotNull(serviceDescriptors, "serviceDescriptors is null");
ServiceDescriptor serviceDescriptor = Iterables.getFirst(serviceDescriptors, null);
if (serviceDescriptor != null) {
this.type = serviceDescriptor.getType();
this.pool = serviceDescriptor.getPool();
}
else {
this.type = "unknown";
this.pool = DEFAULT_POOL;
}