iSeries Remote Systems
v6.0.0

com.ibm.etools.systems.as400ifscmdsubsys.impl
Class AS400ifsCmdSubSystemImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended bycom.ibm.etools.systems.subsystems.impl.SubSystemImpl
                  extended bycom.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
                      extended bycom.ibm.etools.systems.universalcmdsubsys.impl.UniversalCmdSubSystemImpl
                          extended bycom.ibm.etools.systems.as400ifscmdsubsys.impl.AS400ifsCmdSubSystemImpl
All Implemented Interfaces:
AS400ifsCmdSubSystem, org.eclipse.emf.ecore.EObject, IAdaptable, com.ibm.etools.systems.subsystems.ICommunicationsListener, IISeriesSubSystem, org.eclipse.emf.ecore.InternalEObject, com.ibm.etools.systems.subsystems.IRemoteObjectResolver, IRunnableWithProgress, com.ibm.etools.systems.model.ISystemResourceChangeEvents, com.ibm.etools.systems.universal.IUniversalSubSystem, org.eclipse.emf.common.notify.Notifier, com.ibm.etools.systems.subsystems.RemoteCmdSubSystem, com.ibm.etools.systems.subsystems.SubSystem, com.ibm.etools.systems.filters.SystemFilterPoolReferenceManagerProvider, com.ibm.etools.systems.universalcmdsubsys.UniversalCmdSubSystem

public class AS400ifsCmdSubSystemImpl
extends com.ibm.etools.systems.universalcmdsubsys.impl.UniversalCmdSubSystemImpl
implements IISeriesSubSystem, AS400ifsCmdSubSystem


Nested Class Summary
 
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl.RefreshSubSystem
 
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
com.ibm.etools.systems.subsystems.impl.SubSystemImpl.ConnectRunnable, com.ibm.etools.systems.subsystems.impl.SubSystemImpl.DisplayErrorMessageRunnable
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
static String copyright
           
protected static String ISERIES_RESERVED_EDEFAULT
          The default value of the 'ISeries Reserved' attribute.
protected  String iSeriesReserved
          The cached value of the 'ISeries Reserved' attribute.
 
Fields inherited from class com.ibm.etools.systems.universalcmdsubsys.impl.UniversalCmdSubSystemImpl
_paths, _runCmdDescriptor, _runShellDescriptor, _sendInputDescriptor, _setEnvironmentDescriptor, _unsupportedCommandList
 
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
_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, 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 class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface com.ibm.etools.iseries.core.IISeriesSubSystem
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
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
AS400ifsCmdSubSystemImpl()
          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(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 CmdSubSystem getCmdSubSystem()
          Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.
 IISeriesSubSystemCommandExecutionProperties getCommandExecutionProperties()
          Method required in com.ibm.etools.iseries.core.IISeriesSubSystem interface.
protected  com.ibm.etools.systems.dstore.core.model.DataStore getDataStore()
           
 com.ibm.etools.systems.subsystems.RemoteSystemEnvVar getEnvironmentVariable(String name)
          Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.
 com.ibm.etools.systems.subsystems.RemoteSystemEnvVar[] getEnvironmentVariableList()
          Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.
 String getEnvironmentVariableValue(String name)
          Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.
 String getISeriesReserved()
           
 ISeriesSystemDataStore getISeriesSystem()
          Return the shared ISystem system object for the given connection.
 FileSubSystem getObjectSubSystem()
          Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.
 PropertyPage getPropertyPage(Composite parent)
          Override so we are sure no pages are contributed to the subsystems tab of the property page for the parent connection.
protected  String getRunCommandId()
           
protected  String getRunShellId()
           
protected  String getSetEnvironmentId()
           
 Shell getShell()
          Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.
 com.ibm.etools.systems.subsystems.impl.AbstractSystemManager getSystemManager()
          Return a singleton instance of an AbstractSystemManager subclass that manages a pool of ISystem objects, one per system connection.
 com.ibm.as400.access.AS400 getToolboxAS400Object()
          Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.
protected  Object[] internalRunCommand(IProgressMonitor monitor, String command, Object context)
           
 com.ibm.etools.systems.subsystems.IRemoteCommandShell internalRunShell(IProgressMonitor monitor, Object context)
           
 boolean runRemoteCommand(com.ibm.etools.systems.subsystems.IRemoteFile sourceDir, String command)
           
 void setEnvironmentVariableList(String[] envVarNames, String[] envVarValues)
          Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.
 void setISeriesReserved(String newISeriesReserved)
           
 void setShell(Shell shell)
          Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.
 String toString()
           
protected  boolean validateCommand(String command)
          Validate given QShell command is valid.
 
Methods inherited from class com.ibm.etools.systems.universalcmdsubsys.impl.UniversalCmdSubSystemImpl
getChildren, getDefaultShell, getExecutedCommands, getHostEnvironmentVariables, getPathEnvironment, getRemoteServerLauncher, getRunCommandDescriptor, getRunShellDescriptor, getSendInputDescriptor, getSetEnvironmentDescriptor, getShells, getUnsupportedCommandList, getUserHome, internalCancelShell, internalDisconnect, internalSendCommandToShell, isUseSSL, logCommand, sendCommandToMiner, sendShellToMiner, setRemoteEnvironment, supportsCommand, updateCommandHistory
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
addEnvironmentVariable, addEnvironmentVariable, cancelAllShells, checkForCancel, communicationsStateChange, getCandidateCommands, getCommandSubSystem, getEnvVars, getFileSubSystem, getInvalidEnvironmentVariableNameCharacters, getObjectWithAbsoluteName, getParentRemoteCmdSubSystemFactory, hasChildren, internalRemoveShell, internalResolveFilterString, isPassiveCommunicationsListener, isWindows, parsePathEnvironmentVariable, removeEnvironmentVariable, removeEnvironmentVariable, restoreShellState, runCommand, runShell, saveShellState, sendCommandToShell
 
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, getProperties, getProperty, getQueryingMessage, getQueryingMessage, getResolvingMessage, getRunnableContext, getRunningMessage, getSaveFileName, getSettingMessage, getSettingMessage, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemProfile, getSystemProfileName, getSystemType, getTargetForFilter, getUDActionSubsystem, getUniqueOwningSystemFilterPool, getUserId, getUserIdGen, getVendorAttribute, getVendorAttributes, internalConnect, internalGetProperties, internalGetProperty, internalResolveFilterString, internalResolveFilterStrings, internalSetProperties, internalSetProperty, isConnected, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, removeShell, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, run, selectCommandSubSystem, setAdditionalAttributes, 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, unsetAdditionalAttributes, unsetIbmAttributes, unsetVendorAttributes
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, eURIFragmentSegment
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
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.SubSystem
checkIsConnected, clearLocalUserId, connect, connect, connect, deletingConnection, disconnect, disconnect, doesFilterListContentsOf, doesFilterMatch, doesFilterStringListContentsOf, doesFilterStringMatch, forceUserIdToUpperCase, getAdditionalAttributes, getCacheManager, getChildren, getCommandSubSystem, getFactoryId, getFilterPoolReferenceManager, getIbmAttributes, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getProperties, getProperty, getRemoteServerLauncher, getSaveFileName, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemProfile, getSystemProfileName, getTargetForFilter, getUDActionSubsystem, getUserId, getVendorAttribute, getVendorAttributes, hasChildren, isConnected, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, isUseSSL, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, setAdditionalAttributes, 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 org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver
getObjectWithAbsoluteName
 
Methods inherited from interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
addEnvironmentVariable, addEnvironmentVariable, cancelShell, getCandidateCommands, getDefaultShell, getEnvVars, getExecutedCommands, getInvalidEnvironmentVariableNameCharacters, getParentRemoteCmdSubSystemFactory, getShells, removeEnvironmentVariable, removeEnvironmentVariable, removeShell, restoreShellState, runCommand, runShell, sendCommandToShell
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

ISERIES_RESERVED_EDEFAULT

protected static final String ISERIES_RESERVED_EDEFAULT
The default value of the 'ISeries Reserved' attribute.

See Also:
getISeriesReserved()

iSeriesReserved

protected String iSeriesReserved
The cached value of the 'ISeries Reserved' attribute.

See Also:
getISeriesReserved()
Constructor Detail

AS400ifsCmdSubSystemImpl

public AS400ifsCmdSubSystemImpl()
Constructor. Called by EMF.

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()


getISeriesReserved

public String getISeriesReserved()

Specified by:
getISeriesReserved in interface AS400ifsCmdSubSystem
Returns:
the value of the 'ISeries Reserved' attribute.
See Also:
AS400ifsCmdSubSystem.setISeriesReserved(String), As400ifscmdsubsysPackage.getAS400ifsCmdSubSystem_ISeriesReserved()

setISeriesReserved

public void setISeriesReserved(String newISeriesReserved)

Specified by:
setISeriesReserved in interface AS400ifsCmdSubSystem
Parameters:
newISeriesReserved - the new value of the 'ISeries Reserved' attribute.
See Also:
AS400ifsCmdSubSystem.getISeriesReserved()

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   Class baseClass,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseAdd in interface org.eclipse.emf.ecore.InternalEObject

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject

eGet

public Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                   boolean resolve)

Specified by:
eGet in interface org.eclipse.emf.ecore.EObject

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.EObject

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject

toString

public String toString()


getSystemManager

public com.ibm.etools.systems.subsystems.impl.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 com.ibm.etools.systems.subsystems.SubSystem
Returns:
ISeriesSystemManager.getTheISeriesSystemManager()

getISeriesSystem

public ISeriesSystemDataStore getISeriesSystem()
Return the shared ISystem system object for the given connection. You can use this to test if we are connected, or to retrieve an iSeries JDBC connection, for example.

Specified by:
getISeriesSystem in interface IISeriesSubSystem

getCmdSubSystem

