public class LocalTarget extends java.lang.Object implements CommandTarget
Applications that need to run commands remotely must override this implementation.
Constructor and Description |
---|
LocalTarget() |
Modifier and Type | Method and Description |
---|---|
TargetableCommand |
executeCommand(TargetableCommand command)
Runs a command locally (in the client's JVM).
|
public TargetableCommand executeCommand(TargetableCommand command) throws java.rmi.RemoteException, CommandException
executeCommand
in interface CommandTarget
command
- The targetable command to be run.false
, this method can return null as a performance
optimization.java.rmi.RemoteException
- The superclass for all remote exceptions.
This implementation should never throw a remote exception.CommandException
- The superclass for all command exceptions.