mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-28 11:34:04 -06:00
protocol errors and defaults
This commit is contained in:
parent
3ed2af6d1a
commit
1572190c6a
@ -209,19 +209,15 @@ public class NBIO implements NBPathsAPI.Facets {
|
|||||||
this.resolver = this.resolver != null ? this.resolver.inNBIOCache() : URIResolvers.inNBIOCache();
|
this.resolver = this.resolver != null ? this.resolver.inNBIOCache() : URIResolvers.inNBIOCache();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "http":
|
|
||||||
case "https":
|
|
||||||
this.resolver = this.resolver != null ? this.resolver.inURLs() : URIResolvers.inURLs();
|
|
||||||
break;
|
|
||||||
case "all":
|
case "all":
|
||||||
if (useNBIOCache) {
|
return allContent();
|
||||||
this.resolver = URIResolvers.inFS().inCP().inNBIOCache();
|
default:
|
||||||
} else {
|
throw new BasicError("NBIO Error: the '"+protocol+"' protocol is not available.");
|
||||||
this.resolver = URIResolvers.inFS().inCP().inURLs();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( this.resolver == null ) {
|
||||||
|
return allContent();
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user