public CmdSubSystem getCmdSubSystem()
Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement. Returns the QSYS command subsystem ("iSeries Commands")

Specified by:
getCmdSubSystem in interface IISeriesSubSystem

getObjectSubSystem

public FileSubSystem getObjectSubSystem()
Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement. Returns the QSYS file subsystem ("iSeries Objects")

Specified by:
getObjectSubSystem in interface IISeriesSubSystem

getToolboxAS400Object

public com.ibm.as400.access.AS400 getToolboxAS400Object()
Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.

Return the iSeries Toolbox for Java "AS400" object for this connection. This may, or may not, be connected yet. To test, call SubSystemImpl.isConnected() To connect, call SubSystemImpl.connect() or preferably SubSystemImpl.connect(Shell)

Specified by:
getToolboxAS400Object in interface IISeriesSubSystem

setShell

public void setShell(Shell shell)
Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.

Set the shell to be used when a dialog is needed, such as when prompting for password or showing an error message.

Specified by:
setShell in interface IISeriesSubSystem

getShell

public Shell getShell()
Method required by com.ibm.etools.iseries.core.IISeriesSubSystem interface, which all IBM-supplied iSeries subsystems implement.

Get the shell to be used when a dialog is needed, such as when prompting for password or showing an error message. This is as last set by calling setShell(Shell).

Specified by:
getShell in interface IISeriesSubSystem

getCommandExecutionProperties

public IISeriesSubSystemCommandExecutionProperties getCommandExecutionProperties()
Method required in com.ibm.etools.iseries.core.IISeriesSubSystem interface.

Return the Command Execution Property Page properties that are accessible from all iSeries subsystems. All our subsystems implement this method, but only the Objects SubSystem actually implements the interface and hence returns "this". All others return the objects subsystem instance.

Specified by:
getCommandExecutionProperties in interface IISeriesSubSystem

getDataStore

protected com.ibm.etools.systems.dstore.core.model.DataStore getDataStore()
See Also:
UniversalCmdSubSystemImpl.getDataStore()

validateCommand

protected boolean validateCommand(String command)
Validate given QShell command is valid.


canRunShell

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

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

internalRunShell

public com.ibm.etools.systems.subsystems.IRemoteCommandShell internalRunShell(IProgressMonitor monitor,
                                                                              Object context)
                                                                       throws InvocationTargetException,
                                                                              InterruptedException,
                                                                              com.ibm.etools.systems.core.messages.SystemMessageException
Throws:
InvocationTargetException
InterruptedException
com.ibm.etools.systems.core.messages.SystemMessageException
See Also:
UniversalCmdSubSystemImpl#internalRunShell()

internalRunCommand

protected Object[] internalRunCommand(IProgressMonitor monitor,
                                      String command,
                                      Object context)
                               throws InvocationTargetException,
                                      InterruptedException,
                                      com.ibm.etools.systems.core.messages.SystemMessageException
Throws:
InvocationTargetException
InterruptedException
com.ibm.etools.systems.core.messages.SystemMessageException
See Also:
UniversalCmdSubSystemImpl#internalRunCommand()

runRemoteCommand

public boolean runRemoteCommand(com.ibm.etools.systems.subsystems.IRemoteFile sourceDir,
                                String command)
                         throws InterruptedException
Throws:
InterruptedException
See Also:
UniversalCmdSubSystemImpl.runRemoteCommand(IRemoteFile, String)

getRunShellId

protected String getRunShellId()

getRunCommandId

protected String getRunCommandId()

getSetEnvironmentId

protected String getSetEnvironmentId()

getPropertyPage

public PropertyPage getPropertyPage(Composite parent)
Override so we are sure no pages are contributed to the subsystems tab of the property page for the parent connection.

Specified by:
getPropertyPage in interface com.ibm.etools.systems.subsystems.SubSystem

getEnvironmentVariable

public com.ibm.etools.systems.subsystems.RemoteSystemEnvVar getEnvironmentVariable(String name)
Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.

Specified by:
getEnvironmentVariable in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
See Also:
RemoteCmdSubSystem.getEnvironmentVariable(String)

getEnvironmentVariableList

public com.ibm.etools.systems.subsystems.RemoteSystemEnvVar[] getEnvironmentVariableList()
Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.

Specified by:
getEnvironmentVariableList in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
See Also:
RemoteCmdSubSystem.getEnvironmentVariableList()

getEnvironmentVariableValue

public String getEnvironmentVariableValue(String name)
Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.

Specified by:
getEnvironmentVariableValue in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
See Also:
RemoteCmdSubSystem.getEnvironmentVariableValue(String)

setEnvironmentVariableList

public void setEnvironmentVariableList(String[] envVarNames,
                                       String[] envVarValues)
Redirect environment variable support to the QSYS cmd subsystem so all iSeries subsystems share the same env vars.

Specified by:
setEnvironmentVariableList in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
See Also:
RemoteCmdSubSystem.setEnvironmentVariableList(String[], String[])

iSeries Remote Systems
v6.0.0

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.