iSeries Remote Systems
v6.0.0

com.ibm.etools.systems.as400cmdsubsys.impl
Class CmdSubSystemImpl

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.as400cmdsubsys.impl.AS400SubSystemImpl
                      extended bycom.ibm.etools.systems.as400cmdsubsys.impl.CmdSubSystemImpl
All Implemented Interfaces:
AS400SubSystem, CmdSubSystem, 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, org.eclipse.emf.common.notify.Notifier, com.ibm.etools.systems.subsystems.RemoteCmdSubSystem, com.ibm.etools.systems.subsystems.SubSystem, com.ibm.etools.systems.filters.SystemFilterPoolReferenceManagerProvider

public class CmdSubSystemImpl
extends AS400SubSystemImpl
implements CmdSubSystem, AS400SubSystem, com.ibm.etools.systems.subsystems.ICommunicationsListener


Nested Class Summary
 
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
protected static String ASP_GROUP_EDEFAULT
          The default value of the 'ASP Group' attribute.
protected  String aspGroup
           
protected static String CODE_ALIAS_EDEFAULT
          The default value of the 'CODE Alias' attribute.
protected  String codeAlias
           
static String copyright
           
protected  String curlib
           
protected static String CURLIB_EDEFAULT
          The default value of the 'Curlib' attribute.
protected  org.eclipse.emf.common.util.EList envVars
           
 boolean eventFileTrace
           
protected static String EXTRA_ATTRIBUTES_EDEFAULT
          The default value of the 'Extra Attributes' attribute.
protected  String extraAttributes
           
protected static String INITIAL_COMMAND_EDEFAULT
          The default value of the 'Initial Command' attribute.
protected  String initialCommand
           
protected  org.eclipse.emf.common.util.EList initialLibraryList
           
static String[] INTERACTIVE_CMD_PREFIXES
           
protected static boolean RUN_SERVER_REMOTELY_EDEFAULT
          The default value of the 'Run Server Remotely' attribute.
protected  boolean runServerRemotely
           
protected static String SBM_JOB_PARMS_EDEFAULT
          The default value of the 'SBM Job Parms' attribute.
protected  String sbmJobParms
           
protected  boolean sbmJobParmsESet
          This is true if the SBM Job Parms attribute has been set.
 
Fields inherited from class com.ibm.etools.systems.as400cmdsubsys.impl.AS400SubSystemImpl
shell
 
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, 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.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
protected CmdSubSystemImpl()
          THIS IS THE CONSTRUCTOR.
 
Method Summary
 void addEnvironmentVariable(com.ibm.etools.systems.subsystems.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 addLibraryListEntry(String library, String position)
          Add library list entry
 int attachInteractiveJob(String jobName, String queueName)
          Attach to an iSeries interactive job.
 boolean canRunCommand()
          Determine whether the command subsystem can run a command
 boolean canRunShell()
          Determine whether the command subsystem can run a shell
 void clearCommandLog()
          Clear log of executed commands on subsystem.
 void communicationsStateChange(com.ibm.etools.systems.subsystems.CommunicationsEvent e)
          This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes.
 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)
           
 String getASPGroup()
           
 com.ibm.etools.systems.subsystems.ICandidateCommand[] getCandidateCommands(Object obj)
          Provides a list of candidate commands for the specified context.
 CmdSubSystem getCmdSubSystem()
          Return the Command Subsystem for executing remote QSYS Commands
 String getCODEAlias()
           
 Vector getCommandLog()
          Provide log of executed commands on subsystem.
 String getCommandLogAsString()
          Provide log of executed commands on subsystem.
 String getCurlib()
           
 int getDebugRouterListeningPortNumber()
          Start the program in a separate job that allows threads.
 com.ibm.etools.systems.subsystems.IRemoteCommandShell getDefaultShell(Shell shell)
           
 com.ibm.etools.systems.subsystems.RemoteSystemEnvVar getEnvironmentVariable(String name)
          Given an environment variable name, find its RemoteSystemEnvVar object.
 com.ibm.etools.systems.subsystems.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.
 org.eclipse.emf.common.util.EList getEnvVars()
           
 String[] getExecutedCommands()
          Provide list of executed commands on subsystem.
 String getExtraAttributes()
           
 String getInitialCommand()
          Get the command that will be run at connect
 String getInitialCommandGen()
           
 org.eclipse.emf.common.util.EList getInitialLibraryList()
           
 SystemLibraryListEntry[] getInitialSystemLibraryList()
          Get the initial library list as a string of SystemLibraryListEntry objects.
 String getInteractiveJobName()
          Get the job name of the associated interactive job.
 String getInvalidEnvironmentVariableNameCharacters()
          Restrict iSeries environment variable names to not include = and ' ' (space).
 com.ibm.etools.systems.subsystems.RemoteCmdSubSystemFactory getParentRemoteCmdSubSystemFactory()
          Return parent subsystem factory, cast to a RemoteCmdSubSystemFactory for convenience.
 PropertyPage getPropertyPage(Composite parent)
          Return our property page to contribute to the connection's property page, for the SubSystems node.
 String getSBMJobParms()
           
 com.ibm.etools.systems.subsystems.IRemoteCommandShell[] getShells()
           
 SystemLibraryListEntry getSystemLibraryListEntry(String library)
          Given a library name, find its SystemLibraryListEntry object
 String getUserProfileCurLib()
          Get the current library specified in the user profile
