RSE
Release 1.0

org.eclipse.rse.services.dstore.shells
Class DStoreShellService

java.lang.Object
  extended byorg.eclipse.rse.services.dstore.AbstractDStoreService
      extended byorg.eclipse.rse.services.dstore.shells.DStoreShellService
All Implemented Interfaces:
IDStoreService, IService, IShellService

public class DStoreShellService
extends AbstractDStoreService
implements IShellService


Field Summary
protected  org.eclipse.dstore.core.model.DataElement _envMinerElement
           
protected  org.eclipse.dstore.core.model.DataElement _envMinerStatus
           
protected  String[] _envVars
           
 
Fields inherited from class org.eclipse.rse.services.dstore.AbstractDStoreService
_cmdDescriptorMap, _dataStoreProvider, _initializeStatus, _minerElement, _msgProvider, _statusMonitor
 
Constructor Summary
DStoreShellService(org.eclipse.dstore.core.model.IDataStoreProvider dataStoreProvider, ISystemMessageProvider msgProvider)
           
 
Method Summary
 String getDescription()
           
protected  String getEnvSystemMinerId()
           
 String[] getHostEnvironment()
          Return an array of environment variables that describe the environment on the host.
protected  String getMinerId()
           
 String getName()
           
protected  void initMiner(IProgressMonitor monitor)
           
 boolean isInitialized()
           
 IHostShell launchShell(IProgressMonitor monitor, String initialWorkingDirectory, String[] environment)
          Launch a new shell in the specified directory
 IHostShell launchShell(IProgressMonitor monitor, String initialWorkingDirectory, String encoding, String[] environment)
          Launch a new shell in the specified directory
 IHostShell runCommand(IProgressMonitor monitor, String initialWorkingDirectory, String command, String[] environment)
          Run a command in it's own shell
 IHostShell runCommand(IProgressMonitor monitor, String initialWorkingDirectory, String command, String encoding, String[] environment)
          Run a command in it's own shell
 void uninitService(IProgressMonitor monitor)
           
protected  void waitForInitialize(IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.rse.services.dstore.AbstractDStoreService
checkHostJVM, dsQueryCommand, dsQueryCommand, dsStatusCommand, dsStatusCommand, getCommandDescriptor, getDataStore, getMessage, getMinerElement, getMinerElement, getServerMinor, getServerVersion, getStatusMonitor, initService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.services.IService
getMessage, initService
 

Field Detail

_envVars

protected String[] _envVars

_envMinerElement

protected org.eclipse.dstore.core.model.DataElement _envMinerElement

_envMinerStatus

protected org.eclipse.dstore.core.model.DataElement _envMinerStatus
Constructor Detail

DStoreShellService

public DStoreShellService(org.eclipse.dstore.core.model.IDataStoreProvider dataStoreProvider,
                          ISystemMessageProvider msgProvider)
Method Detail

getName

public String getName()
Specified by:
getName in interface IService

getDescription

public String getDescription()
Specified by:
getDescription in interface IService

launchShell

public IHostShell launchShell(IProgressMonitor monitor,
                              String initialWorkingDirectory,
                              String[] environment)
Description copied from interface: IShellService
Launch a new shell in the specified directory

Specified by:
launchShell in interface IShellService
Parameters:
monitor -
initialWorkingDirectory -
environment - Array of environment variable Strings of the form "var=text"
Returns:
the shell object

launchShell

public IHostShell launchShell(IProgressMonitor monitor,
                              String initialWorkingDirectory,
                              String encoding,
                              String[] environment)
Description copied from interface: IShellService
Launch a new shell in the specified directory

Specified by:
launchShell in interface IShellService
Parameters:
monitor -
initialWorkingDirectory -
encoding -
environment - Array of environment variable Strings of the form "var=text"
Returns:
the shell object

runCommand

public IHostShell runCommand(IProgressMonitor monitor,
                             String initialWorkingDirectory,
                             String command,
                             String[] environment)
Description copied from interface: IShellService
Run a command in it's own shell

Specified by:
runCommand in interface IShellService
Parameters:
monitor -
initialWorkingDirectory -
command -
environment - Array of environment variable Strings of the form "var=text"
Returns:
the shell object for getting output and error streams

runCommand

public IHostShell runCommand(IProgressMonitor monitor,
                             String initialWorkingDirectory,
                             String command,
                             String encoding,
                             String[] environment)
Description copied from interface: IShellService
Run a command in it's own shell

Specified by:
runCommand in interface IShellService
Parameters:
monitor -
initialWorkingDirectory -
command -
encoding -
environment - Array of environment variable Strings of the form "var=text"
Returns:
the shell object for getting output and error streams

getHostEnvironment

public String[] getHostEnvironment()
Description copied from interface: IShellService
Return an array of environment variables that describe the environment on the host. Each String returned is of the format "var=text": Everything up to the first equals sign is the name of the given environment variable, everything after the equals sign is its contents.

Specified by:
getHostEnvironment in interface IShellService
Returns:
Array of environment variable Strings of the form "var=text"

getMinerId

protected String getMinerId()
Specified by:
getMinerId in class AbstractDStoreService

getEnvSystemMinerId

protected String getEnvSystemMinerId()

isInitialized

public boolean isInitialized()
Overrides:
isInitialized in class AbstractDStoreService

waitForInitialize

protected void waitForInitialize(IProgressMonitor monitor)
Overrides:
waitForInitialize in class AbstractDStoreService

uninitService

public void uninitService(IProgressMonitor monitor)
Specified by:
uninitService in interface IService
Overrides:
uninitService in class AbstractDStoreService

initMiner

protected void initMiner(IProgressMonitor monitor)
Overrides:
initMiner in class AbstractDStoreService

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.