Networking


  1. Which of these variables stores the number of hits that are successfully served out of cache?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    hitstocache


  1. Which of these method of httpd class is used to get report on each hit to HTTP server?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    logEntry()



  1. Which of these methods are used to find a URL from the cache of httpd?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    serveFromCatche() is a boolean method that attempts to find a particular URL in the cache. If it is successful then the content of that cache entry are written to the client, otherwise it returns false.


  1. Which of these methods is used to know host of an URL?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    getHost()



  1. Which of these method of httpd class is used to write UrlCacheEntry object into local disk?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The writeDiskCache() method takes an UrlCacheEntry object and writes it persistently into the local disk. It constructs directory names out of URL, making sure to replace the slash(/) characters with system dependent seperatorChar.