protected  Object[] internalResolveFilterString(IProgressMonitor monitor, String filterString)
          Actually resolve an absolute filter string.
 Object[] internalRunCommand(IProgressMonitor monitor, String cmd, Object context)
          Actually run a remote command.
static boolean isInteractiveCommand(String commandString)
          Analyzes a given command to see if it appears to be interactive or not.
 boolean isInteractiveJobAvailable()
          Method from interface IISeriesSubSystemCommandExecutionProperties.
 boolean isInteractiveJobBusy()
          Check if the interactive job is currently busy processing a command.
 boolean isPassiveCommunicationsListener()
           
 boolean isRunServerRemotely()
           
 boolean isSetSBMJobParms()
           
 boolean isShowEventsFile()
          Returns whether events file should be shown when a command that generates an events file is run.
protected  void logCommand(String cmd, Object[] msgs)
           
 void processBatchCommandResults(String cmd, Vector results)
          processBatchCommandResults
 String promptCommand(String command)
          Prompt remote command Return prompted command
 String promptCommand(String command, boolean usePromptOverrideProgram)
           
 String promptCommand(String command, boolean usePromptOverrideProgram, boolean execute)
          Prompt remote command, specifying if the prompt override program for the command should be used (pass true if the command will prompted and then immediately executed).
 boolean releaseInteractiveJob()
          Method from interface IISeriesSubSystemCommandExecutionProperties.
 int releaseThreadedApplication(String qualifiedJobName, String messageQueue, String messageKey)
          Release the job that was started with the runThreadedApplication api.
 void removeEnvironmentVariable(com.ibm.etools.systems.subsystems.RemoteSystemEnvVar rsev)
          Remove environment variable entry given its RemoteSystemEnvVar object
 void removeEnvironmentVariable(String name)
          Remove environment variable entry given only its environment variable name
 void removeLibraryListEntry(String library)
          Remove library list entry given only its library name
 void removeLibraryListEntry(SystemLibraryListEntry slle)
          Remove library list entry given its SystemLibraryListEntry object
 com.ibm.etools.systems.subsystems.IRemoteCommandShell[] restoreShellState(Shell arg0)
           
 Object[] runCommand(String command)
          Execute remote command without a progress monitor Runs in our job, not in batch, not interactive.
 Object[] runCommand(String command, int jobEnv)
          Execute remote command without a progress monitor, possibly in batch, interactive, or just the RSE Server
 Object[] runCommand(String command, IProgressMonitor monitor)
          Execute remote command without a progress monitor Runs in our job, not in batch, not interactive.
 Object[] runCommand(String command, Shell shell, int jobEnv)
          Execute remote command, possibly in batch, interactive, or just the RSE Server
 void runInitialCurrentDirectoy(IProgressMonitor monitor)
          Used to set the initial current directory when signing on.
 Object[] runInitialLibraryList(IProgressMonitor monitor)
          Setup the initial library list for connection time
 Object[] runInteractiveCommand(String command)
          Run an interactive iSeries QSYS command (vs QSHELL).
 Object[] runInteractiveCommand(String command, boolean queueCommand)
          Run an interactive iSeries QSYS command (vs QSHELL).
 ISeriesDebugHoldJobInfo runThreadedApplication(String destinationName, String programName, String programParameters)
          Start the program in a separate job that allows threads.
 void setASPGroup(String newASPGroup)
           
 void setCODEAlias(String newCODEAlias)
           
 void setCurlib(String newCurlib)
           
 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 setEventFileCommandDetector(ISeriesEventFileCommandDetector evfDetector)
          Business partners can call this method to specify their own algorithm to use to decide if a given OS/400 command generates an event file or not.
 void setExtraAttributes(String newExtraAttributes)
           
 void setInitialCommand(String cmd)
          Set the command that will be run at connect time.
 void setInitialCommandGen(String newInitialCommand)
           
 void setInitialSystemLibraryList(String[] libraries, String[] positions)
          Set the initial library list entries, all in one shot, using a pair of String arrays
 void setRunServerRemotely(boolean newRunServerRemotely)
           
 void setSBMJobParms(String newSBMJobParms)
           
 void setShowEventsFile(boolean showEventsFile)
          Sets whether events file should be shown when a command that generates an events file is run.
 String toString()
           
 void unsetSBMJobParms()
           
