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
Constructor Summary
|
AbstractDStoreService
(org.eclipse.dstore.core.model.IDataStoreProvider dataStoreProvider)
|
Method Summary
|
protected void
|
checkHostJVM
()
|
protected org.eclipse.dstore.core.model.DataElement[]
|
dsQueryCommand
(org.eclipse.dstore.core.model.DataElement subject,
ArrayList args,
String command,
IProgressMonitor monitor)
query the the remote system |
protected org.eclipse.dstore.core.model.DataElement[]
|
dsQueryCommand
(org.eclipse.dstore.core.model.DataElement subject,
String command,
IProgressMonitor monitor)
|
protected
List
|
dsQueryCommandMulti
(org.eclipse.dstore.core.model.DataElement[] subjects,
ArrayList[] argses,
String[] commands,
IProgressMonitor monitor)
Query multiple subjects in one shot |
protected
List
|
dsQueryCommandMulti
(org.eclipse.dstore.core.model.DataElement[] subjects,
String[] commands,
IProgressMonitor monitor)
|
protected org.eclipse.dstore.core.model.DataElement
|
dsStatusCommand
(org.eclipse.dstore.core.model.DataElement subject,
ArrayList args,
String command,
IProgressMonitor monitor)
|
protected org.eclipse.dstore.core.model.DataElement
|
dsStatusCommand
(org.eclipse.dstore.core.model.DataElement subject,
String command,
IProgressMonitor monitor)
|
protected org.eclipse.dstore.core.model.DataElement
|
getCommandDescriptor
(org.eclipse.dstore.core.model.DataElement subject,
String command)
|
org.eclipse.dstore.core.model.DataStore
|
getDataStore
()
|
protected org.eclipse.dstore.core.model.DataElement
|
getMinerElement
()
|
protected org.eclipse.dstore.core.model.DataElement
|
getMinerElement
(
String id)
|
protected abstract
String
|
getMinerId
()
|
int
|
getServerMinor
()
|
int
|
getServerVersion
()
|
DStoreStatusMonitor
|
getStatusMonitor
(org.eclipse.dstore.core.model.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 org.eclipse.dstore.core.model.IDataStoreProvider _dataStoreProvider
_minerElement
protected org.eclipse.dstore.core.model.DataElement _minerElement
_statusMonitor
protected
DStoreStatusMonitor _statusMonitor
_cmdDescriptorMap
protected
Map _cmdDescriptorMap
_initializeStatus
protected org.eclipse.dstore.core.model.DataElement _initializeStatus
AbstractDStoreService
public AbstractDStoreService(org.eclipse.dstore.core.model.IDataStoreProvider dataStoreProvider)
-
Parameters:
-
dataStoreProvider
- -
Since:
- 3.0 got rid of ISystemMessageProvider argument
getStatusMonitor
public
DStoreStatusMonitor getStatusMonitor(org.eclipse.dstore.core.model.DataStore dataStore)
-
-
getDataStore
public org.eclipse.dstore.core.model.DataStore getDataStore()
-
-
getMinerElement
protected org.eclipse.dstore.core.model.DataElement getMinerElement()
-
-
getMinerElement
protected org.eclipse.dstore.core.model.DataElement getMinerElement(
String id)
-
-
dsQueryCommand
protected org.eclipse.dstore.core.model.DataElement[] dsQueryCommand(org.eclipse.dstore.core.model.DataElement subject,
String command,
IProgressMonitor monitor)
-
-
dsQueryCommand
protected org.eclipse.dstore.core.model.DataElement[] dsQueryCommand(org.eclipse.dstore.core.model.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(org.eclipse.dstore.core.model.DataElement[] subjects,
String[] commands,
IProgressMonitor monitor)
-
-
-
Since:
- 3.0
dsQueryCommandMulti
protected
List dsQueryCommandMulti(org.eclipse.dstore.core.model.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 org.eclipse.dstore.core.model.DataElement dsStatusCommand(org.eclipse.dstore.core.model.DataElement subject,
ArrayList args,
String command,
IProgressMonitor monitor)
-
-
dsStatusCommand
protected org.eclipse.dstore.core.model.DataElement dsStatusCommand(org.eclipse.dstore.core.model.DataElement subject,
String command,
IProgressMonitor monitor)
-
-
getCommandDescriptor
protected org.eclipse.dstore.core.model.DataElement getCommandDescriptor(org.eclipse.dstore.core.model.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, 2008. All Rights Reserved.