google-nomulus/java/google/registry/model
cgoldfeder c9d7e75946 Cache Registrars in memory
This replaces the memcache caching, which we think is overall a bad idea.
We load all registrars at once instead of caching each as needed, so that
the loadAllCached() methods can be cached as well, and therefore will
always produce results consistent with loadByClientIdCached()'s view of the
registrar's values. All of our prod registrars together total 300k of data
right now, so this is hardly worth optimizing further, and in any case this
will likely reduce latency even further since most requests will be
served out of memory.

While I was in the Registrar file I standardized the error messages for incorrect
password and clientId length to be the same format, and cleaned up a few
random things I noticed in the code.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=156151828
2017-05-17 12:26:11 -04:00
..
annotations Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
billing Mark registrar credit model classes as incomplete 2017-03-27 13:15:06 -04:00
common Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
contact Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
domain Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
eppcommon Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04:00
eppinput Add and adjust EppInput accessors for more useful properties 2017-04-26 10:51:47 -04:00
eppoutput Notify registrars of async contact/host deletions 2017-04-26 10:33:55 -04:00
export Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
host Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
index Clean up one usage of ForeignKeyIndex.mapToFkiClass() 2017-05-03 10:41:53 -04:00
mark Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ofy Disable memcache completely 2017-05-17 11:35:19 -04:00
poll Notify registrars of async contact/host deletions 2017-04-26 10:33:55 -04:00
pricing Return all applicable reserved list entries associated with a label 2017-03-13 11:22:56 -04:00
rde Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
registrar Cache Registrars in memory 2017-05-17 12:26:11 -04:00
registry Set the premium cache duration in tests to 60s not 60ms 2017-05-17 11:33:44 -04:00
reporting Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
server Rewrite ServerSecret caching and accessor logic 2017-03-07 13:30:18 -05:00
smd Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
tmch Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
transfer Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
translators Capitalize the Bloom in Bloom filter in comments 2017-03-21 15:30:30 -04:00
BackupGroupRoot.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
BUILD Define Stackdriver metrics for premium and reserved lists 2017-03-21 14:55:00 -04:00
Buildable.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CacheUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
CreateAutoTimestamp.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
EntityClasses.java Add Cloud KMS based secret storage 2017-02-17 12:22:12 -05:00
EppResource.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
EppResourceUtils.java Make failfastForCreate for domain and application creates explicitly hit memcache 2017-04-26 11:16:33 -04:00
ImmutableObject.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Jsonifiable.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
JsonMapBuilder.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ModelUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
package-info.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
SchemaVersion.java Replace deprecated "assignableFrom" with Guava 20 "subtypeOf" 2017-02-02 16:51:43 -05:00
UpdateAutoTimestamp.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00