protected  void updateCommandHistory(String executedCmd)
          Maintain list of executed commands - list is in order of most recent to least recent - no duplicates
 void useDefaultEventFileDetector()
          Use the default IBM-supplied algorithm for determining if a given OS/400 command generates an event file or not.
 
Methods inherited from class com.ibm.etools.systems.as400cmdsubsys.impl.AS400SubSystemImpl
checkForCommandErrors, createFileWithAbsoluteName, createLibraryWithAbsoluteName, createMemberWithAbsoluteName, getCacheManager, getCommandExecutionProperties, getCommandSubSystem, getDataStore, getISeriesConnection, getISeriesSystem, getObjectSubSystem, getObjectWithAbsoluteName, getShell, getSystemManager, getToolboxAS400Object, internalDataStoreError, internalGetCacheManager, internalGetProperties, internalGetProperty, internalSetProperties, internalSetProperty, setCacheManager, setShell, supportsCaching
 
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, getChildren, getConnectionOwnedFilterPoolName, getConnectionPrivateFilterPool, getFactoryId, getFilterPoolReferenceManager, getFilterReferenceWithAbsoluteName, getFirstParentFilterString, getHostName, getIBMAttribute, getIbmAttributes, getLocalUserId, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getPreferencesKey, getPreferencesKey, getPreferencesManager, getProperties, getProperty, getQueryingMessage, getQueryingMessage, getRemoteServerLauncher, getResolvingMessage, getRunnableContext, getRunningMessage, getSaveFileName, getSettingMessage, getSettingMessage, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemProfile, getSystemProfileName, getSystemType, getTargetForFilter, getUDActionSubsystem, getUniqueOwningSystemFilterPool, getUserId, getUserIdGen, getVendorAttribute, getVendorAttributes, hasChildren, internalCancelShell, internalConnect, internalDisconnect, internalGetProperties, internalGetProperty, internalRemoveShell, internalResolveFilterString, internalResolveFilterStrings, internalRunShell, internalSendCommandToShell, internalSetProperties, internalSetProperty, isConnected, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, isUseSSL, removeShell, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, run, runCommand, runShell, selectCommandSubSystem, sendCommandToShell, 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, 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.iseries.core.IISeriesSubSystem
getCommandExecutionProperties, getISeriesSystem, getObjectSubSystem, getShell, getToolboxAS400Object, setShell
 
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, getSystemManager, 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
cancelShell, removeShell, 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

INITIAL_COMMAND_EDEFAULT

