Networking
- Which of these variables stores the number of hits that are successfully served out of cache?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
hitstocache
- Which of these method of httpd class is used to get report on each hit to HTTP server?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
logEntry()
- Which of these methods are used to find a URL from the cache of httpd?
-
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.
- Which of these methods is used to know host of an URL?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
getHost()
- Which of these method of httpd class is used to write UrlCacheEntry object into local disk?
-
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.