mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Move injectable config values into ConfigModule
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138903917
This commit is contained in:
parent
1b6f2f82cd
commit
fab8ca8414
4 changed files with 58 additions and 135 deletions
|
@ -21,7 +21,6 @@ import static org.joda.time.Duration.standardDays;
|
|||
import com.google.appengine.api.utils.SystemProperty;
|
||||
import com.google.common.base.Ascii;
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.net.HostAndPort;
|
||||
import java.net.URL;
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
|
@ -83,21 +82,6 @@ public final class ProductionRegistryConfigExample implements RegistryConfig {
|
|||
return getProjectId() + "-snapshots";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDomainListsBucket() {
|
||||
return getProjectId() + "-domain-lists";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommitsBucket() {
|
||||
return getProjectId() + "-commits";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getZoneFilesBucket() {
|
||||
return getProjectId() + "-zonefiles";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getTmchCaTestingMode() {
|
||||
switch (environment) {
|
||||
|
@ -108,16 +92,6 @@ public final class ProductionRegistryConfigExample implements RegistryConfig {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTmchMarksdbUrl() {
|
||||
switch (environment) {
|
||||
case PRODUCTION:
|
||||
return "https://ry.marksdb.org";
|
||||
default:
|
||||
return "https://test.ry.marksdb.org";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<String> getECatcherAddress() {
|
||||
throw new UnsupportedOperationException(); // n/a
|
||||
|
@ -164,16 +138,6 @@ public final class ProductionRegistryConfigExample implements RegistryConfig {
|
|||
return String.format("noreply@%s.appspotmail.com", SystemProperty.applicationId.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImmutableList<String> getRegistrarChangesNotificationEmailAddresses() {
|
||||
switch (environment) {
|
||||
case PRODUCTION:
|
||||
return ImmutableList.of("notification@registry.example");
|
||||
default:
|
||||
return ImmutableList.<String>of();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRegistrarDefaultWhoisServer() {
|
||||
return "whois.nic.registry.example";
|
||||
|
@ -189,11 +153,6 @@ public final class ProductionRegistryConfigExample implements RegistryConfig {
|
|||
return "Nomulus";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxChecks() {
|
||||
return 50;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEppResourceIndexBucketCount() {
|
||||
return 997;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue