mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-28 03:23:59 -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();
|
||||
}
|
||||
break;
|
||||
case "http":
|
||||
case "https":
|
||||
this.resolver = this.resolver != null ? this.resolver.inURLs() : URIResolvers.inURLs();
|
||||
break;
|
||||
case "all":
|
||||
if (useNBIOCache) {
|
||||
this.resolver = URIResolvers.inFS().inCP().inNBIOCache();
|
||||
} else {
|
||||
this.resolver = URIResolvers.inFS().inCP().inURLs();
|
||||
}
|
||||
break;
|
||||
return allContent();
|
||||
default:
|
||||
throw new BasicError("NBIO Error: the '"+protocol+"' protocol is not available.");
|
||||
}
|
||||
}
|
||||
if ( this.resolver == null ) {
|
||||
return allContent();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user