org.eclipse.rse.services.dstore
Class AbstractDStoreService
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.rse.services.AbstractService
org.eclipse.rse.services.dstore.AbstractDStoreService
- All Implemented Interfaces:
- IAdaptable, IDStoreService, IService
public abstract class AbstractDStoreService
- extends AbstractService
- implements IDStoreService
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_dataStoreProvider
protected IDataStoreProvider _dataStoreProvider
_minerElement
protected DataElement _minerElement
_statusMonitor
protected DStoreStatusMonitor _statusMonitor
_cmdDescriptorMap
protected Map _cmdDescriptorMap
_initializeStatus
protected DataElement _initializeStatus
AbstractDStoreService
public AbstractDStoreService(IDataStoreProvider dataStoreProvider)
- Parameters:
dataStoreProvider
- - Since:
- 3.0 got rid of ISystemMessageProvider argument
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 queryargs
- the arguments for the querycommand
- the query commandmonitor
-
- 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 querycommands
- the query commandsargses
- arguments for the command - may be nullmonitor
- 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()
Copyright (c) IBM Corporation and others 2000, 2011. All Rights Reserved.