protected static final String INITIAL_COMMAND_EDEFAULT
The default value of the 'Initial Command' attribute.

See Also:
getInitialCommand()

INTERACTIVE_CMD_PREFIXES

public static final String[] INTERACTIVE_CMD_PREFIXES

eventFileTrace

public boolean eventFileTrace

initialCommand

protected String initialCommand

CURLIB_EDEFAULT

protected static final String CURLIB_EDEFAULT
The default value of the 'Curlib' attribute.

See Also:
getCurlib()

curlib

protected String curlib

CODE_ALIAS_EDEFAULT

protected static final String CODE_ALIAS_EDEFAULT
The default value of the 'CODE Alias' attribute.

See Also:
getCODEAlias()

codeAlias

protected String codeAlias

SBM_JOB_PARMS_EDEFAULT

protected static final String SBM_JOB_PARMS_EDEFAULT
The default value of the 'SBM Job Parms' attribute.

See Also:
getSBMJobParms()

sbmJobParms

protected String sbmJobParms

sbmJobParmsESet

protected boolean sbmJobParmsESet
This is true if the SBM Job Parms attribute has been set.


RUN_SERVER_REMOTELY_EDEFAULT

protected static final boolean RUN_SERVER_REMOTELY_EDEFAULT
The default value of the 'Run Server Remotely' attribute.

See Also:
isRunServerRemotely(), Constant Field Values

runServerRemotely

protected boolean runServerRemotely

ASP_GROUP_EDEFAULT

protected static final String ASP_GROUP_EDEFAULT
The default value of the 'ASP Group' attribute.

See Also:
getASPGroup()

aspGroup

protected String aspGroup

EXTRA_ATTRIBUTES_EDEFAULT

protected static final String EXTRA_ATTRIBUTES_EDEFAULT
The default value of the 'Extra Attributes' attribute.

See Also:
getExtraAttributes()

extraAttributes

protected String extraAttributes

initialLibraryList

protected org.eclipse.emf.common.util.EList initialLibraryList

envVars

protected org.eclipse.emf.common.util.EList envVars
Constructor Detail

CmdSubSystemImpl

protected CmdSubSystemImpl()
THIS IS THE CONSTRUCTOR. Called by EMF.

Method Detail

eStaticClass

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

Overrides:
eStaticClass in class AS400SubSystemImpl

getEnvironmentVariableList

public com.ibm.etools.systems.subsystems.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 com.ibm.etools.systems.subsystems.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.

Specified by:
setEnvironmentVariableList in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

addEnvironmentVariable

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

Specified by:
addEnvironmentVariable in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

addEnvironmentVariable

public void addEnvironmentVariable(com.ibm.etools.systems.subsystems.RemoteSystemEnvVar rsev)
Add environment variable entry, given a RemoteSystemEnvVar object

Specified by:
addEnvironmentVariable in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

removeEnvironmentVariable

public void removeEnvironmentVariable(com.ibm.etools.systems.subsystems.RemoteSystemEnvVar rsev)
Remove environment variable entry given its RemoteSystemEnvVar object

Specified by:
removeEnvironmentVariable in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

removeEnvironmentVariable

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

Specified by:
removeEnvironmentVariable in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

getEnvironmentVariable

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

Specified by:
getEnvironmentVariable in interface com.ibm.etools.systems.subsystems.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 com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

getInvalidEnvironmentVariableNameCharacters

public String getInvalidEnvironmentVariableNameCharacters()
Restrict iSeries environment variable names to not include = and ' ' (space).

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

runCommand

public Object[] runCommand(String command,
                           Shell shell,
                           int jobEnv)
                    throws Exception
Execute remote command, possibly in batch, interactive, or just the RSE Server

Specified by:
runCommand in interface CmdSubSystem
Parameters:
command - - iSeries CL command string to run
shell - - the shell to host the error message dialog, or password prompt, if needed. Can be null.
jobEnv - - one of IISeriesConstants.RUN_IN_BATCH, RUN_IN_INTERACTIVE, RUN_IN_RSESERVER, RUN_IN_RSESERVERMULTITHREADED
Returns:
array of ISeriesMessage objects, for each host message issued by the remote iSeries command analyzer
Throws:
Exception

runCommand

public Object[] runCommand(String command,
                           int jobEnv)
                    throws Exception
Execute remote command without a progress monitor, possibly in batch, interactive, or just the RSE Server

Parameters:
command - - iSeries CL command string to run
jobEnv - - one of IISeriesConstants.RUN_IN_BATCH, RUN_IN_INTERACTIVE, RUN_IN_RSESERVER, RUN_IN_RSESERVERMULTITHREADED
Throws:
Exception

runCommand

public Object[] runCommand(String command)
                    throws Exception
Execute remote command without a progress monitor Runs in our job, not in batch, not interactive.

Specified by:
runCommand in interface CmdSubSystem
Throws:
Exception

runCommand

public Object[] runCommand(String command,
                           IProgressMonitor monitor)
                    throws Exception
Execute remote command without a progress monitor Runs in our job, not in batch, not interactive.

Specified by:
runCommand in interface CmdSubSystem
Throws:
Exception

runThreadedApplication

public ISeriesDebugHoldJobInfo runThreadedApplication(String destinationName,
                                                      String programName,
                                                      String programParameters)
                                               throws com.ibm.etools.systems.core.messages.SystemMessageException
Start the program in a separate job that allows threads. This api is currently used by the iSeries debugger to start a user's program in a new (thread enabled) job and have the program hold until the debugger can attach to the job.

Throws:
com.ibm.etools.systems.core.messages.SystemMessageException

releaseThreadedApplication

public int releaseThreadedApplication(String qualifiedJobName,
                                      String messageQueue,
                                      String messageKey)
                               throws com.ibm.etools.systems.core.messages.SystemMessageException
Release the job that was started with the runThreadedApplication api. Although this method is really job specific (and should therefore likely be in the Job subsystem) it is kept here because of it's close relationship with runThreadedApplication.

Returns:
The return code from the releaseThreadedApplication api or -1 if there was a problem calling the api.
Throws:
com.ibm.etools.systems.core.messages.SystemMessageException

getDebugRouterListeningPortNumber

public int getDebugRouterListeningPortNumber()
                                      throws com.ibm.etools.systems.core.messages.SystemMessageException
Start the program in a separate job that allows threads. This api is currently used by the iSeries debugger to start a user's program in a new (thread enabled) job and have the program hold until the debugger can attach to the job.

Throws:
com.ibm.etools.systems.core.messages.SystemMessageException

getExecutedCommands

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

Specified by:
getExecutedCommands in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

getCandidateCommands

public com.ibm.etools.systems.subsystems.ICandidateCommand[] getCandidateCommands(Object obj)
Provides a list of candidate commands for the specified context. TODO - implement this for iseries commands. DKM

Specified by:
getCandidateCommands in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
Parameters:
obj - the context for the candidate commands
Returns:
a list of candidate commands

getCommandLog

public Vector getCommandLog()
Provide log of executed commands on subsystem.


getCommandLogAsString

public String getCommandLogAsString()
Provide log of executed commands on subsystem.


clearCommandLog

public void clearCommandLog()
Clear log of executed commands on subsystem.


updateCommandHistory

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


promptCommand

public String promptCommand(String command)
Prompt remote command Return prompted command

Specified by:
promptCommand in interface CmdSubSystem

promptCommand

public String promptCommand(String command,
                            boolean usePromptOverrideProgram)

promptCommand

public String promptCommand(String command,
                            boolean usePromptOverrideProgram,
                            boolean execute)
Prompt remote command, specifying if the prompt override program for the command should be used (pass true if the command will prompted and then immediately executed). PMR # 45563.122/45567.122 Return prompted command


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.

Throws:
InvocationTargetException
InterruptedException

internalRunCommand

public Object[] internalRunCommand(IProgressMonitor monitor,
                                   String cmd,
                                   Object context)
                            throws InvocationTargetException,
                                   InterruptedException
Actually run a remote command. This is called by the run(IProgressMonitor monitor) method, which in turn is called by runCommand(...).

Overrides:
internalRunCommand in class AS400SubSystemImpl
Throws:
InvocationTargetException
InterruptedException

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

logCommand

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

processBatchCommandResults

public void processBatchCommandResults(String cmd,
                                       Vector results)
processBatchCommandResults


runInitialLibraryList

public Object[] runInitialLibraryList(IProgressMonitor monitor)
                               throws InvocationTargetException,
                                      InterruptedException
Setup the initial library list for connection time

Throws:
InvocationTargetException
InterruptedException

setInitialCommand

public void setInitialCommand(String cmd)
Set the command that will be run at connect time. This is the initial command, as set by the Communications Properties Page. This method will save the subsystem to disk.

Specified by:
setInitialCommand in interface CmdSubSystem
Parameters:
cmd - The new value of the InitialCommand attribute

getInitialCommand

public String getInitialCommand()
Get the command that will be run at connect

Specified by:
getInitialCommand in interface CmdSubSystem
Returns:
The value of the InitialCommand attribute Initial command to call at connect time

getInitialSystemLibraryList

public SystemLibraryListEntry[] getInitialSystemLibraryList()
Get the initial library list as a string of SystemLibraryListEntry objects. Array returned may be size zero but will not be null.

Specified by:
getInitialSystemLibraryList in interface CmdSubSystem

setInitialSystemLibraryList

public void setInitialSystemLibraryList(String[] libraries,
                                        String[] positions)
Set the initial library list entries, all in one shot, using a pair of String arrays

Specified by:
setInitialSystemLibraryList in interface CmdSubSystem

addLibraryListEntry

public void addLibraryListEntry(String library,
                                String position)
Add library list entry

Specified by:
addLibraryListEntry in interface CmdSubSystem

removeLibraryListEntry

public void removeLibraryListEntry(SystemLibraryListEntry slle)
Remove library list entry given its SystemLibraryListEntry object

Specified by:
removeLibraryListEntry in interface CmdSubSystem

removeLibraryListEntry

public void removeLibraryListEntry(String library)
Remove library list entry given only its library name

Specified by:
removeLibraryListEntry in interface CmdSubSystem

getSystemLibraryListEntry

public SystemLibraryListEntry getSystemLibraryListEntry(String library)
Given a library name, find its SystemLibraryListEntry object

Specified by:
getSystemLibraryListEntry in interface CmdSubSystem

getInteractiveJobName

public String getInteractiveJobName()
Get the job name of the associated interactive job.

Returns:
The job name for the associated interactive job or null if no interactive job is associated.

runInteractiveCommand

public Object[] runInteractiveCommand(String command)
Run an interactive iSeries QSYS command (vs QSHELL). This requires there to be an interactive job started via the STRRSESERVER iSeries command.

Specified by:
runInteractiveCommand in interface CmdSubSystem
Parameters:
command - The command to be run in the interactive job.
Returns:
An array of SystemMessageObject instances, each representing a message from the command.
See Also:
isInteractiveJobAvailable()

runInteractiveCommand

public Object[] runInteractiveCommand(String command,
                                      boolean queueCommand)
Run an interactive iSeries QSYS command (vs QSHELL). This requires there to be an interactive job started via the STRRSESERVER iSeries command.

Parameters:
command - The command to be run in the interactive job.
queueCommand - Add the command to the queue if the interactive job is currently busy.
Returns:
An array of SystemMessageObject instances, each representing a message from the command.
See Also:
isInteractiveJobAvailable()

attachInteractiveJob

public int attachInteractiveJob(String jobName,
                                String queueName)
Attach to an iSeries interactive job. This requires there to be an interactive job started via the STRRSESERVER iSeries command.

Specified by:
attachInteractiveJob in interface CmdSubSystem
See Also:
isInteractiveJobAvailable()

releaseInteractiveJob

public boolean releaseInteractiveJob()
Method from interface IISeriesSubSystemCommandExecutionProperties.

Releases the interactive job. If no interactive job is available, no harm done.

Specified by:
releaseInteractiveJob in interface CmdSubSystem

isInteractiveJobAvailable

