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.
-
depositFile(byte[], String)
-
-
fetchFile(String)
- This method is used for acquiring a file from the file system.
-
getFileStat(String)
-
-
mapToURL(URN[])
-
-
search(String, boolean)
-
-
transferFile(String, URL, String)
- transferFile method tranfsers the file form this file server to
the specified IPaddress/port number (given by a URL).
-
webSearch(String, boolean)
-
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
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
depositFile
public abstract DepositResponse depositFile(byte fileBuff[],
String destName)
getFileStat
public abstract StatResponse getFileStat(String fileName)
search
public abstract SearchResponse search(String searchString,
boolean ignoreCase)
webSearch
public abstract WebSearchResponse webSearch(String searchString,
boolean ignoreCase)
mapToURL
public abstract MapResponse mapToURL(URN obj[])
All Packages Class Hierarchy This Package Previous Next Index