Package com.ibm.websphere.command
Class LocalTarget
- java.lang.Object
- 
- com.ibm.websphere.command.LocalTarget
 
- 
- All Implemented Interfaces:
- CommandTarget
 
 public class LocalTarget extends java.lang.Object implements CommandTarget The LocalTarget class provides an implementation of the CommandTarget interface. It provides an executeCommand() method that runs the command locally, in the client's JVM.Applications that need to run commands remotely must override this implementation. 
- 
- 
Constructor SummaryConstructors Constructor Description LocalTarget()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetableCommandexecuteCommand(TargetableCommand command)Runs a command locally (in the client's JVM).
 
- 
- 
- 
Method Detail- 
executeCommandpublic TargetableCommand executeCommand(TargetableCommand command) throws java.rmi.RemoteException, CommandException Runs a command locally (in the client's JVM).- Specified by:
- executeCommandin interface- CommandTarget
- Parameters:
- command- The targetable command to be run.
- Returns:
- The command after it has been run.
 If the hasOutputProperties() method on the command returns
 false, this method can return null as a performance optimization.
- Throws:
- java.rmi.RemoteException- The superclass for all remote exceptions. This implementation should never throw a remote exception.
- CommandException- The superclass for all command exceptions.
 
 
- 
 
-