|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteCmdSubSystem
interface RemoteCmdSubSystem extends SubSystem {}
Field Summary |
---|
Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
---|
NO_CHILDREN |
Method Summary | |
---|---|
void |
addEnvironmentVariable(IRemoteSystemEnvVar rsev)
Add environment variable entry, given a RemoteSystemEnvVar object |
void |
addEnvironmentVariable(java.lang.String name,
java.lang.String value)
Add environment variable entry, given a name and value |
void |
cancelShell(java.lang.Object commandObject,
IProgressMonitor monitor)
Cancel a shell or running command. |
boolean |
canRunCommand()
Determine whether the command subsystem can run a command |
boolean |
canRunShell()
Determine whether the command subsystem can run a shell |
ICandidateCommand[] |
getCandidateCommands(java.lang.Object context)
Provide a list of possible commands for the specified context. |
IRemoteCommandShell |
getDefaultShell()
Get the default running command shell for this command subsystem. |
IRemoteSystemEnvVar |
getEnvironmentVariable(java.lang.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. |
java.lang.String |
getEnvironmentVariableValue(java.lang.String name)
Given an environment variable name, find its value. |
java.lang.String[] |
getExecutedCommands()
Provide list of executed commands on subsystem.This is only applicable if the subsystem factory reports true for supportsCommands(). |
java.util.List |
getHostEnvironmentVariables()
|
java.lang.String |
getInvalidEnvironmentVariableNameCharacters()
Get the invalid characters for an environment variable name. |
IRemoteCmdSubSystemConfiguration |
getParentRemoteCmdSubSystemConfiguration()
Return parent subsystem factory, cast to a RemoteCmdSubSystemConfiguration |
IRemoteCommandShell[] |
getShells()
Get all command shells and transient commands that have been run or are running for this command subsystem. |
void |
removeEnvironmentVariable(IRemoteSystemEnvVar rsev)
Remove environment variable entry given its RemoteSystemEnvVar object |
void |
removeEnvironmentVariable(java.lang.String name)
Remove environment variable entry given only its environment variable name |
void |
removeShell(java.lang.Object commandObject)
Remove a shell. |
IRemoteCommandShell[] |
restoreShellState(Shell shell)
Restore all the command shells that were open before disconnecting during the previous session |
java.lang.Object[] |
runCommand(java.lang.String command,
java.lang.Object context,
boolean interpretOutput,
IProgressMonitor monitor)
Execute a remote command. |
java.lang.Object[] |
runCommand(java.lang.String command,
java.lang.Object context,
IProgressMonitor monitor)
Execute a remote command. |
IRemoteCommandShell |
runShell(java.lang.Object context,
IProgressMonitor monitor)
Launch a new command shell. |
void |
sendCommandToShell(java.lang.String input,
java.lang.Object commandObject,
IProgressMonitor monitor)
Send a command as input to a running command shell. |
void |
setEnvironmentVariableList(java.lang.String[] envVarNames,
java.lang.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. |
Methods inherited from interface org.eclipse.rse.core.subsystems.IRemoteObjectResolver |
---|
getObjectWithAbsoluteName, getObjectWithAbsoluteName |
Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
---|
contains, isConflicting |
Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject |
---|
getDescription |
Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
Methods inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
---|
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
Method Detail |
---|
IRemoteCmdSubSystemConfiguration getParentRemoteCmdSubSystemConfiguration()
java.lang.Object[] runCommand(java.lang.String command, java.lang.Object context, IProgressMonitor monitor) throws java.lang.Exception
command
- Command to be executed remotely.context
- context of a command (i.e. working directory). Null is valid and means to run the
command as a shell command in the default shell.monitor
- the progress monitor
java.lang.Exception
java.lang.Object[] runCommand(java.lang.String command, java.lang.Object context, boolean interpretOutput, IProgressMonitor monitor) throws java.lang.Exception
command
- Command to be executed remotely.context
- context of a command (i.e. working directory). Null is valid and means to run the
command as a shell command in the default shell.interpretOutput
- whether to interpret the output or notmonitor
- the progress monitor
java.lang.Exception
IRemoteCommandShell runShell(java.lang.Object context, IProgressMonitor monitor) throws java.lang.Exception
context
- context of a shell (i.e. working directory). Null is valid and means to use the default context.monitor
- the progress monitor
java.lang.Exception
void sendCommandToShell(java.lang.String input, java.lang.Object commandObject, IProgressMonitor monitor) throws java.lang.Exception
input
- the command to invoke in the shell.commandObject
- the shell or command to send the invocation to.monitor
- the progress monitor
java.lang.Exception
void cancelShell(java.lang.Object commandObject, IProgressMonitor monitor) throws java.lang.Exception
commandObject
- the shell or command to cancelmonitor
- the progress monitor
java.lang.Exception
void removeShell(java.lang.Object commandObject) throws java.lang.Exception
commandObject
- the shell or command to cancel & remove.
java.lang.Exception
IRemoteCommandShell getDefaultShell() throws java.lang.Exception
java.lang.Exception
IRemoteCommandShell[] getShells()
IRemoteCommandShell[] restoreShellState(Shell shell)
shell
- a window used for notification
boolean canRunShell()
boolean canRunCommand()
java.lang.String[] getExecutedCommands()
ICandidateCommand[] getCandidateCommands(java.lang.Object context)
context
- the context for the possible commands
IRemoteSystemEnvVar[] getEnvironmentVariableList()
void setEnvironmentVariableList(java.lang.String[] envVarNames, java.lang.String[] envVarValues)
void addEnvironmentVariable(java.lang.String name, java.lang.String value)
void addEnvironmentVariable(IRemoteSystemEnvVar rsev)
void removeEnvironmentVariable(IRemoteSystemEnvVar rsev)
void removeEnvironmentVariable(java.lang.String name)
IRemoteSystemEnvVar getEnvironmentVariable(java.lang.String name)
java.lang.String getEnvironmentVariableValue(java.lang.String name)
java.lang.String getInvalidEnvironmentVariableNameCharacters()
java.util.List getHostEnvironmentVariables()
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |