Remote Systems
v6.4.1

com.ibm.etools.systems.subsystems.impl
Class RemoteCmdSubSystemImpl

java.lang.Object
  extended byEObjectImpl
      extended bycom.ibm.etools.systems.subsystems.impl.SubSystemImpl
          extended bycom.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
All Implemented Interfaces:
IAdaptable, ICommunicationsListener, IRemoteObjectResolver, ISystemResourceChangeEvents, RemoteCmdSubSystem, SubSystem, SystemFilterPoolReferenceManagerProvider
Direct Known Subclasses:
DefaultCmdSubSystemImpl, LocalCmdSubSystemImpl, UniversalCmdSubSystemImpl

public class RemoteCmdSubSystemImpl
extends SubSystemImpl
implements RemoteCmdSubSystem, ICommunicationsListener

See Also:
Serialized Form

Nested Class Summary
 class RemoteCmdSubSystemImpl.RefreshSubSystem
           
 
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
SubSystemImpl.ConnectRunnable, SubSystemImpl.DisplayErrorMessageRunnable
 
Field Summary
protected  ArrayList _cmdShells
           
protected  IRemoteCommandShell _defaultShell
           
protected  List _envVars
           
protected  RemoteFileSubSystem _fileSubSystem
           
static String COMMAND_SHELLS_MEMENTO
           
static String copyright
           
protected  EList 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.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
RemoteCmdSubSystemImpl()
          Default constructor.
 
Method Summary
 void addEnvironmentVariable(RemoteSystemEnvVar rsev)
          Add environment variable entry, given a RemoteSystemEnvVar object
 void addEnvironmentVariable(String name, String value)
          Add environment variable entry, given a name and value
 void cancelAllShells()
           
 boolean canRunCommand()
          Determine whether the command subsystem can run a command
 boolean canRunShell()
          Determine whether the command subsystem can run a shell
 boolean checkForCancel()
          Long running list processing calls this method to check for a user-cancel event.
 void communicationsStateChange(CommunicationsEvent e)
          This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes.
 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)
           
 ICandidateCommand[] getCandidateCommands(Object context)
          Lists the possible commands for the given context
 Object[] getChildren()
          Return the children for this subsystem.
 RemoteCmdSubSystem getCommandSubSystem()
          Return the associated command subsystem.
 IRemoteCommandShell getDefaultShell(Shell shell)
          Get the default running command shell for this command subsystem.
 RemoteSystemEnvVar getEnvironmentVariable(String name)
          Given an environment variable name, find its RemoteSystemEnvVar object.
 RemoteSystemEnvVar[] getEnvironmentVariableList()
          Get the initial environment variable list as a string of RemoteSystemEnvVar objects.
 String getEnvironmentVariableValue(String name)
          Given an environment variable name, find its value.
 EList getEnvVars()
          Private.
 RemoteFileSubSystem getFileSubSystem()
           
 List getHostEnvironmentVariables()
          Override this to return a list of environment variables for the host system
 String getInvalidEnvironmentVariableNameCharacters()
          Default implementation of getInvalidEnvironmentVariableNameCharacters.
 Object getObjectWithAbsoluteName(String key)
          Return the object within the subsystem that corresponds to the specified unique ID.
 RemoteCmdSubSystemFactory getParentRemoteCmdSubSystemFactory()
          Return parent subsystem factory, cast to a RemoteCmdSubSystemFactory
 List getPathEnvironment()
          Override this to provide an appropriate path list for the command subsystem.
 String getShellEncoding()
           
 IRemoteCommandShell[] getShells()
          Get all command shells and transient commands that have been run or are running for this command subsystem.
 boolean hasChildren()
          Return true if this subsystem has children objects to be displayed in the Remote System View explorer.
protected  void internalRemoveShell(Object command)
           
protected  Object[] internalResolveFilterString(IProgressMonitor monitor, String filterString)
          Actually resolve an absolute filter string.
 boolean isPassiveCommunicationsListener()
          This method determines if the communications listener is a passive or active listener.
 boolean isWindows()
           
protected  List parsePathEnvironmentVariable(String path)
           
 void removeEnvironmentVariable(RemoteSystemEnvVar rsev)
          Remove environment variable entry given its RemoteSystemEnvVar object
 void removeEnvironmentVariable(String name)
          Remove environment variable entry given only its environment variable name
 IRemoteCommandShell[] restoreShellState(Shell shellWindow)
          Restore all the command shells that were open before disconnecting during the previous session
 Object[] runCommand(String command, Shell shell, Object context)
          overridden so that for universal we don't need to do in modal thread
 IRemoteCommandShell runShell(Shell shell, Object context)
          overridden so that for universal we don't need to do in modal thread
protected  void saveShellState(List cmdShells)
           
 void setEnvironmentVariableList(String[] envVarNames, String[] envVarValues)
          Set the initial environment variable list entries, all in one shot, using a pair of String arrays: the first is the environment variable names, the second is the corresponding environment variable values.
 void setShellEncoding(String encoding)
           
 
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, getExecutedCommands, getFactoryId, getFilterPoolReferenceManager, getFilterReferenceWithAbsoluteName, getFirstParentFilterString, getHostName, getIBMAttribute, getIbmAttributes, getLocalUserId, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getPreferencesKey, getPreferencesKey, getPreferencesManager, getPrimarySubSystem, getProperties, getProperty, getPropertyPage, getQueryingMessage, getQueryingMessage, getRemoteServerLauncher, getResolvingMessage, getRunnableContext, getRunningMessage, getSaveFileName, getSettingMessage, getSettingMessage, getShell, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemManager, getSystemProfile, getSystemProfileName, getSystemType, getTargetForFilter, getUDActionSubsystem, getUniqueOwningSystemFilterPool, getUserId, getUserIdGen, getVendorAttribute, getVendorAttributes, internalCancelShell, internalConnect, internalDisconnect, internalGetProperties, internalGetProperty, internalResolveFilterString, internalResolveFilterStrings, internalRunCommand, internalRunCommand, internalRunShell, internalSendCommandToShell, internalSetProperties, internalSetProperty, isConnected, isConnectionError, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, isUseSSL, removeShell, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, run, runCommand, selectCommandSubSystem, sendCommandToShell, 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
cancelShell, getExecutedCommands, removeShell, sendCommandToShell
 
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, getFactoryId, getFilterPoolReferenceManager, getIbmAttributes, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getPrimarySubSystem, getProperties, getProperty, getPropertyPage, getRemoteServerLauncher, getSaveFileName, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemManager, getSystemProfile, getSystemProfileName, getTargetForFilter, getUDActionSubsystem, getUserId, getVendorAttribute, getVendorAttributes, 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
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

COMMAND_SHELLS_MEMENTO

public static String COMMAND_SHELLS_MEMENTO

envVars

protected EList envVars

_envVars

protected List _envVars

_cmdShells

protected ArrayList _cmdShells

_defaultShell

protected IRemoteCommandShell _defaultShell

_fileSubSystem

protected RemoteFileSubSystem _fileSubSystem
Constructor Detail

RemoteCmdSubSystemImpl

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

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class SubSystemImpl

getParentRemoteCmdSubSystemFactory

public RemoteCmdSubSystemFactory getParentRemoteCmdSubSystemFactory()
Return parent subsystem factory, cast to a RemoteCmdSubSystemFactory

Specified by:
getParentRemoteCmdSubSystemFactory in interface RemoteCmdSubSystem

getShellEncoding

public String getShellEncoding()

setShellEncoding

public void setShellEncoding(String encoding)

checkForCancel

public boolean checkForCancel()
Long running list processing calls this method to check for a user-cancel event. If user did cancel, an exception is thrown.

Returns:
true if caller wants to cancel

getEnvironmentVariableList

public RemoteSystemEnvVar[] getEnvironmentVariableList()
Get the initial environment variable list as a string of RemoteSystemEnvVar objects. Array returned may be size zero but will not be null.

Specified by:
getEnvironmentVariableList in interface RemoteCmdSubSystem

setEnvironmentVariableList

public void setEnvironmentVariableList(String[] envVarNames,
                                       String[] envVarValues)
Set the initial environment variable list entries, all in one shot, using a pair of String arrays: the first is the environment variable names, the second is the corresponding environment variable values.

Note, this calls getParentSubSystemFactory().saveSubSystem(this) for you.

Specified by:
setEnvironmentVariableList in interface RemoteCmdSubSystem

addEnvironmentVariable

public void addEnvironmentVariable(String name,
                                   String value)
Add environment variable entry, given a name and value

Specified by:
addEnvironmentVariable in interface RemoteCmdSubSystem

addEnvironmentVariable

public void addEnvironmentVariable(RemoteSystemEnvVar rsev)
Add environment variable entry, given a RemoteSystemEnvVar object

Specified by:
addEnvironmentVariable in interface RemoteCmdSubSystem

removeEnvironmentVariable

public void removeEnvironmentVariable(RemoteSystemEnvVar rsev)
Remove environment variable entry given its RemoteSystemEnvVar object

Specified by:
removeEnvironmentVariable in interface RemoteCmdSubSystem

removeEnvironmentVariable

public void removeEnvironmentVariable(String name)
Remove environment variable entry given only its environment variable name

Specified by:
removeEnvironmentVariable in interface RemoteCmdSubSystem

getEnvironmentVariable

public RemoteSystemEnvVar getEnvironmentVariable(String name)
Given an environment variable name, find its RemoteSystemEnvVar object. Returns null if not found!

Specified by:
getEnvironmentVariable in interface RemoteCmdSubSystem

getEnvironmentVariableValue

public String getEnvironmentVariableValue(String name)
Given an environment variable name, find its value. Returns null if not found.

Specified by:
getEnvironmentVariableValue in interface RemoteCmdSubSystem

getPathEnvironment

public List getPathEnvironment()
Override this to provide an appropriate path list for the command subsystem.


getHostEnvironmentVariables

public List getHostEnvironmentVariables()
Override this to return a list of environment variables for the host system

Returns:
the list of environment variables in the form NAME=VALUE

isWindows

public boolean isWindows()

getCandidateCommands

public ICandidateCommand[] getCandidateCommands(Object context)
Lists the possible commands for the given context

Specified by:
getCandidateCommands in interface RemoteCmdSubSystem
Parameters:
context - the context for a command
Returns:
the list of possible commands

parsePathEnvironmentVariable

protected List parsePathEnvironmentVariable(String path)

getFileSubSystem

public RemoteFileSubSystem getFileSubSystem()

getInvalidEnvironmentVariableNameCharacters

public String getInvalidEnvironmentVariableNameCharacters()
Default implementation of getInvalidEnvironmentVariableNameCharacters. This default implementation just returns "=" (the only invalid character is the = sign.) Subclasses can override this to provide a more comprehensive list.

Specified by:
getInvalidEnvironmentVariableNameCharacters in interface RemoteCmdSubSystem
See Also:
RemoteCmdSubSystem.getInvalidEnvironmentVariableNameCharacters()

getCommandSubSystem

public RemoteCmdSubSystem getCommandSubSystem()
Return the associated command subsystem. By default, returns the first command subsystem found for this connection, but can be refined by each subsystem implementation. For command subsystems, returns "this".

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

internalResolveFilterString

protected Object[] internalResolveFilterString(IProgressMonitor monitor,
                                               String filterString)
                                        throws InvocationTargetException,
                                               InterruptedException
Actually resolve an absolute filter string. This is called by the run(IProgressMonitor monitor) method, which in turn is called by resolveFilterString.

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

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 SubSystemImpl

hasChildren

public boolean hasChildren()
Description copied from interface: SubSystem
Return true if this subsystem has children objects to be displayed in the Remote System View explorer.

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

getDefaultShell

public IRemoteCommandShell getDefaultShell(Shell shell)
                                    throws Exception
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
Parameters:
shell - a window used for notification
Returns:
the default running command shell
Throws:
Exception

getShells

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

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

canRunShell

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

Specified by:
canRunShell in interface RemoteCmdSubSystem
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
Returns:
whether a command can be run or not

getObjectWithAbsoluteName

public Object getObjectWithAbsoluteName(String key)
                                 throws Exception
Return the object within the subsystem that corresponds to the specified unique ID. For remote command, the key is determined by the command ID and the ouput ID

Specified by:
getObjectWithAbsoluteName in interface IRemoteObjectResolver
Overrides:
getObjectWithAbsoluteName in class SubSystemImpl
Throws:
Exception

saveShellState

protected void saveShellState(List cmdShells)

internalRemoveShell

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

restoreShellState

public IRemoteCommandShell[] restoreShellState(Shell shellWindow)
Description copied from interface: RemoteCmdSubSystem
Restore all the command shells that were open before disconnecting during the previous session

Specified by:
restoreShellState in interface RemoteCmdSubSystem
Parameters:
shellWindow - a window used for notification
Returns:
the command shells that were restored

cancelAllShells

public void cancelAllShells()

isPassiveCommunicationsListener

public boolean isPassiveCommunicationsListener()
Description copied from interface: ICommunicationsListener
This method determines if the communications listener is a passive or active listener. Typically a passive listener registers with the communications system and responds to events as they occur. An active listener typically registeres with the communications system only for the duration of the task (i.e. user editing a file, or outstanding communications request.) The user will be prompted on a disconnect if there are any active communication listeners registered.

Specified by:
isPassiveCommunicationsListener in interface ICommunicationsListener
Returns:
false if the communications listener is an active listener, true if the communications listener is a passive listener.
See Also:
ICommunicationsListener.isPassiveCommunicationsListener()

communicationsStateChange

public void communicationsStateChange(CommunicationsEvent e)
Description copied from interface: ICommunicationsListener
This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes. The state field in CommunicationsEvent determines which state change is about to or has occured.

Specified by:
communicationsStateChange in interface ICommunicationsListener

getEnvVars

public EList getEnvVars()
Description copied from interface: RemoteCmdSubSystem
Private. Do not override or call.

Specified by:
getEnvVars in interface RemoteCmdSubSystem
Returns:
The list of EnvVars references

runCommand

public Object[] runCommand(String command,
                           Shell shell,
                           Object context)
                    throws Exception
overridden so that for universal we don't need to do in modal thread

Specified by:
runCommand in interface RemoteCmdSubSystem
Overrides:
runCommand in class SubSystemImpl
Parameters:
command - Command to be executed remotely.
Returns:
Array of objects that are the result of running this command. Typically, these are messages logged by the command.
Throws:
Exception

runShell

public IRemoteCommandShell runShell(Shell shell,
                                    Object context)
                             throws Exception
overridden so that for universal we don't need to do in modal thread

Specified by:
runShell in interface RemoteCmdSubSystem
Overrides:
runShell in class SubSystemImpl
Returns:
An object that represents the command and it's output.
Throws:
Exception

eInverseAdd

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

Overrides:
eInverseAdd in class SubSystemImpl

eInverseRemove

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

Overrides:
eInverseRemove in class SubSystemImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class SubSystemImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class SubSystemImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class SubSystemImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class SubSystemImpl

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.