private void loadRepresentativeDomains ( ) throws IOException { URL u = null ; try { u = new URL ( RemoteScopInstallation . DEFAULT_SERVER + "getRepresentativeScopDomains" ) ; } catch ( MalformedURLException e ) { throw new IOException ( "URL " + RemoteScopInstallation . DEFAULT_SERVER + "getRepresentativeScopDomains" + " is wrong" , e ) ; } logger . info ( "Using " + u + " to download representative domains" ) ; InputStream response = URLConnectionTools . getInputStream ( u ) ; String xml = JFatCatClient . convertStreamToString ( response ) ; ScopDomains results = ScopDomains . fromXML ( xml ) ; logger . info ( "got " + results . getScopDomain ( ) . size ( ) + " domain ranges for Scop domains from server." ) ; for ( ScopDomain dom : results . getScopDomain ( ) ) { String scopId = dom . getScopId ( ) ; serializedCache . put ( scopId , dom ) ; } }
get the ranges of representative domains from the centralized server