com.ibm.websphere.command

Class LocalTarget

  1. java.lang.Object
  2. extended bycom.ibm.websphere.command.LocalTarget
All implemented interfaces:
CommandTarget

  1. public class LocalTarget
  2. extends java.lang.Object
  3. 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 Summary

Constructor and Description
LocalTarget()

Method Summary

Modifier and Type Method and Description
  1. TargetableCommand
executeCommand(TargetableCommand command)
Runs a command locally (in the client's JVM).
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

LocalTarget

  1. public LocalTarget()

Method Detail

executeCommand

  1. public TargetableCommand executeCommand( TargetableCommand command)
  2. throws java.rmi.RemoteException
  3. CommandException
Runs a command locally (in the client's JVM).
Specified by:
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.