public boolean syncServers ( NewRelicCache cache ) { boolean ret = true ; if ( apiClient == null ) throw new IllegalArgumentException ( "null API client" ) ; // Get the server configuration using the REST API if ( cache . isServersEnabled ( ) ) { ret = false ; logger . info ( "Getting the servers" ) ; cache . servers ( ) . add ( apiClient . servers ( ) . list ( ) ) ; cache . setUpdatedAt ( ) ; ret = true ; } return ret ; }
Synchronise the server configuration with the cache .