if (coordinator) {
binder.install(new FailureDetectorModule());
binder.bind(NodeResource.class).in(Scopes.SINGLETON);
}
else {
binder.bind(FailureDetector.class).toInstance(new FailureDetector() {
@Override
public Set<ServiceDescriptor> getFailed()
{
return ImmutableSet.of();
}