|
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
Nested Class Summary | |
---|---|
class |
RemoteCmdSubSystemImpl.RefreshSubSystem
|
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl |
---|
SubSystemImpl.ConnectRunnable, SubSystemImpl.DisplayErrorMessageRunnable |
Field Summary | |
---|---|
protected ArrayList |
_cmdShells
|
protected IRemoteCommandShell |
_defaultShell
|
protected List |
_envVars
|
protected RemoteFileSubSystem |
_fileSubSystem
|
static String |
COMMAND_SHELLS_MEMENTO
|
static String |
copyright
|
protected EList |
envVars
|
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver |
---|
Copyright |
Constructor Summary | |
---|---|
RemoteCmdSubSystemImpl()
Default constructor. |
Method Summary | |
---|---|
void |
addEnvironmentVariable(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 |
cancelAllShells()
|
boolean |
canRunCommand()
Determine whether the command subsystem can run a command |
boolean |
canRunShell()
Determine whether the command subsystem can run a shell |
boolean |
checkForCancel()
Long running list processing calls this method to check for a user-cancel event. |
void |
communicationsStateChange(CommunicationsEvent e)
This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes. |
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)
|
ICandidateCommand[] |
getCandidateCommands(Object context)
Lists the possible commands for the given context |
Object[] |
getChildren()
Return the children for this subsystem. |
RemoteCmdSubSystem |
getCommandSubSystem()
Return the associated command subsystem. |
IRemoteCommandShell |
getDefaultShell(Shell shell)
Get the default running command shell for this command subsystem. |
RemoteSystemEnvVar |
getEnvironmentVariable(String name)
Given an environment variable name, find its RemoteSystemEnvVar object. |
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. |
EList |
getEnvVars()
Private. |
RemoteFileSubSystem |
getFileSubSystem()
|
List |
getHostEnvironmentVariables()
Override this to return a list of environment variables for the host system |
String |
getInvalidEnvironmentVariableNameCharacters()
Default implementation of getInvalidEnvironmentVariableNameCharacters. |
Object |
getObjectWithAbsoluteName(String key)
Return the object within the subsystem that corresponds to the specified unique ID. |
RemoteCmdSubSystemFactory |
getParentRemoteCmdSubSystemFactory()
Return parent subsystem factory, cast to a RemoteCmdSubSystemFactory |
List |
getPathEnvironment()
Override this to provide an appropriate path list for the command subsystem. |
String |
getShellEncoding()
|
IRemoteCommandShell[] |
getShells()
Get all command shells and transient commands that have been run or are running for this command subsystem. |
boolean |
hasChildren()
Return true if this subsystem has children objects to be displayed in the Remote System View explorer. |
protected void |
internalRemoveShell(Object command)
|
protected Object[] |
internalResolveFilterString(IProgressMonitor monitor,
String filterString)
Actually resolve an absolute filter string. |
boolean |
isPassiveCommunicationsListener()
This method determines if the communications listener is a passive or active listener. |
boolean |
isWindows()
|
protected List |
parsePathEnvironmentVariable(String path)
|
void |
removeEnvironmentVariable(RemoteSystemEnvVar rsev)
Remove environment variable entry given its RemoteSystemEnvVar object |
void |
removeEnvironmentVariable(String name)
Remove environment variable entry given only its environment variable name |
IRemoteCommandShell[] |
restoreShellState(Shell shellWindow)
Restore all the command shells that were open before disconnecting during the previous session |
Object[] |
runCommand(String command,
Shell shell,
Object context)
overridden so that for universal we don't need to do in modal thread |
IRemoteCommandShell |
runShell(Shell shell,
Object context)
overridden so that for universal we don't need to do in modal thread |
protected void |
saveShellState(List cmdShells)
|
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 |
setShellEncoding(String encoding)
|
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 |
---|
cancelShell, getExecutedCommands, removeShell, sendCommandToShell |
Field Detail |
public static final String copyright
public static String COMMAND_SHELLS_MEMENTO
protected EList envVars
protected List _envVars
protected ArrayList _cmdShells
protected IRemoteCommandShell _defaultShell
protected RemoteFileSubSystem _fileSubSystem
Constructor Detail |
public RemoteCmdSubSystemImpl()
SubSystemImpl.setParentSubSystemFactory(SubSystemFactory)
.
Method Detail |
protected EClass eStaticClass()
eStaticClass
in class SubSystemImpl
public RemoteCmdSubSystemFactory getParentRemoteCmdSubSystemFactory()
getParentRemoteCmdSubSystemFactory
in interface RemoteCmdSubSystem
public String getShellEncoding()
public void setShellEncoding(String encoding)
public boolean checkForCancel()
public RemoteSystemEnvVar[] getEnvironmentVariableList()
getEnvironmentVariableList
in interface RemoteCmdSubSystem
public void setEnvironmentVariableList(String[] envVarNames, String[] envVarValues)
Note, this calls getParentSubSystemFactory().saveSubSystem(this) for you.
setEnvironmentVariableList
in interface RemoteCmdSubSystem
public void addEnvironmentVariable(String name, String value)
addEnvironmentVariable
in interface RemoteCmdSubSystem
public void addEnvironmentVariable(RemoteSystemEnvVar rsev)
addEnvironmentVariable
in interface RemoteCmdSubSystem
public void removeEnvironmentVariable(RemoteSystemEnvVar rsev)
removeEnvironmentVariable
in interface RemoteCmdSubSystem
public void removeEnvironmentVariable(String name)
removeEnvironmentVariable
in interface RemoteCmdSubSystem
public RemoteSystemEnvVar getEnvironmentVariable(String name)
getEnvironmentVariable
in interface RemoteCmdSubSystem
public String getEnvironmentVariableValue(String name)
getEnvironmentVariableValue
in interface RemoteCmdSubSystem
public List getPathEnvironment()
public List getHostEnvironmentVariables()
public boolean isWindows()
public ICandidateCommand[] getCandidateCommands(Object context)
getCandidateCommands
in interface RemoteCmdSubSystem
context
- the context for a command
protected List parsePathEnvironmentVariable(String path)
public RemoteFileSubSystem getFileSubSystem()
public String getInvalidEnvironmentVariableNameCharacters()
getInvalidEnvironmentVariableNameCharacters
in interface RemoteCmdSubSystem
RemoteCmdSubSystem.getInvalidEnvironmentVariableNameCharacters()
public RemoteCmdSubSystem getCommandSubSystem()
getCommandSubSystem
in interface SubSystem
getCommandSubSystem
in class SubSystemImpl
protected Object[] internalResolveFilterString(IProgressMonitor monitor, String filterString) throws InvocationTargetException, InterruptedException
internalResolveFilterString
in class SubSystemImpl
InvocationTargetException
InterruptedException
SubSystemImpl.internalResolveFilterString(IProgressMonitor,String)
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 SubSystemImpl
public boolean hasChildren()
SubSystem
hasChildren
in interface SubSystem
hasChildren
in class SubSystemImpl
public IRemoteCommandShell getDefaultShell(Shell shell) throws Exception
getDefaultShell
in interface RemoteCmdSubSystem
shell
- a window used for notification
Exception
public IRemoteCommandShell[] getShells()
getShells
in interface RemoteCmdSubSystem
public boolean canRunShell()
canRunShell
in interface RemoteCmdSubSystem
public boolean canRunCommand()
canRunCommand
in interface RemoteCmdSubSystem
public Object getObjectWithAbsoluteName(String key) throws Exception
getObjectWithAbsoluteName
in interface IRemoteObjectResolver
getObjectWithAbsoluteName
in class SubSystemImpl
Exception
protected void saveShellState(List cmdShells)
protected void internalRemoveShell(Object command) throws InvocationTargetException, InterruptedException
internalRemoveShell
in class SubSystemImpl
InvocationTargetException
InterruptedException
public IRemoteCommandShell[] restoreShellState(Shell shellWindow)
RemoteCmdSubSystem
restoreShellState
in interface RemoteCmdSubSystem
shellWindow
- a window used for notification
public void cancelAllShells()
public boolean isPassiveCommunicationsListener()
ICommunicationsListener
isPassiveCommunicationsListener
in interface ICommunicationsListener
ICommunicationsListener.isPassiveCommunicationsListener()
public void communicationsStateChange(CommunicationsEvent e)
ICommunicationsListener
communicationsStateChange
in interface ICommunicationsListener
public EList getEnvVars()
RemoteCmdSubSystem
getEnvVars
in interface RemoteCmdSubSystem
public Object[] runCommand(String command, Shell shell, Object context) throws Exception
runCommand
in interface RemoteCmdSubSystem
runCommand
in class SubSystemImpl
command
- Command to be executed remotely.
Exception
public IRemoteCommandShell runShell(Shell shell, Object context) throws Exception
runShell
in interface RemoteCmdSubSystem
runShell
in class SubSystemImpl
Exception
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseAdd
in class SubSystemImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseRemove
in class SubSystemImpl
public Object eGet(EStructuralFeature eFeature, boolean resolve)
eGet
in class SubSystemImpl
public void eSet(EStructuralFeature eFeature, Object newValue)
eSet
in class SubSystemImpl
public void eUnset(EStructuralFeature eFeature)
eUnset
in class SubSystemImpl
public boolean eIsSet(EStructuralFeature eFeature)
eIsSet
in class SubSystemImpl
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |