All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface ajanta.apps.afs.FileSystem

public interface interface FileSystem
This interface defines the file system functions.


Method Index

 o depositFile(byte[], String)
 o fetchFile(String)
This method is used for acquiring a file from the file system.
 o getFileStat(String)
 o mapToURL(URN[])
 o search(String, boolean)
 o transferFile(String, URL, String)
transferFile method tranfsers the file form this file server to the specified IPaddress/port number (given by a URL).
 o webSearch(String, boolean)

Methods

 o transferFile
 public abstract TransferResponse transferFile(String fileName,
                                               URL dest,
                                               String destFile)
transferFile method tranfsers the file form this file server to the specified IPaddress/port number (given by a URL). It also specifies the name to be given to this file at the destination machine.

Parameters:
fileName - -- name of the file to be transferred. dest is the URL specifying the destination machine and port number destFile is the name to be assigned to the file at the destination.
Returns:
Nothing
See Also:
FileSystemImpl
 o fetchFile
 public abstract FetchResponse fetchFile(String fileName)
This method is used for acquiring a file from the file system. The clinet is given the file data will be givne in a byte array in the response object of type fetchResponse.

Parameters:
File - name
Returns:
an object of type fetchResponse
 o depositFile
 public abstract DepositResponse depositFile(byte fileBuff[],
                                             String destName)
 o getFileStat
 public abstract StatResponse getFileStat(String fileName)
 o search
 public abstract SearchResponse search(String searchString,
                                       boolean ignoreCase)
 o webSearch
 public abstract WebSearchResponse webSearch(String searchString,
                                             boolean ignoreCase)
 o mapToURL
 public abstract MapResponse mapToURL(URN obj[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index