All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.apps.afs.SearchResponse

java.lang.Object
   |
   +----ajanta.apps.afs.Response
           |
           +----ajanta.apps.afs.SearchResponse

public class SearchResponse
extends Response
This class repesents objects that are returned as a response to a search request by the file system server thread to the agent's thread.


Variable Index

 o vectRes

Constructor Index

 o SearchResponse()
Creates a new vector to contain response objects.

Method Index

 o addEntry(URN, long)
Add a result element to the search response vector.
 o print()
Print all elements in the result vector.

Variables

 o vectRes
 public Vector vectRes

Constructors

 o SearchResponse
 public SearchResponse()
Creates a new vector to contain response objects.

Methods

 o addEntry
 public void addEntry(URN name,
                      long fr)
Add a result element to the search response vector.

Parameters:
URN - is the name of the file that contained the search string
fr - is the frequency of occurrences of the search string in that file.
 o print
 public void print()
Print all elements in the result vector.

Parameters:
- - no parameter
Overrides:
print in class Response

All Packages  Class Hierarchy  This Package  Previous  Next  Index