public boolean isInteractiveJobAvailable()
Method from interface IISeriesSubSystemCommandExecutionProperties.

Returns true if the user has started this communication session via the STRRSESERVER iSeries command, enabling use of interactive commands.

Specified by:
isInteractiveJobAvailable in interface CmdSubSystem

isInteractiveJobBusy

public boolean isInteractiveJobBusy()
Check if the interactive job is currently busy processing a command.


isInteractiveCommand

public static boolean isInteractiveCommand(String commandString)
Analyzes a given command to see if it appears to be interactive or not. Tests for obvious interactive command name patterns, such as starts with "STR", "WRK" or "CHG", or starts with "DSP" and there is no OUTFILE parameter.


getCmdSubSystem

public CmdSubSystem getCmdSubSystem()
Return the Command Subsystem for executing remote QSYS Commands

Specified by:
getCmdSubSystem in interface IISeriesSubSystem
Overrides:
getCmdSubSystem in class AS400SubSystemImpl
See Also:
IISeriesSubSystem.getCmdSubSystem()

communicationsStateChange

public void communicationsStateChange(com.ibm.etools.systems.subsystems.CommunicationsEvent e)
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 com.ibm.etools.systems.subsystems.ICommunicationsListener

isPassiveCommunicationsListener

public boolean isPassiveCommunicationsListener()
Specified by:
isPassiveCommunicationsListener in interface com.ibm.etools.systems.subsystems.ICommunicationsListener
See Also:
ICommunicationsListener

getDefaultShell

public com.ibm.etools.systems.subsystems.IRemoteCommandShell getDefaultShell(Shell shell)
                                                                      throws Exception
Specified by:
getDefaultShell in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem
Throws:
Exception

getShells

public com.ibm.etools.systems.subsystems.IRemoteCommandShell[] getShells()
Specified by:
getShells in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

getPropertyPage

public PropertyPage getPropertyPage(Composite parent)
Return our property page to contribute to the connection's property page, for the SubSystems node.

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

getParentRemoteCmdSubSystemFactory

public com.ibm.etools.systems.subsystems.RemoteCmdSubSystemFactory getParentRemoteCmdSubSystemFactory()
Return parent subsystem factory, cast to a RemoteCmdSubSystemFactory for convenience.

Specified by:
getParentRemoteCmdSubSystemFactory in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

getCurlib

public String getCurlib()
Specified by:
getCurlib in interface CmdSubSystem
Returns:
The value of the Curlib attribute

setCurlib

public void setCurlib(String newCurlib)
Specified by:
setCurlib in interface CmdSubSystem
Parameters:
newCurlib - The new value of the Curlib attribute

getCODEAlias

public String getCODEAlias()
Specified by:
getCODEAlias in interface CmdSubSystem
Returns:
The value of the CODEAlias attribute

setCODEAlias

public void setCODEAlias(String newCODEAlias)
Specified by:
setCODEAlias in interface CmdSubSystem
Parameters:
newCODEAlias - The new value of the CODEAlias attribute

getSBMJobParms

public String getSBMJobParms()
Specified by:
getSBMJobParms in interface CmdSubSystem
Returns:
The value of the SBMJobParms attribute This is now deprecated. Use SBMJOBParms attribute in FileSubSystem.

setSBMJobParms

public void setSBMJobParms(String newSBMJobParms)
Specified by:
setSBMJobParms in interface CmdSubSystem
Parameters:
newSBMJobParms - The new value of the SBMJobParms attribute

unsetSBMJobParms

public void unsetSBMJobParms()

Specified by:
unsetSBMJobParms in interface CmdSubSystem
See Also:
CmdSubSystem.isSetSBMJobParms(), CmdSubSystem.getSBMJobParms(), CmdSubSystem.setSBMJobParms(String)

isSetSBMJobParms

public boolean isSetSBMJobParms()

Specified by:
isSetSBMJobParms in interface CmdSubSystem
Returns:
whether the value of the 'SBM Job Parms' attribute is set.
See Also:
CmdSubSystem.unsetSBMJobParms(), CmdSubSystem.getSBMJobParms(), CmdSubSystem.setSBMJobParms(String)

