eXo Kernel :: Component :: Common Service 2.4.0-CR2

org.exoplatform.services.rpc
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 Summary
 Serializable execute(Serializable[] args)
          This method will execute the command on the local machine.
 String getId()
          Gives the id of the command
 

Method Detail

execute

Serializable execute(Serializable[] args)
                     throws Throwable
This method will execute the command on the local machine.

Parameters:
container - The container from which the services needed for the command will be extracted
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

eXo Kernel :: Component :: Common Service 2.4.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.