Remote Systems
v6.4.1

com.ibm.etools.systems.universalcmdsubsys.impl
Class UniversalCmdSubSystemImpl

java.lang.Object
  extended byEObjectImpl
      extended bycom.ibm.etools.systems.subsystems.impl.SubSystemImpl
          extended bycom.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
              extended bycom.ibm.etools.systems.universalcmdsubsys.impl.UniversalCmdSubSystemImpl
All Implemented Interfaces:
IAdaptable, ICommunicationsListener, IRemoteObjectResolver, ISystemResourceChangeEvents, IUniversalSubSystem, RemoteCmdSubSystem, SubSystem, SystemFilterPoolReferenceManagerProvider, UniversalCmdSubSystem

public class UniversalCmdSubSystemImpl
extends RemoteCmdSubSystemImpl
implements UniversalCmdSubSystem, IUniversalSubSystem

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
RemoteCmdSubSystemImpl.RefreshSubSystem
 
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
SubSystemImpl.ConnectRunnable, SubSystemImpl.DisplayErrorMessageRunnable
 
Field Summary
protected  List _paths
           
protected  DataElement _runCmdDescriptor
           
protected  DataElement _runShellDescriptor
           
protected  DataElement _sendInputDescriptor
           
protected  DataElement _setEnvironmentDescriptor
           
protected  ArrayList _unsupportedCommandList
           
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
_cmdShells, _defaultShell, _envVars, _fileSubSystem, COMMAND_SHELLS_MEMENTO, envVars
 
Fields inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
_connectionError, _disconnecting, _system, ADDITIONAL_ATTRIBUTES_EDEFAULT, additionalAttributes, additionalAttributesESet, cancelable, DELIM_VENDOR_ATTR_VALUE, DELIM_VENDOR_ATTRS, DELIM_VENDOR_NAME, doConnection, FACTORY_ID_EDEFAULT, factoryId, filterPoolReferenceManager, hidden, HIDDEN_EDEFAULT, IBM_ATTRIBUTES_EDEFAULT, ibmAttributes, ibmAttributesESet, ibmAttrs, monitor, name, NAME_EDEFAULT, operation, OPERATION_CANCEL_SHELL, OPERATION_CONNECT, OPERATION_DISCONNECT, OPERATION_GET_PROPERTIES, OPERATION_GET_PROPERTY, OPERATION_REMOVE_SHELL, OPERATION_RESOLVE_ABSOLUTE, OPERATION_RESOLVE_ABSOLUTES, OPERATION_RESOLVE_RELATIVE, OPERATION_RUN_COMMAND, OPERATION_RUN_SHELL, OPERATION_SEND_COMMAND_TO_SHELL, OPERATION_SET_PROPERTIES, OPERATION_SET_PROPERTY, parentConnection, parentSubSystemFactory, pmDialog, port, PORT_EDEFAULT, previousUserIdKey, remoteServerLauncher, runContext, runException, runInput, runInput2, runInputs, runInputs2, runInterpret, runInThread, runObject, runOutput, runOutputs, runOutputString, runOutputStrings, saveFileName, shell, sortResults, SUBSYSTEM_FILE_NAME, supportsConnecting, USE_SSL_EDEFAULT, USER_ID_EDEFAULT, userId, useSSL, VENDOR_ATTRIBUTES_EDEFAULT, vendorAttributes, vendorAttributesESet, vendorAttrs
 
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver
Copyright
 
Fields inherited from interface com.ibm.etools.systems.universal.IUniversalSubSystem
Copyright
 
Fields inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeEvents
EVENT_ADD, EVENT_ADD_FILTER_REFERENCE, EVENT_ADD_FILTERSTRING_REFERENCE, EVENT_ADD_MANY, EVENT_ADD_RELATIVE, EVENT_CHANGE_CHILDREN, EVENT_CHANGE_FILTER_REFERENCE, EVENT_CHANGE_FILTERSTRING_REFERENCE, EVENT_COLLAPSE_ALL, EVENT_COLLAPSE_SELECTED, EVENT_COMMAND_FINISHED, EVENT_COMMAND_HISTORY_UPDATE, EVENT_COMMAND_MESSAGE, EVENT_COMMAND_RUN, EVENT_COMMAND_SHELL_FINISHED, EVENT_COMMAND_SHELL_REMOVED, EVENT_COMPILE_COMMAND_RUN, EVENT_DELETE, EVENT_DELETE_FILTER_REFERENCE, EVENT_DELETE_FILTERSTRING_REFERENCE, EVENT_DELETE_MANY, EVENT_EXPAND_SELECTED, EVENT_ICON_CHANGE, EVENT_MOVE_FILTER_REFERENCES, EVENT_MOVE_FILTERSTRING_REFERENCES, EVENT_MOVE_MANY, EVENT_MUST_COLLAPSE, EVENT_PROPERTY_CHANGE, EVENT_PROPERTYSHEET_UPDATE, EVENT_REFRESH, EVENT_REFRESH_REMOTE, EVENT_REFRESH_SELECTED, EVENT_REFRESH_SELECTED_FILTER, EVENT_REFRESH_SELECTED_PARENT, EVENT_RENAME, EVENT_RENAME_FILTER_REFERENCE, EVENT_REPLACE_CHILDREN, EVENT_REVEAL_AND_SELECT, EVENT_SEARCH_FINISHED, EVENT_SELECT, EVENT_SELECT_EXPAND, EVENT_SELECT_REMOTE, PROPERTYSHEET_UPDATE_EVENT
 
Constructor Summary
UniversalCmdSubSystemImpl()
          Default constructor.
 
Method Summary
 boolean canRunCommand()
          Determine whether the command subsystem can run a command
 boolean canRunShell()
          Determine whether the command subsystem can run a shell
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 Object[] getChildren()
          Return the children for this subsystem.
protected  DataStore getDataStore()
           
 IRemoteCommandShell getDefaultShell(Shell shell)
          Get the default running command shell for this command subsystem.
 String[] getExecutedCommands()
          Provide list of executed commands on subsystem.
 List getHostEnvironmentVariables()
          Override this to return a list of environment variables for the host system
 List getPathEnvironment()
          Override this to provide an appropriate path list for the command subsystem.
 ServerLauncher getRemoteServerLauncher()
          Override of parent method so we can delegate this to the file subsystem.
protected  DataElement getRunCommandDescriptor(DataElement remoteObject)
           
protected  String getRunCommandId()
           
protected  DataElement getRunShellDescriptor(DataElement remoteObject)
           
protected  String getRunShellId()
           
protected  DataElement getSendInputDescriptor(DataElement remoteObject)
           
protected  DataElement getSetEnvironmentDescriptor(DataElement remoteObject)
           
protected  String getSetEnvironmentId()
           
 IRemoteCommandShell[] getShells()
          Get all command shells and transient commands that have been run or are running for this command subsystem.
 AbstractSystemManager getSystemManager()
          Return a singleton instance of an AbstractSystemManager subclass that manages a pool of ISystem objects, one per system connection.
protected  ArrayList getUnsupportedCommandList()
          Get the list of unsupported commands
protected  String getUserHome()
           
protected  void internalCancelShell(IProgressMonitor monitor, Object command)
           
protected  void internalDisconnect(IProgressMonitor monitor, String hostName, int port)
          Actually disconnect from the remote host.
protected  Object[] internalRunCommand(IProgressMonitor monitor, String command, Object context)
          Actually run a remote command.
protected  IRemoteCommandShell internalRunShell(IProgressMonitor monitor, Object context)
           
protected  void internalSendCommandToShell(IProgressMonitor monitor, String stdIn, Object context)
           
protected  void logCommand(String cmd, String[] msgs)
           
 boolean runRemoteCommand(IRemoteFile sourceDir, String command)
          Run a command using the default shell
protected  IRemoteCommandShell sendCommandToMiner(IProgressMonitor monitor, DataElement contextDir, String command)
           
 void sendCommandToShell(String input, Shell shell, Object commandObject)
          overridden so that for universal we don't need to do in modal thread
protected  IRemoteCommandShell sendShellToMiner(DataElement contextDir)
           
 void setRemoteEnvironment(DataElement theObject)
          Set the environment variables for this connection.
protected  boolean supportsCommand(String theCommand)
          Determine whether a specified command is supported
protected  void updateCommandHistory(String executedCmd)
          Maintain list of executed commands - list is in order of most recent to least recent - no duplicates
protected  boolean validateCommand(String command)
           
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
addEnvironmentVariable, addEnvironmentVariable, cancelAllShells, checkForCancel, communicationsStateChange, getCandidateCommands, getCommandSubSystem, getEnvironmentVariable, getEnvironmentVariableList, getEnvironmentVariableValue, getEnvVars, getFileSubSystem, getInvalidEnvironmentVariableNameCharacters, getObjectWithAbsoluteName, getParentRemoteCmdSubSystemFactory, getShellEncoding, hasChildren, internalRemoveShell, internalResolveFilterString, isPassiveCommunicationsListener, isWindows, parsePathEnvironmentVariable, removeEnvironmentVariable, removeEnvironmentVariable, restoreShellState, runCommand, runShell, saveShellState, setEnvironmentVariableList, setShellEncoding
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
addResolvedFilterStringObjects, basicSetFilterPoolReferenceManager, basicSetRemoteServerLauncher, cancelShell, checkIsConnected, clearLocalUserId, connect, connect, connect, deletingConnection, disconnect, disconnect, displayAsyncMsg, doesFilterListContentsOf, doesFilterMatch, doesFilterStringListContentsOf, doesFilterStringMatch, doesFilterTypeMatch, filterEventFilterCreated, filterEventFilterPoolReferenceCreated, filterEventFilterPoolReferenceDeleted, filterEventFilterPoolReferenceRenamed, filterEventFilterPoolReferenceReset, filterEventFilterPoolReferencesRePositioned, filterEventFilterPoolReferencesReset, filterEventFilterStringCreated, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, forceUserIdToUpperCase, getActiveWorkbenchShell, getActiveWorkbenchWindow, getAdapter, getAdditionalAttributes, getCacheManager, getConnectionOwnedFilterPoolName, getConnectionPrivateFilterPool, getFactoryId, getFilterPoolReferenceManager, getFilterReferenceWithAbsoluteName, getFirstParentFilterString, getHostName, getIBMAttribute, getIbmAttributes, getLocalUserId, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getPreferencesKey, getPreferencesKey, getPreferencesManager, getPrimarySubSystem, getProperties, getProperty, getPropertyPage, getQueryingMessage, getQueryingMessage, getResolvingMessage, getRunnableContext, getRunningMessage, getSaveFileName, getSettingMessage, getSettingMessage, getShell, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemProfile, getSystemProfileName, getSystemType, getTargetForFilter, getUDActionSubsystem, getUniqueOwningSystemFilterPool, getUserId, getUserIdGen, getVendorAttribute, getVendorAttributes, internalConnect, internalGetProperties, internalGetProperty, internalResolveFilterString, internalResolveFilterStrings, internalRunCommand, internalSetProperties, internalSetProperty, isConnected, isConnectionError, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, isUseSSL, removeShell, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, run, runCommand, selectCommandSubSystem, setAdditionalAttributes, setConnectionError, setFactoryId, setFilterPoolReferenceManager, setHidden, setIBMAttribute, setIbmAttributes, setName, setParentConnection, setParentSubSystemFactory, setPort, setProperties, setProperty, setRemoteServerLauncher, setSaveFileName, setUserId, setUserIdGen, setUseSSL, setVendorAttribute, setVendorAttributes, showConnectCancelledMessage, showConnectErrorMessage, showDisconnectCancelledMessage, showDisconnectErrorMessage, showOperationCancelledMessage, showOperationErrorMessage, showOperationMessage, sortResolvedFilterStringObjects, supportsCaching, toString, unsetAdditionalAttributes, unsetIbmAttributes, unsetVendorAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
addEnvironmentVariable, addEnvironmentVariable, cancelShell, getCandidateCommands, getEnvironmentVariable, getEnvironmentVariableList, getEnvironmentVariableValue, getEnvVars, getInvalidEnvironmentVariableNameCharacters, getParentRemoteCmdSubSystemFactory, removeEnvironmentVariable, removeEnvironmentVariable, removeShell, restoreShellState, runCommand, runShell, setEnvironmentVariableList
 
Methods inherited from interface com.ibm.etools.systems.subsystems.SubSystem
checkIsConnected, clearLocalUserId, connect, connect, connect, deletingConnection, disconnect, disconnect, doesFilterListContentsOf, doesFilterMatch, doesFilterStringListContentsOf, doesFilterStringMatch, forceUserIdToUpperCase, getAdditionalAttributes, getCacheManager, getCommandSubSystem, getFactoryId, getFilterPoolReferenceManager, getIbmAttributes, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getPrimarySubSystem, getProperties, getProperty, getPropertyPage, getSaveFileName, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemProfile, getSystemProfileName, getTargetForFilter, getUDActionSubsystem, getUserId, getVendorAttribute, getVendorAttributes, hasChildren, isConnected, isConnectionError, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, isUseSSL, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, setAdditionalAttributes, setConnectionError, setFactoryId, setFilterPoolReferenceManager, setHidden, setIbmAttributes, setName, setParentConnection, setParentSubSystemFactory, setPort, setProperties, setProperty, setRemoteServerLauncher, setSaveFileName, setUserId, setUseSSL, setVendorAttribute, setVendorAttributes, supportsCaching, unsetAdditionalAttributes, unsetIbmAttributes, unsetVendorAttributes
 
Methods inherited from interface com.ibm.etools.systems.filters.SystemFilterPoolReferenceManagerProvider
filterEventFilterCreated, filterEventFilterPoolReferenceCreated, filterEventFilterPoolReferenceDeleted, filterEventFilterPoolReferenceRenamed, filterEventFilterPoolReferenceReset, filterEventFilterPoolReferencesRePositioned, filterEventFilterPoolReferencesReset, filterEventFilterStringCreated, getUniqueOwningSystemFilterPool
 
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver
getObjectWithAbsoluteName
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

_paths

protected List _paths

_runCmdDescriptor

protected DataElement _runCmdDescriptor

_runShellDescriptor

protected DataElement _runShellDescriptor

_setEnvironmentDescriptor

protected DataElement _setEnvironmentDescriptor

_sendInputDescriptor

protected DataElement _sendInputDescriptor

_unsupportedCommandList

protected ArrayList _unsupportedCommandList
Constructor Detail

UniversalCmdSubSystemImpl

public UniversalCmdSubSystemImpl()
Default constructor. Do not call directly! Rather, use the emf generated factory method to create. After instantiation, be sure to call SubSystemImpl.setParentSubSystemFactory(SubSystemFactory).

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class RemoteCmdSubSystemImpl

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     Class baseClass,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class RemoteCmdSubSystemImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class RemoteCmdSubSystemImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class RemoteCmdSubSystemImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class RemoteCmdSubSystemImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class RemoteCmdSubSystemImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class RemoteCmdSubSystemImpl

getSystemManager

public AbstractSystemManager getSystemManager()
Return a singleton instance of an AbstractSystemManager subclass that manages a pool of ISystem objects, one per system connection. By default, getSystem() calls this, unless you override getSystem().

Specified by:
getSystemManager in interface SubSystem
Overrides:
getSystemManager in class SubSystemImpl
Returns:
LocalSystemManager.getTheUniversalSystemManager()

getDataStore

protected DataStore getDataStore()

getChildren

public Object[] getChildren()
Description copied from interface: SubSystem
Return the children for this subsystem. This is used to populate the Remote System View explorer.

By default, if the parent subsystem factory supports filters, then we return getSystemFilterPoolReferencesArray. If filters are not supported (supportsFilters() returns false from factory) then we return null. In this case you should override this.

Specified by:
getChildren in interface SubSystem
Overrides:
getChildren in class RemoteCmdSubSystemImpl

getDefaultShell

public IRemoteCommandShell getDefaultShell(Shell shell)
                                    throws Exception
Description copied from interface: RemoteCmdSubSystem
Get the default running command shell for this command subsystem. If no such shell exists or is running, a new one is launched.

Specified by:
getDefaultShell in interface RemoteCmdSubSystem
Overrides:
getDefaultShell in class RemoteCmdSubSystemImpl
Returns:
the default running command shell
Throws:
Exception

getShells

public IRemoteCommandShell[] getShells()
Description copied from interface: RemoteCmdSubSystem
Get all command shells and transient commands that have been run or are running for this command subsystem.

Specified by:
getShells in interface RemoteCmdSubSystem
Overrides:
getShells in class RemoteCmdSubSystemImpl
Returns:
the list of running command shells and commands

getRunShellId

protected String getRunShellId()

getRunCommandId

protected String getRunCommandId()

getSetEnvironmentId

protected String getSetEnvironmentId()

getHostEnvironmentVariables

public List getHostEnvironmentVariables()
Description copied from class: RemoteCmdSubSystemImpl
Override this to return a list of environment variables for the host system

Overrides:
getHostEnvironmentVariables in class RemoteCmdSubSystemImpl
Returns:
the list of environment variables in the form NAME=VALUE

getPathEnvironment

public List getPathEnvironment()
Description copied from class: RemoteCmdSubSystemImpl
Override this to provide an appropriate path list for the command subsystem.

Overrides:
getPathEnvironment in class RemoteCmdSubSystemImpl

getRemoteServerLauncher

public ServerLauncher getRemoteServerLauncher()
Override of parent method so we can delegate this to the file subsystem.

Specified by:
getRemoteServerLauncher in interface SubSystem
Overrides:
getRemoteServerLauncher in class SubSystemImpl

canRunShell

public boolean canRunShell()
Determine whether the command subsystem can run a shell

Specified by:
canRunShell in interface RemoteCmdSubSystem
Overrides:
canRunShell in class RemoteCmdSubSystemImpl
Returns:
whether a shell can be run or not

canRunCommand

public boolean canRunCommand()
Determine whether the command subsystem can run a command

Specified by:
canRunCommand in interface RemoteCmdSubSystem
Overrides:
canRunCommand in class RemoteCmdSubSystemImpl
Returns:
whether a command can be run or not

getRunCommandDescriptor

protected DataElement getRunCommandDescriptor(DataElement remoteObject)

getRunShellDescriptor

protected DataElement getRunShellDescriptor(DataElement remoteObject)

getSetEnvironmentDescriptor

protected DataElement getSetEnvironmentDescriptor(DataElement remoteObject)

getSendInputDescriptor

protected DataElement getSendInputDescriptor(DataElement remoteObject)

sendCommandToMiner

protected IRemoteCommandShell sendCommandToMiner(IProgressMonitor monitor,
                                                 DataElement contextDir,
                                                 String command)
                                          throws InterruptedException
Throws:
InterruptedException

sendCommandToShell

public void sendCommandToShell(String input,
                               Shell shell,
                               Object commandObject)
                        throws Exception
overridden so that for universal we don't need to do in modal thread

Specified by:
sendCommandToShell in interface RemoteCmdSubSystem
Overrides:
sendCommandToShell in class SubSystemImpl
Throws:
Exception

sendShellToMiner

protected IRemoteCommandShell sendShellToMiner(DataElement contextDir)
                                        throws InterruptedException
Throws:
InterruptedException

runRemoteCommand

public boolean runRemoteCommand(IRemoteFile sourceDir,
                                String command)
                         throws InterruptedException
Run a command using the default shell

Parameters:
sourceDir - location to run from
command - the command to run
Returns:
success or failure
Throws:
InterruptedException

internalRunCommand

protected Object[] internalRunCommand(IProgressMonitor monitor,
                                      String command,
                                      Object context)
                               throws InvocationTargetException,
                                      InterruptedException,
                                      SystemMessageException
Description copied from class: SubSystemImpl
Actually run a remote command. This is called by the run(IProgressMonitor monitor) method, which in turn is called by runCommand(...).

As per IRunnableWithProgress rules:

YOU MUST OVERRIDE THIS IF YOU SUPPORT COMMANDS!

Overrides:
internalRunCommand in class SubSystemImpl
Throws:
InvocationTargetException
InterruptedException
SystemMessageException
See Also:
SubSystemImpl.internalRunCommand(IProgressMonitor, String, Object)

internalDisconnect

protected void internalDisconnect(IProgressMonitor monitor,
                                  String hostName,
                                  int port)
                           throws InvocationTargetException,
                                  InterruptedException
Actually disconnect from the remote host.

Overrides:
internalDisconnect in class SubSystemImpl
Throws:
InvocationTargetException
InterruptedException
See Also:
SubSystemImpl.internalDisconnect(IProgressMonitor,String,int)

setRemoteEnvironment

public void setRemoteEnvironment(DataElement theObject)
Set the environment variables for this connection. For universal this sets them in the DataStore tree. When a new shell is launched the environment variables are passed to the shell.


internalRunShell

protected IRemoteCommandShell internalRunShell(IProgressMonitor monitor,
                                               Object context)
                                        throws InvocationTargetException,
                                               InterruptedException,
                                               SystemMessageException
Overrides:
internalRunShell in class SubSystemImpl
Throws:
InvocationTargetException
InterruptedException
SystemMessageException
See Also:
SubSystemImpl.internalRunShell(IProgressMonitor, Object)

internalCancelShell

protected void internalCancelShell(IProgressMonitor monitor,
                                   Object command)
                            throws InvocationTargetException,
                                   InterruptedException
Overrides:
internalCancelShell in class SubSystemImpl
Throws:
InvocationTargetException
InterruptedException

validateCommand

protected boolean validateCommand(String command)

internalSendCommandToShell

protected void internalSendCommandToShell(IProgressMonitor monitor,
                                          String stdIn,
                                          Object context)
                                   throws InvocationTargetException,
                                          InterruptedException
Overrides:
internalSendCommandToShell in class SubSystemImpl
Throws:
InvocationTargetException
InterruptedException

getUserHome

protected String getUserHome()

logCommand

protected void logCommand(String cmd,
                          String[] msgs)

getExecutedCommands

public String[] getExecutedCommands()
Provide list of executed commands on subsystem.

Specified by:
getExecutedCommands in interface RemoteCmdSubSystem
Overrides:
getExecutedCommands in class SubSystemImpl

updateCommandHistory

protected void updateCommandHistory(String executedCmd)
Maintain list of executed commands - list is in order of most recent to least recent - no duplicates


getUnsupportedCommandList

protected ArrayList getUnsupportedCommandList()
Get the list of unsupported commands


supportsCommand

protected boolean supportsCommand(String theCommand)
Determine whether a specified command is supported


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.