|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SubSystem com.ibm.etools.iseries.subsystems.qsys.QSYSAbstractSubSystem com.ibm.etools.iseries.subsystems.qsys.commands.QSYSCommandSubSystem
public class QSYSCommandSubSystem
Field Summary | |
---|---|
boolean |
eventFileTrace
|
static String[] |
INTERACTIVE_CMD_PREFIXES
|
static int |
RUN_IN_BATCH
|
static String |
RUN_IN_BATCH_CMD_PREFIX
|
static int |
RUN_IN_INTERACTIVE
|
static String |
RUN_IN_INTERACTIVE_CMD_PREFIX
|
static int |
RUN_IN_RSESERVER
|
static String |
RUN_IN_RSESERVER_CMD_PREFIX
|
static int |
RUN_IN_RSESERVERMULTITHREADED
|
static String |
RUN_IN_RSESERVERMULTITHREADED_CMD_PREFIX
|
static String |
SBM_JOB_PARMS_EDEFAULT
|
Fields inherited from class com.ibm.etools.iseries.subsystems.qsys.QSYSAbstractSubSystem |
---|
copyright |
Fields inherited from interface com.ibm.etools.iseries.subsystems.qsys.commands.IQSYSCommandSubSystem |
---|
copyright |
Fields inherited from interface com.ibm.etools.iseries.subsystems.qsys.objects.IQSYSSubSystemCommandExecutionProperties |
---|
Copyright |
Constructor Summary | |
---|---|
QSYSCommandSubSystem(IHost host,
IConnectorService connectorService)
|
Method Summary | |
---|---|
int |
attachInteractiveJob(String jobName,
String queueName)
Attach to an iSeries interactive job. |
void |
clearCommandLog()
Clear log of executed commands on subsystem. |
void |
communicationsStateChange(CommunicationsEvent commEvent)
|
protected void |
fireEvent(ISystemResourceChangeEvent event)
|
ISubSystem |
getCmdSubSystem()
Return the command subsystem ("iSeries Commands") for executing remote QSYS commands |
String |
getCommandLogAsString()
Provide log of executed commands on subsystem. |
boolean |
getCompileInBatch()
Command Execution property (like PDM's F18). |
int |
getDebugRouterListeningPortNumber()
Start the program in a separate job that allows threads. |
IRemoteSystemEnvVar |
getEnvironmentVariable(String name)
Given an environment variable name, find its RemoteSystemEnvVar object. |
IRemoteSystemEnvVar[] |
getEnvironmentVariableList()
Get the initial environment variable list as a string of RemoteSystemEnvVar objects. |
String |
getEnvironmentVariableValue(String name)
Given an environment variable name, find its RemoteSystemEnvVar object. |
IPropertySet |
getEnvVars()
|
String[] |
getEnvVarsAsStringArray()
|
String[] |
getExecutedCommands()
Provide list of executed commands on subsystem. |
String |
getInitialCommand()
Get the command that will be run at connect |
String |
getInitialCurlib()
Get the initial current library property |
IInitialLibraryListEntry[] |
getInitialSystemLibraryList()
|
String |
getInteractiveJobName()
Get the job name of the associated interactive job. |
String |
getInternalJobDescription()
|
String |
getInternalObjectLibrary()
|
String |
getInternalSBMJOBParms()
|
String |
getInvalidEnvironmentVariableNameCharacters()
Default implementation of getInvalidEnvironmentVariableNameCharacters. |
String |
getJobDescription()
Command Execution property (like PDM's F18). |
SystemRemoteCommand |
getLastCommand()
|
String |
getObjectLibrary()
Command Execution property (like PDM's F18). |
ISubSystem |
getObjectSubSystem()
Return the objects subsystem ("iSeries Objects") for accessing remote QSYS libs, objs, mbrs, etc. |
String |
getOldCODEAlias()
Get the old CODE Alias property |
IQSYSObjectSubSystem |
getQSYSObjectSubSystem()
Return QSYSObjectSubsystem. |
boolean |
getReplaceObject()
Command Execution property (like PDM's F18). |
boolean |
getRunInBatch()
Command Execution property (like PDM's F18). |
String |
getSBMJOBParms()
Command Execution property (like PDM's F18). |
String |
getUserPreferencesIFSDirectory()
getUserPreferencesIFSDirectory() - returns directory on IFS where to store user settings |
void |
initializeSubSystem(IProgressMonitor monitor)
|
protected Object[] |
internalResolveFilterString(String filterString,
IProgressMonitor monitor)
Actually resolve an absolute filter string. |
Object[] |
internalRunCommand(String cmd,
Object context,
boolean interpretOutput,
IProgressMonitor monitor)
Actually run a remote command. |
Object[] |
internalRunCommand(String cmd,
Object context,
IProgressMonitor monitor)
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 com.ibm.etools.iseries.core.IISeriesSubSystemCommandExecutionProperties . |
boolean |
isInteractiveJobBusy()
Check if the interactive job is currently busy processing a command. |
boolean |
isInternalCompileInBatch()
|
boolean |
isInternalReplaceObject()
|
boolean |
isInternalRunInBatch()
|
boolean |
isPassiveCommunicationsListener()
|
boolean |
isSetInternalCompileInBatch()
|
boolean |
isSetInternalJobDescription()
|
boolean |
isSetInternalObjectLibrary()
|
boolean |
isSetInternalReplaceObject()
|
boolean |
isSetInternalRunInBatch()
|
boolean |
isSetInternalSBMJOBParms()
|
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,
IQSYSBatchCommandMonitor commandMonitor,
boolean isBatch)
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(boolean writeToDataQ)
Method from interface com.ibm.etools.iseries.core.IISeriesSubSystemCommandExecutionProperties . |
int |
releaseThreadedApplication(String qualifiedJobName,
String messageQueue,
String messageKey)
Release the job that was started with the runThreadedApplication api. |
void |
removeCheckBatchCommandThreads()
|
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,
Object context,
boolean interpretOutput,
IProgressMonitor monitor)
overridden so that for universal we don't need to do in modal thread |
Object[] |
runCommand(String command,
Object context,
IProgressMonitor monitor)
Execute a remote command. |
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). |
com.ibm.etools.iseries.services.qsys.internal.QSYSDebugHoldJobInfo |
runThreadedApplication(String destinationName,
String programName,
String programParameters)
Start the program in a separate job that allows threads. |
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 |
setInitialCommand(String cmd)
Set the command that will be run at connect time. |
void |
setInitialSystemLibraryList(String[] libraries,
String[] positions)
Set the initial library list entries, all in one shot, using a pair of String arrays |
void |
setInternalCompileInBatch(boolean newInternalCompileInBatch)
|
void |
setInternalJobDescription(String newInternalJobDescription)
|
void |
setInternalObjectLibrary(String newInternalObjectLibrary)
|
void |
setInternalReplaceObject(boolean newInternalReplaceObject)
|
void |
setInternalRunInBatch(boolean newInternalRunInBatch)
Setter for internalRunInBatch flag. |
void |
setInternalSBMJOBParms(String newInternalSBMJOBParms)
|
void |
setOldCODEAlias(String alias)
Get the old CODE Alias property |
void |
setShowEventsFile(boolean showEventsFile)
Sets whether events file should be shown when a command that generates an events file is run. |
void |
uninitializeSubSystem(IProgressMonitor monitor)
Uninitialize this subsystem just after disconnect. |
void |
unsetInternalCompileInBatch()
|
void |
unsetInternalJobDescription()
|
void |
unsetInternalObjectLibrary()
|
void |
unsetInternalReplaceObject()
|
void |
unsetInternalRunInBatch()
|
void |
unsetInternalSBMJOBParms()
|
Methods inherited from class com.ibm.etools.iseries.subsystems.qsys.QSYSAbstractSubSystem |
---|
checkIsConnected, checkIsConnected, checkIsConnected, processListRetrieveError, verifyConnected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RUN_IN_BATCH
public static final int RUN_IN_INTERACTIVE
public static final int RUN_IN_RSESERVER
public static final int RUN_IN_RSESERVERMULTITHREADED
public static final String RUN_IN_BATCH_CMD_PREFIX
public static final String RUN_IN_INTERACTIVE_CMD_PREFIX
public static final String RUN_IN_RSESERVER_CMD_PREFIX
public static final String RUN_IN_RSESERVERMULTITHREADED_CMD_PREFIX
public static final String SBM_JOB_PARMS_EDEFAULT
public boolean eventFileTrace
public static final String[] INTERACTIVE_CMD_PREFIXES
Constructor Detail |
---|
public QSYSCommandSubSystem(IHost host, IConnectorService connectorService)
Method Detail |
---|
public static boolean isInteractiveCommand(String commandString)
protected Object[] internalResolveFilterString(String filterString, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
org.eclipse.rse.core.subsystems.SubSystem#internalResolveFilterString(String,IProgressMonitor)
public Object[] internalRunCommand(String cmd, Object context, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
public Object[] internalRunCommand(String cmd, Object context, boolean interpretOutput, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
public String getCommandLogAsString()
public SystemRemoteCommand getLastCommand()
public void clearCommandLog()
public String promptCommand(String command)
public String promptCommand(String command, boolean usePromptOverrideProgram)
public String promptCommand(String command, boolean usePromptOverrideProgram, boolean execute)
protected void fireEvent(ISystemResourceChangeEvent event)
protected void logCommand(String cmd, Object[] msgs)
public Object[] runInteractiveCommand(String command)
command
- The command to be run in the interactive job.
isInteractiveJobAvailable()
public Object[] runInteractiveCommand(String command, boolean queueCommand)
command
- The command to be run in the interactive job.queueCommand
- Add the command to the queue if the interactive job is currently busy.
isInteractiveJobAvailable()
public Object[] runCommand(String command, Object context, boolean interpretOutput, IProgressMonitor monitor) throws Exception
Exception
public Object[] runCommand(String command, Object context, IProgressMonitor monitor) throws Exception
command
- Command to be executed remotely.context
- context of a command (i.e. working directory). null
is
valid and means to use the default context.
Exception
public Object[] runCommand(String command, int jobEnv) throws Exception
command
- - iSeries CL command string to runjobEnv
- - one of IISeriesConstants.RUN_IN_BATCH, RUN_IN_INTERACTIVE, RUN_IN_RSESERVER, RUN_IN_RSESERVERMULTITHREADED
Exception
public Object[] runCommand(String command) throws Exception
Exception
public IQSYSObjectSubSystem getQSYSObjectSubSystem()
getQSYSObjectSubSystem
in interface IQSYSCommandSubSystem
public void processBatchCommandResults(String cmd, IQSYSBatchCommandMonitor commandMonitor, boolean isBatch)
public ISubSystem getCmdSubSystem()
IISeriesSubSystem
getCmdSubSystem
in interface IISeriesSubSystem
getCmdSubSystem
in class QSYSAbstractSubSystem
public ISubSystem getObjectSubSystem()
IISeriesSubSystem
getObjectSubSystem
in interface IISeriesSubSystem
getObjectSubSystem
in class QSYSAbstractSubSystem
public String[] getExecutedCommands()
public void uninitializeSubSystem(IProgressMonitor monitor)
monitor
- a progress monitor that can be used to show progress
during long-running operation. Cancellation is typically not
supported since it might leave the system in an inconsistent
state.public String getJobDescription()
getJobDescription
in interface IQSYSSubSystemCommandExecutionProperties
public void unsetInternalJobDescription()
public boolean isSetInternalJobDescription()
public void setInternalJobDescription(String newInternalJobDescription)
public String getInternalJobDescription()
public String getSBMJOBParms()
getSBMJOBParms
in interface IQSYSSubSystemCommandExecutionProperties
public boolean isSetInternalRunInBatch()
public boolean getRunInBatch()
getRunInBatch
in interface IQSYSSubSystemCommandExecutionProperties
public boolean isInternalRunInBatch()
public boolean getCompileInBatch()
getCompileInBatch
in interface IQSYSSubSystemCommandExecutionProperties
public boolean isInternalCompileInBatch()
public void unsetInternalCompileInBatch()
public boolean isSetInternalCompileInBatch()
public boolean getReplaceObject()
getReplaceObject
in interface IQSYSSubSystemCommandExecutionProperties
public boolean isInternalReplaceObject()
public void setInternalReplaceObject(boolean newInternalReplaceObject)
public void unsetInternalReplaceObject()
public boolean isSetInternalReplaceObject()
public String getObjectLibrary()
getObjectLibrary
in interface IQSYSSubSystemCommandExecutionProperties
public String getInternalObjectLibrary()
public void setInternalObjectLibrary(String newInternalObjectLibrary)
public void unsetInternalObjectLibrary()
public boolean isSetInternalObjectLibrary()
public String getInternalSBMJOBParms()
public void setInternalSBMJOBParms(String newInternalSBMJOBParms)
public void unsetInternalSBMJOBParms()
public boolean isSetInternalSBMJOBParms()
public void setInternalRunInBatch(boolean newInternalRunInBatch)
public void unsetInternalRunInBatch()
public void setInternalCompileInBatch(boolean newInternalCompileInBatch)
public String getInvalidEnvironmentVariableNameCharacters()
com.ibm.etools.systems.subsystems.RemoteCmdSubSystem#getInvalidEnvironmentVariableNameCharacters()
public IRemoteSystemEnvVar[] getEnvironmentVariableList()
public IRemoteSystemEnvVar getEnvironmentVariable(String name)
public String getEnvironmentVariableValue(String name)
public String[] getEnvVarsAsStringArray()
public IPropertySet getEnvVars()
public void setEnvironmentVariableList(String[] envVarNames, String[] envVarValues)
public boolean isInteractiveJobBusy()
public boolean isInteractiveJobAvailable()
com.ibm.etools.iseries.core.IISeriesSubSystemCommandExecutionProperties
.
Returns true if the user has started this communication session via the STRRSESERVER iSeries command, enabling use of interactive commands.
public boolean releaseInteractiveJob(boolean writeToDataQ)
com.ibm.etools.iseries.core.IISeriesSubSystemCommandExecutionProperties
.
Releases the interactive job. If no interactive job is available, no harm done.
public int attachInteractiveJob(String jobName, String queueName)
isInteractiveJobAvailable()
public String getInitialCommand()
public String getInitialCurlib()
public IInitialLibraryListEntry[] getInitialSystemLibraryList()
public void setCurlib(String newCurlib)
public void setInitialCommand(String cmd)
public void setInitialSystemLibraryList(String[] libraries, String[] positions)
public Object[] runInitialLibraryList(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
public void initializeSubSystem(IProgressMonitor monitor)
public void runInitialCurrentDirectoy(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
public String getOldCODEAlias()
public void setOldCODEAlias(String alias)
public void communicationsStateChange(CommunicationsEvent commEvent)
com.ibm.etools.systems.subsystems.ICommunicationsListener#communicationsStateChange(CommunicationsEvent)
public boolean isPassiveCommunicationsListener()
com.ibm.etools.systems.subsystems.ICommunicationsListener#isPassiveCommunicationsListener()
public boolean isShowEventsFile()
true
if the events file should be shown, false
otherwise.public void setShowEventsFile(boolean showEventsFile)
showEventsFile
- true
if the events file should be shown, false
otherwise.public int getDebugRouterListeningPortNumber() throws SystemMessageException
SystemMessageException
public String getInteractiveJobName()
public com.ibm.etools.iseries.services.qsys.internal.QSYSDebugHoldJobInfo runThreadedApplication(String destinationName, String programName, String programParameters) throws SystemMessageException
SystemMessageException
public int releaseThreadedApplication(String qualifiedJobName, String messageQueue, String messageKey) throws SystemMessageException
SystemMessageException
public void removeCheckBatchCommandThreads()
public String getUserPreferencesIFSDirectory()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |