Interface RemoteCommand

  • All Known Implementing Classes:
    SingleMethodCallCommand

    public interface RemoteCommand
    This class represents the command that can be executed on a remote server. A RemoteCommand needs to be ThreadSafe since it can be re-used by several threads in parallel.
    Version:
    $Id$
    Author:
    Nicolas Filotto
    • Method Detail

      • execute

        Serializable execute​(Serializable[] args)
                      throws Throwable
        This method will execute the command on the local machine.
        Parameters:
        args - The parameters needed to execute the command
        Returns:
        arbitrary return value generated by performing this command
        Throws:
        Throwable - in the event of problems.
      • getId

        String getId()
        Gives the id of the command
        Returns:
        the unique ID of the command