|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.subsystems.impl.SubSystemImpl
com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl
com.ibm.etools.systems.universalcmdsubsys.impl.UniversalCmdSubSystemImpl
Nested Class Summary |
---|
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl |
---|
RemoteCmdSubSystemImpl.RefreshSubSystem |
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl |
---|
SubSystemImpl.ConnectRunnable, SubSystemImpl.DisplayErrorMessageRunnable |
Field Summary | |
---|---|
protected List |
_paths
|
protected DataElement |
_runCmdDescriptor
|
protected DataElement |
_runShellDescriptor
|
protected DataElement |
_sendInputDescriptor
|
protected DataElement |
_setEnvironmentDescriptor
|
protected ArrayList |
_unsupportedCommandList
|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.subsystems.impl.RemoteCmdSubSystemImpl |
---|
_cmdShells, _defaultShell, _envVars, _fileSubSystem, COMMAND_SHELLS_MEMENTO, envVars |
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.universal.IUniversalSubSystem |
---|
Copyright |
Constructor Summary | |
---|---|
UniversalCmdSubSystemImpl()
Default 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(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
Object[] |
getChildren()
Return the children for this subsystem. |
protected DataStore |
getDataStore()
|
IRemoteCommandShell |
getDefaultShell(Shell shell)
Get the default running command shell for this command subsystem. |
String[] |
getExecutedCommands()
Provide list of executed commands on subsystem. |
List |
getHostEnvironmentVariables()
Override this to return a list of environment variables for the host system |
List |
getPathEnvironment()
Override this to provide an appropriate path list for the command subsystem. |
ServerLauncher |
getRemoteServerLauncher()
Override of parent method so we can delegate this to the file subsystem. |
protected DataElement |
getRunCommandDescriptor(DataElement remoteObject)
|
protected String |
getRunCommandId()
|
protected DataElement |
getRunShellDescriptor(DataElement remoteObject)
|
protected String |
getRunShellId()
|
protected DataElement |
getSendInputDescriptor(DataElement remoteObject)
|
protected DataElement |
getSetEnvironmentDescriptor(DataElement remoteObject)
|
protected String |
getSetEnvironmentId()
|
IRemoteCommandShell[] |
getShells()
Get all command shells and transient commands that have been run or are running for this command subsystem. |
AbstractSystemManager |
getSystemManager()
Return a singleton instance of an AbstractSystemManager subclass that manages a pool of ISystem objects, one per system connection. |
protected ArrayList |
getUnsupportedCommandList()
Get the list of unsupported commands |
protected String |
getUserHome()
|
protected void |
internalCancelShell(IProgressMonitor monitor,
Object command)
|
protected void |
internalDisconnect(IProgressMonitor monitor,
String hostName,
int port)
Actually disconnect from the remote host. |
protected Object[] |
internalRunCommand(IProgressMonitor monitor,
String command,
Object context)
Actually run a remote command. |
protected IRemoteCommandShell |
internalRunShell(IProgressMonitor monitor,
Object context)
|
protected void |
internalSendCommandToShell(IProgressMonitor monitor,
String stdIn,
Object context)
|
protected void |
logCommand(String cmd,
String[] msgs)
|
boolean |
runRemoteCommand(IRemoteFile sourceDir,
String command)
Run a command using the default shell |
protected IRemoteCommandShell |
sendCommandToMiner(IProgressMonitor monitor,
DataElement contextDir,
String command)
|
void |
sendCommandToShell(String input,
Shell shell,
Object commandObject)
overridden so that for universal we don't need to do in modal thread |
protected IRemoteCommandShell |
sendShellToMiner(DataElement contextDir)
|
void |
setRemoteEnvironment(DataElement theObject)
Set the environment variables for this connection. |
protected boolean |
supportsCommand(String theCommand)
Determine whether a specified command is supported |
protected void |
updateCommandHistory(String executedCmd)
Maintain list of executed commands - list is in order of most recent to least recent - no duplicates |
protected boolean |
validateCommand(String command)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.subsystems.RemoteCmdSubSystem |
---|
addEnvironmentVariable, addEnvironmentVariable, cancelShell, getCandidateCommands, getEnvironmentVariable, getEnvironmentVariableList, getEnvironmentVariableValue, getEnvVars, getInvalidEnvironmentVariableNameCharacters, getParentRemoteCmdSubSystemFactory, removeEnvironmentVariable, removeEnvironmentVariable, removeShell, restoreShellState, runCommand, runShell, setEnvironmentVariableList |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver |
---|
getObjectWithAbsoluteName |
Field Detail |
public static final String copyright
protected List _paths
protected DataElement _runCmdDescriptor
protected DataElement _runShellDescriptor
protected DataElement _setEnvironmentDescriptor
protected DataElement _sendInputDescriptor
protected ArrayList _unsupportedCommandList
Constructor Detail |
public UniversalCmdSubSystemImpl()
SubSystemImpl.setParentSubSystemFactory(SubSystemFactory)
.
Method Detail |
protected EClass eStaticClass()
eStaticClass
in class RemoteCmdSubSystemImpl
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseAdd
in class RemoteCmdSubSystemImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseRemove
in class RemoteCmdSubSystemImpl
public Object eGet(EStructuralFeature eFeature, boolean resolve)
eGet
in class RemoteCmdSubSystemImpl
public void eSet(EStructuralFeature eFeature, Object newValue)
eSet
in class RemoteCmdSubSystemImpl
public void eUnset(EStructuralFeature eFeature)
eUnset
in class RemoteCmdSubSystemImpl
public boolean eIsSet(EStructuralFeature eFeature)
eIsSet
in class RemoteCmdSubSystemImpl
public AbstractSystemManager getSystemManager()
getSystemManager
in interface SubSystem
getSystemManager
in class SubSystemImpl
protected DataStore getDataStore()
public Object[] getChildren()
SubSystem
By default, if the parent subsystem factory supports filters, then we return getSystemFilterPoolReferencesArray. If filters are not supported (supportsFilters() returns false from factory) then we return null. In this case you should override this.
getChildren
in interface SubSystem
getChildren
in class RemoteCmdSubSystemImpl
public IRemoteCommandShell getDefaultShell(Shell shell) throws Exception
RemoteCmdSubSystem
getDefaultShell
in interface RemoteCmdSubSystem
getDefaultShell
in class RemoteCmdSubSystemImpl
Exception
public IRemoteCommandShell[] getShells()
RemoteCmdSubSystem
getShells
in interface RemoteCmdSubSystem
getShells
in class RemoteCmdSubSystemImpl
protected String getRunShellId()
protected String getRunCommandId()
protected String getSetEnvironmentId()
public List getHostEnvironmentVariables()
RemoteCmdSubSystemImpl
getHostEnvironmentVariables
in class RemoteCmdSubSystemImpl
public List getPathEnvironment()
RemoteCmdSubSystemImpl
getPathEnvironment
in class RemoteCmdSubSystemImpl
public ServerLauncher getRemoteServerLauncher()
getRemoteServerLauncher
in interface SubSystem
getRemoteServerLauncher
in class SubSystemImpl
public boolean canRunShell()
canRunShell
in interface RemoteCmdSubSystem
canRunShell
in class RemoteCmdSubSystemImpl
public boolean canRunCommand()
canRunCommand
in interface RemoteCmdSubSystem
canRunCommand
in class RemoteCmdSubSystemImpl
protected DataElement getRunCommandDescriptor(DataElement remoteObject)
protected DataElement getRunShellDescriptor(DataElement remoteObject)
protected DataElement getSetEnvironmentDescriptor(DataElement remoteObject)
protected DataElement getSendInputDescriptor(DataElement remoteObject)
protected IRemoteCommandShell sendCommandToMiner(IProgressMonitor monitor, DataElement contextDir, String command) throws InterruptedException
InterruptedException
public void sendCommandToShell(String input, Shell shell, Object commandObject) throws Exception
sendCommandToShell
in interface RemoteCmdSubSystem
sendCommandToShell
in class SubSystemImpl
Exception
protected IRemoteCommandShell sendShellToMiner(DataElement contextDir) throws InterruptedException
InterruptedException
public boolean runRemoteCommand(IRemoteFile sourceDir, String command) throws InterruptedException
sourceDir
- location to run fromcommand
- the command to run
InterruptedException
protected Object[] internalRunCommand(IProgressMonitor monitor, String command, Object context) throws InvocationTargetException, InterruptedException, SystemMessageException
SubSystemImpl
As per IRunnableWithProgress rules:
internalRunCommand
in class SubSystemImpl
InvocationTargetException
InterruptedException
SystemMessageException
SubSystemImpl.internalRunCommand(IProgressMonitor, String, Object)
protected void internalDisconnect(IProgressMonitor monitor, String hostName, int port) throws InvocationTargetException, InterruptedException
internalDisconnect
in class SubSystemImpl
InvocationTargetException
InterruptedException
SubSystemImpl.internalDisconnect(IProgressMonitor,String,int)
public void setRemoteEnvironment(DataElement theObject)
protected IRemoteCommandShell internalRunShell(IProgressMonitor monitor, Object context) throws InvocationTargetException, InterruptedException, SystemMessageException
internalRunShell
in class SubSystemImpl
InvocationTargetException
InterruptedException
SystemMessageException
SubSystemImpl.internalRunShell(IProgressMonitor, Object)
protected void internalCancelShell(IProgressMonitor monitor, Object command) throws InvocationTargetException, InterruptedException
internalCancelShell
in class SubSystemImpl
InvocationTargetException
InterruptedException
protected boolean validateCommand(String command)
protected void internalSendCommandToShell(IProgressMonitor monitor, String stdIn, Object context) throws InvocationTargetException, InterruptedException
internalSendCommandToShell
in class SubSystemImpl
InvocationTargetException
InterruptedException
protected String getUserHome()
protected void logCommand(String cmd, String[] msgs)
public String[] getExecutedCommands()
getExecutedCommands
in interface RemoteCmdSubSystem
getExecutedCommands
in class SubSystemImpl
protected void updateCommandHistory(String executedCmd)
protected ArrayList getUnsupportedCommandList()
protected boolean supportsCommand(String theCommand)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |