RSE
Release 3.4

org.eclipse.rse.services.dstore
Class AbstractDStoreService

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.rse.services.AbstractService
          extended by org.eclipse.rse.services.dstore.AbstractDStoreService
All Implemented Interfaces:
IAdaptable, IDStoreService, IService

public abstract class AbstractDStoreService
extends AbstractService
implements IDStoreService


Field Summary
protected  Map _cmdDescriptorMap
           
protected  IDataStoreProvider _dataStoreProvider
           
protected  DataElement _initializeStatus
           
protected  DataElement _minerElement
           
protected  DStoreStatusMonitor _statusMonitor
           
 
Constructor Summary
AbstractDStoreService(IDataStoreProvider dataStoreProvider)
           
 
Method Summary
protected  void checkHostJVM()
           
protected  DataElement[] dsQueryCommand(DataElement subject, ArrayList args, String command, IProgressMonitor monitor)
          query the the remote system
protected  DataElement[] dsQueryCommand(DataElement subject, String command, IProgressMonitor monitor)
           
protected  List dsQueryCommandMulti(DataElement[] subjects, ArrayList[] argses, String[] commands, IProgressMonitor monitor)
          Query multiple subjects in one shot
protected  List dsQueryCommandMulti(DataElement[] subjects, String[] commands, IProgressMonitor monitor)
           
protected  DataElement dsStatusCommand(DataElement subject, ArrayList args, String command, IProgressMonitor monitor)
           
protected  DataElement dsStatusCommand(DataElement subject, String command, IProgressMonitor monitor)
           
protected  DataElement getCommandDescriptor(DataElement subject, String command)
           
 DataStore getDataStore()
           
protected  DataElement getMinerElement()
           
protected  DataElement getMinerElement(String id)
           
protected abstract  String getMinerId()
           
 int getServerMinor()
           
 int getServerVersion()
           
 DStoreStatusMonitor getStatusMonitor(DataStore dataStore)
           
protected  void initMiner(IProgressMonitor monitor)
           
 void initService(IProgressMonitor monitor)
          Default implementation of initService.
 boolean isInitialized()
           
 void uninitService(IProgressMonitor monitor)
          Default implementation of uninitService.
protected  void waitForInitialize(IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.rse.services.AbstractService
getDescription, getName
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

_dataStoreProvider

protected IDataStoreProvider _dataStoreProvider

_minerElement

protected DataElement _minerElement

_statusMonitor

protected DStoreStatusMonitor _statusMonitor

_cmdDescriptorMap

protected Map _cmdDescriptorMap

_initializeStatus

protected DataElement _initializeStatus
Constructor Detail

AbstractDStoreService

public AbstractDStoreService(IDataStoreProvider dataStoreProvider)
Parameters:
dataStoreProvider -
Since:
3.0 got rid of ISystemMessageProvider argument
Method Detail

getStatusMonitor

public DStoreStatusMonitor getStatusMonitor(DataStore dataStore)

getDataStore

public DataStore getDataStore()

getMinerElement

protected DataElement getMinerElement()

getMinerElement

protected DataElement getMinerElement(String id)

dsQueryCommand

protected DataElement[] dsQueryCommand(DataElement subject,
                                       String command,
                                       IProgressMonitor monitor)

dsQueryCommand

protected DataElement[] dsQueryCommand(DataElement subject,
                                       ArrayList args,
                                       String command,
                                       IProgressMonitor monitor)
query the the remote system

Parameters:
subject - the subject of the query
args - the arguments for the query
command - the query command
monitor -
Returns:
the array of results

dsQueryCommandMulti

protected List dsQueryCommandMulti(DataElement[] subjects,
                                   String[] commands,
                                   IProgressMonitor monitor)
Since:
3.0

dsQueryCommandMulti

protected List dsQueryCommandMulti(DataElement[] subjects,
                                   ArrayList[] argses,
                                   String[] commands,
                                   IProgressMonitor monitor)
Query multiple subjects in one shot

Parameters:
subjects - the subjects to query
commands - the query commands
argses - arguments for the command - may be null
monitor - the progress monitor
Returns:
a list of DataElement[]s containing the results of each query
Since:
3.0

dsStatusCommand

protected DataElement dsStatusCommand(DataElement subject,
                                      ArrayList args,
                                      String command,
                                      IProgressMonitor monitor)

dsStatusCommand

protected DataElement dsStatusCommand(DataElement subject,
                                      String command,
                                      IProgressMonitor monitor)

getCommandDescriptor

protected DataElement getCommandDescriptor(DataElement subject,
                                           String command)

getServerVersion

public int getServerVersion()

getServerMinor

public int getServerMinor()

checkHostJVM

protected void checkHostJVM()

isInitialized

public boolean isInitialized()

waitForInitialize

protected void waitForInitialize(IProgressMonitor monitor)

initService

public void initService(IProgressMonitor monitor)
                 throws SystemMessageException
Description copied from class: AbstractService
Default implementation of initService. Extenders who override this method must call super.initService(monitor) as the first call in their implementation.

Specified by:
initService in interface IService
Overrides:
initService in class AbstractService
Parameters:
monitor - A progress monitor to provide progress of long-running operation. There is no guarantee that cancellation is actually supported by a Service since it would leave the service in a potentially inconsistent, partially initialized state.
Throws:
SystemMessageException - if an error occurs during initialization.

uninitService

public void uninitService(IProgressMonitor monitor)
Description copied from class: AbstractService
Default implementation of uninitService. Extenders who override this method must call super.uninitService(monitor) as the last call in their implementation.

Specified by:
uninitService in interface IService
Overrides:
uninitService in class AbstractService
Parameters:
monitor - A progress monitor to provide progress of long-running operation. There is no guarantee that cancellation is actually supported by a Service since it would leave the service in a potentially inconsistent, partially initialized state.

initMiner

protected void initMiner(IProgressMonitor monitor)

getMinerId

protected abstract String getMinerId()

RSE
Release 3.4

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