google-nomulus/java/google/registry/tools
mcilwain 6e74ba0587 Wrap ModulesService in new AppEngineServiceUtils
ModulesService does not provide a great API. Specifically, it doesn't have a
way to get the hostname for a specific service; you have to get the hostname for
a specific version as well. This is very rarely what we want, as we publish new
versions every week and don't expect old ones to hang around for very long, so
a task should execute against whatever the live version is, not whatever the
current version was back when the task was enqueued (especially because that
version might be deleted by now).

This new and improved wrapper API removes the confusion and plays better with
dependency injection to boot. We can also fold in other methods having to do
with App Engine services, whereas ModulesService was quite limited in scope.

This also has the side effect of fixing ResaveEntityAction, which is
currently broken because the tasks it's enqueuing to execute up to 30 days in
the future have the version hard-coded into the hostname, and we typically
delete old versions sooner than that.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=206173763
2018-08-10 13:44:25 -04:00
..
javascrap Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
params Allow square bracket expansion when specifying nameservers 2018-08-10 13:44:25 -04:00
resources Add documentation about OAuth2 client id configuration 2017-07-12 11:03:50 -04:00
server Remove transition code for set of parameter refactoring 2018-07-14 01:37:03 -04:00
soy Add a nomulus renew_domain command 2018-06-06 15:16:09 -04:00
AllocateDomainCommand.java Migrate away from VoidWorks 2018-06-27 15:28:52 -04:00
AppEngineConnection.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
AppEngineConnectionFlags.java Add Client-side OAuth2 to HTTP connections 2017-02-17 12:17:53 -05:00
AuthModule.java Make "throws" clause use IOException 2017-05-17 12:17:40 -04:00
BigqueryCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BigqueryParameters.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BUILD Add preliminary spec11 monthly pipeline 2018-08-10 13:44:25 -04:00
CanonicalizeLabelsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CheckDomainClaimsCommand.java Fix verb order in nomulus tool domain check commands 2018-04-10 17:04:07 -04:00
CheckDomainCommand.java Merge the check_domain_fee nomulus command into check_domain 2018-05-30 12:18:54 -04:00
CheckSnapshotCommand.java Wrap ModulesService in new AppEngineServiceUtils 2018-08-10 13:44:25 -04:00
Command.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
CommandRunner.java Add a "shell" pseudo-command to nomulus tool 2018-03-19 18:22:01 -04:00
CommandUtilities.java Fix CommandUtilities to fail gracefully if stdin is unavailable 2017-02-06 16:45:23 -05:00
ComparableEntity.java Implement ComparableEntity class 2017-09-12 15:51:50 -04:00
CompareDbBackups.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ConfirmingCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ConvertIdnCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CountDomainsCommand.java Add nomulus count_domains command 2018-05-05 23:37:11 -04:00
CreateAnchorTenantCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateCdnsTld.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateContactCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateDomainCommand.java Add premium support to nomulus create_domain command 2018-06-06 15:11:44 -04:00
CreateHostCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateLrpTokensCommand.java Replace many Work and VoidWork usages with lambdas 2017-11-21 18:45:12 -05:00
CreateOrUpdateDomainCommand.java Allow square bracket expansion when specifying nameservers 2018-08-10 13:44:25 -04:00
CreateOrUpdatePremiumListCommand.java Export Weimin as author of commits to GitHub 2018-07-14 01:37:03 -04:00
CreateOrUpdateRegistrarCommand.java Delete all Braintree code 2018-07-14 01:37:03 -04:00
CreateOrUpdateReservedListCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateOrUpdateTldCommand.java Remove more unnecessary "throws" declarations 2018-06-27 15:28:52 -04:00
CreatePremiumListCommand.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
CreateRegistrarCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateRegistrarGroupsCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateReservedListCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
CreateTldCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DefaultRequestFactoryModule.java Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
DeleteDomainCommand.java Add flag to delete domain immediately in nomulus too 2018-05-30 12:18:54 -04:00
DeleteEntityCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DeleteHostCommand.java Add delete_host nomulus tool command 2017-05-03 11:08:02 -04:00
DeletePremiumListCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeleteReservedListCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeleteTldCommand.java Migrate away from VoidWorks 2018-06-27 15:28:52 -04:00
DeployInvoicingPipelineCommand.java Refactor beam invoicing pipeline into its own package 2018-07-17 22:08:13 -04:00
DeploySpec11PipelineCommand.java Add preliminary spec11 monthly pipeline 2018-08-10 13:44:25 -04:00
DomainApplicationInfoCommand.java Don't prompt to confirm non-mutating nomulus EPP tool commands 2018-04-10 16:53:18 -04:00
EncryptEscrowDepositCommand.java Make EncryptEscrowDepositCommand a RemoteApiCommand 2017-05-17 11:58:35 -04:00
EppToolCommand.java Don't prompt to confirm non-mutating nomulus EPP tool commands 2018-04-10 16:53:18 -04:00
EscrowDepositEncryptor.java Simplify the RyDE API 2018-07-17 22:03:53 -04:00
ExecuteEppCommand.java Fix two Gauava 20 deprecations across the tools package 2017-02-02 16:54:28 -05:00
GenerateAllocationTokensCommand.java Move the AllocationToken entity to the token subpackage 2018-07-14 01:37:03 -04:00
GenerateApplicationsReportCommand.java Make return value of ClaimsListShard.getClaimKey() Optional 2018-03-06 19:15:52 -05:00
GenerateAuctionDataCommand.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
GenerateDnsReportCommand.java Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
GenerateEscrowDepositCommand.java Wrap ModulesService in new AppEngineServiceUtils 2018-08-10 13:44:25 -04:00
GenerateLordnCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GenerateZoneFilesCommand.java Add assertTldsExist(Iterable<String>) to check multiple TLDs at once 2017-04-10 13:44:52 -04:00
GetApplicationCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetApplicationIdsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetAppliedLabelsCommand.java Replace uses of X.to(Upper|Lower)Case() with Ascii.to(Upper|Lower)Case(X) 2018-04-23 15:02:31 -04:00
GetClaimsListCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
GetContactCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetDomainCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetEppResourceCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetHistoryEntriesCommand.java Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
GetHostCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetKeyringSecretCommand.java Delete all Braintree code 2018-07-14 01:37:03 -04:00
GetLrpTokenCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetRegistrarCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
GetResourceByKeyCommand.java Add command description to get_resource_by_key command 2017-03-13 10:41:15 -04:00
GetRoutingMapCommand.java Add golden files for request component routing maps 2017-06-05 18:17:09 -04:00
GetSchemaCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetSchemaTreeCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetTldCommand.java Add assertTldsExist(Iterable<String>) to check multiple TLDs at once 2017-04-10 13:44:52 -04:00
GhostrydeCommand.java Simplify the Ghostryde API 2018-06-27 15:28:53 -04:00
HashCertificateCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
HelpCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
Injector.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
LevelDbLogReader.java Create a LevelDBLogReader class for java 2017-08-29 16:25:33 -04:00
ListCursorsCommand.java Make nomulus list_cursors command faster by batching loads 2018-06-27 15:28:52 -04:00
ListDomainsCommand.java Add limit to list_domains command 2018-05-17 21:52:35 -04:00
ListHostsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListObjectsCommand.java Add limit to list_domains command 2018-05-17 21:52:35 -04:00
ListPremiumListsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListRegistrarsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListReservedListsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListTldsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
LoadSnapshotCommand.java Remove more unnecessary "throws" declarations 2018-06-27 15:28:52 -04:00
LoadTestCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
LockDomainCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
LockOrUnlockDomainCommand.java Default clientId to registry's registrar in domain lock commands 2018-06-06 15:17:36 -04:00
logging.properties Reduce console log spamminess in nomulus tool 2018-02-20 15:32:04 -05:00
LoggingParameters.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
LoginCommand.java Fix nomulus tool NPEs on login/logout commands when printing usage 2017-03-13 10:35:23 -04:00
LogoutCommand.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
MutatingCommand.java Migrate away from VoidWorks 2018-06-27 15:28:52 -04:00
MutatingEppToolCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
NonMutatingEppToolCommand.java Don't prompt to confirm non-mutating nomulus EPP tool commands 2018-04-10 16:53:18 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
PendingEscrowCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RecordAccumulator.java Create an entity record accumulator 2017-09-12 15:51:50 -04:00
RegistrarContactCommand.java Remove unnecessary Boolean boxing/unboxing 2017-11-07 17:08:35 -05:00
RegistryCli.java Fix the shell to allow multiple mutation of the same entity 2018-04-10 17:08:45 -04:00
RegistryTool.java Add preliminary spec11 monthly pipeline 2018-08-10 13:44:25 -04:00
RegistryToolComponent.java Wrap ModulesService in new AppEngineServiceUtils 2018-08-10 13:44:25 -04:00
RegistryToolEnvironment.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
RegistryToolModule.java Create GenerateAllocationTokens nomulus tool command 2018-01-19 14:26:56 -05:00
RenewDomainCommand.java Add a nomulus renew_domain command 2018-06-06 15:16:09 -04:00
ResaveEntitiesCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ResaveEnvironmentEntitiesCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ResaveEppResourceCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RestoreCommitLogsCommand.java Create nomulus tool restore command 2017-06-05 18:17:09 -04:00
SendEscrowReportToIcannCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ServerSideCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
SetupOteCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ShellCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UniformRapidSuspensionCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UnlockDomainCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateApplicationStatusCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateClaimsNoticeCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateCursorsCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateDomainCommand.java Allow square bracket expansion when specifying nameservers 2018-08-10 13:44:25 -04:00
UpdateKmsKeyringCommand.java Delete all Braintree code 2018-07-14 01:37:03 -04:00
UpdatePremiumListCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateRegistrarCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UpdateReservedListCommand.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
UpdateServerLocksCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateSmdCommand.java Update signed marks files and add an expiration test 2018-06-27 15:28:53 -04:00
UpdateTldCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UploadClaimsListCommand.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UserIdProvider.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ValidateEscrowDepositCommand.java Simplify the Ghostryde API 2018-06-27 15:28:53 -04:00
ValidateLoginCredentialsCommand.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
VerifyOteCommand.java Change dash to underscore in param name for consistency 2018-04-02 16:36:50 -04:00
WhoisQueryCommand.java Add ability to show full WHOIS output in nomulus command 2018-05-30 12:18:54 -04:00