
com.bazaarvoice.ostrich.examples.dictionary.service.DictionaryConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dictionary-service Show documentation
Show all versions of dictionary-service Show documentation
Service implementation for the dictionary example
The newest version!
package com.bazaarvoice.ostrich.examples.dictionary.service;
import com.bazaarvoice.curator.dropwizard.ZooKeeperConfiguration;
import com.bazaarvoice.ostrich.examples.dictionary.client.WordRange;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.File;
public class DictionaryConfiguration extends Configuration {
@Valid
@NotNull
@JsonProperty
private File wordFile = new File("/usr/share/dict/words");
@Valid
@NotNull
@JsonProperty
private WordRange wordRange = new WordRange("-");
@Valid
@NotNull
@JsonProperty
private ZooKeeperConfiguration zooKeeper = new ZooKeeperConfiguration();
public File getWordFile() {
return wordFile;
}
public WordRange getWordRange() {
return wordRange;
}
public ZooKeeperConfiguration getZooKeeperConfiguration() {
return zooKeeper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy