Package org.exoplatform.services.rpc
Interface RemoteCommand
-
- All Known Implementing Classes:
SingleMethodCallCommand
public interface RemoteCommandThis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Serializableexecute(Serializable[] args)This method will execute the command on the local machine.StringgetId()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:
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
-
-