getExtraAttributes

public String getExtraAttributes()
Specified by:
getExtraAttributes in interface CmdSubSystem
Returns:
The value of the ExtraAttributes attribute

setExtraAttributes

public void setExtraAttributes(String newExtraAttributes)
Specified by:
setExtraAttributes in interface CmdSubSystem
Parameters:
newExtraAttributes - The new value of the ExtraAttributes attribute

getInitialLibraryList

public org.eclipse.emf.common.util.EList getInitialLibraryList()
Specified by:
getInitialLibraryList in interface CmdSubSystem
Returns:
The list of InitialLibraryList references

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
Description copied from class: AS400SubSystemImpl

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

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 Object newValue)
Description copied from class: AS400SubSystemImpl

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

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
Description copied from class: AS400SubSystemImpl

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

toString

public String toString()

getInitialCommandGen

public String getInitialCommandGen()

setInitialCommandGen

public void setInitialCommandGen(String newInitialCommand)

isRunServerRemotely

public boolean isRunServerRemotely()
Specified by:
isRunServerRemotely in interface CmdSubSystem
Returns:
The value of the RunServerRemotely attribute Set to true to run the server on the remote iSeries system, versus locally

setRunServerRemotely

public void setRunServerRemotely(boolean newRunServerRemotely)
Specified by:
setRunServerRemotely in interface CmdSubSystem
Parameters:
newRunServerRemotely - The new value of the RunServerRemotely attribute

getASPGroup

public String getASPGroup()
Specified by:
getASPGroup in interface CmdSubSystem
Returns:
The value of the ASPGroup attribute For IASP support. The name of the ASP group

setASPGroup

public void setASPGroup(String newASPGroup)
Specified by:
setASPGroup in interface CmdSubSystem
Parameters:
newASPGroup - The new value of the ASPGroup attribute

getEnvVars

public org.eclipse.emf.common.util.EList getEnvVars()
Specified by:
getEnvVars in interface CmdSubSystem
Returns:
The list of EnvVars references

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
Overrides:
eInverseAdd in class AS400SubSystemImpl

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
Overrides:
eInverseRemove in class AS400SubSystemImpl

eGet

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

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

setEventFileCommandDetector

public void setEventFileCommandDetector(ISeriesEventFileCommandDetector evfDetector)
Business partners can call this method to specify their own algorithm to use to decide if a given OS/400 command generates an event file or not.

Specified by:
setEventFileCommandDetector in interface CmdSubSystem
Parameters:
evfDetector - the events file detector.
See Also:
CmdSubSystem.setEventFileCommandDetector(com.ibm.etools.systems.as400cmdsubsys.ISeriesEventFileCommandDetector)

useDefaultEventFileDetector

public void useDefaultEventFileDetector()
Use the default IBM-supplied algorithm for determining if a given OS/400 command generates an event file or not. Uses ISeriesEventFileCommandDetector.getDefaultEventFileDetector()

Specified by:
useDefaultEventFileDetector in interface CmdSubSystem
See Also:
CmdSubSystem.useDefaultEventFileDetector()

isShowEventsFile

public boolean isShowEventsFile()
Returns whether events file should be shown when a command that generates an events file is run.

Returns:
true if the events file should be shown, false otherwise.

setShowEventsFile

public void setShowEventsFile(boolean showEventsFile)
Sets whether events file should be shown when a command that generates an events file is run.

Parameters:
showEventsFile - true if the events file should be shown, false otherwise.

getUserProfileCurLib

public String getUserProfileCurLib()
Get the current library specified in the user profile

Returns:
current library name, null if not connected

restoreShellState

public com.ibm.etools.systems.subsystems.IRemoteCommandShell[] restoreShellState(Shell arg0)
Specified by:
restoreShellState in interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem

runInitialCurrentDirectoy

public void runInitialCurrentDirectoy(IProgressMonitor monitor)
                               throws InvocationTargetException,
                                      InterruptedException
Used to set the initial current directory when signing on.

Throws:
InvocationTargetException
InterruptedException
Since:
6.0 @V1A

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.