-
Notifications
You must be signed in to change notification settings - Fork 102
Configuration
Ioannis Papapanagiotou edited this page Nov 16, 2016
·
27 revisions
NDBench leverages Guice to reduce repetition and in favor of a more readable configuration. The registration of the listener takes place in the web.xml. InjectedWebListener is the logical place where the injectors are created and configured.
bind(IConfiguration.class).to(NdBenchConfiguration.class);
bind(NdBenchMonitor.class).to(FakeMonitor.class);
bind(IClusterDiscovery.class).to(LocalClusterDiscovery.class);
bind(DataGenerator.class).to(StringDataGenerator.class);
To use NDBench on AWS, you need to replace LocalClusterDiscovery
with AWSLocalClusterDiscovery
.
Properties inherently use Archaius configuration. Hence you can either configure the properties or pass them through local properties. (e.g. laptop.properties or System properties)