at.ac.tuwien.dslab.rmi.common.interfaces
Interface IFileManClient


public interface IFileManClient

The IFileManClient is the basic interface which has to be implemented by the client. If you do not implement this interface TEST 0 will fail because we try to instantiate your client class via reflection.


Method Summary
 java.lang.String processCommand(java.lang.String cmd, java.lang.String... args)
          Processes a command of the DSGFileMan client.
 

Method Detail

processCommand

java.lang.String processCommand(java.lang.String cmd,
                                java.lang.String... args)
                                throws InvalidCommandException,
                                       FileManException
Processes a command of the DSGFileMan client.

Parameters:
cmd - The name of the command (without leading or trailing whitespace characters)
args - A list of arguments for each command. The three dots represent a new language construct in Java 1.5. For an explanation see here.
Returns:
The response for this command (which will be echoed to the command line).
Throws:
InvalidCommandException - This exception has to be thrown whenever a command is invalid (arguments are wrong, etc) or the command is generally unknown.
FileManException - This exception is the base class for user-defined exceptions in the DSGFileMan system and has to be thrown if any other exception occurs. Other exceptions (e.g., IOException) have to be wrapped using this exception.