|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.platform.service.controller.AbstractService
com.metamatrix.server.connector.service.ConnectorService
public class ConnectorService
ConnectorService.
| Field Summary |
|---|
| Fields inherited from interface com.metamatrix.server.connector.service.ConnectorServiceInterface |
|---|
SERVICE_NAME |
| Fields inherited from interface com.metamatrix.platform.service.api.ServiceInterface |
|---|
WAIT_TO_DIE_TIME |
| Fields inherited from interface com.metamatrix.platform.service.api.CacheAdmin |
|---|
CODE_TABLE_CACHE, CONNECTOR_RESULT_SET_CACHE, PREPARED_PLAN_CACHE, QUERY_SERVICE_RESULT_SET_CACHE |
| Constructor Summary | |
|---|---|
ConnectorService()
|
|
| Method Summary | |
|---|---|
void |
cancelRequest(AtomicRequestID request)
|
void |
checkState()
Check the underlying connectorManager's state, then call the super.checkState(). |
void |
clearCache(java.lang.String name,
java.util.Properties props)
Clear the named cached using properties to set options if necessary |
void |
closeRequest(AtomicRequestID request)
|
protected void |
closeService()
Close the service to new work if applicable. |
void |
executeRequest(AtomicRequestMessage request,
ResultsReceiver<AtomicResultsMessage> resultListener)
Execute the given request on a Connector. |
java.util.Map |
getCaches()
Get names of all caches in this object |
SourceCapabilities |
getCapabilities(RequestID requestId,
java.io.Serializable executionPayload,
org.teiid.dqp.internal.process.DQPWorkContext message)
|
java.util.Collection<ConnectionPoolStats> |
getConnectionPoolStats()
Returns a list of ConnectionPoolStat objects for the specific ConnectorBinding service If there are no ConnectionPoolStats, null is returned. |
com.metamatrix.dqp.internal.datamgr.ConnectorID |
getConnectorID()
Get the ConnectorID of the connector we're servicing. |
java.util.Collection |
getQueueStatistics()
Returns a list of QueueStats objects that represent the queues in this service. |
WorkerPoolStats |
getQueueStatistics(java.lang.String name)
Returns a QueueStats object that represent the queue in this service. |
void |
init(ServiceID id,
DeployedComponentID deployedComponentID,
java.util.Properties props,
ClientServiceRegistry listenerRegistry,
ClassLoaderManager clManager)
Initialize ConnectorService |
protected void |
initService(java.util.Properties props)
Perform initialization and commence processing. |
protected void |
killService()
Terminate all processing and reclaim resources. |
void |
requestBatch(AtomicRequestID request)
|
protected void |
waitForServiceToClear()
Wait until the service has completed all outstanding work. |
| Methods inherited from class com.metamatrix.platform.service.controller.AbstractService |
|---|
die, dieNow, getCurrentState, getHostname, getID, getInitException, getInstanceName, getProcessName, getProperties, getResourceName, getServiceData, getServiceName, getServiceType, getStartTime, getStateChangeTime, isAlive, isClosed, isInitialized, isOpen, processEvent, registerForEvents, setInitException, unregisterForEvents, updateState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.metamatrix.platform.service.api.ServiceInterface |
|---|
die, dieNow, getCurrentState, getHostname, getID, getInitException, getProcessName, getProperties, getServiceData, getServiceType, getStartTime, getStateChangeTime, isAlive, setInitException, updateState |
| Constructor Detail |
|---|
public ConnectorService()
| Method Detail |
|---|
public void init(ServiceID id,
DeployedComponentID deployedComponentID,
java.util.Properties props,
ClientServiceRegistry listenerRegistry,
ClassLoaderManager clManager)
init in interface ServiceInterfaceinit in class AbstractServiceid - The ServiceID this service was registered withdeployedComponentID - Unique identifier of this deployed component.props - the properties which define the service configuration
public com.metamatrix.dqp.internal.datamgr.ConnectorID getConnectorID()
throws ServiceStateException
ConnectorServiceInterfaceConnectorID of the connector we're servicing.
getConnectorID in interface ConnectorServiceInterfaceConnectorID.
ServiceStateException
public void cancelRequest(AtomicRequestID request)
throws MetaMatrixComponentException
cancelRequest in interface ConnectorServiceInterfaceMetaMatrixComponentException
public void closeRequest(AtomicRequestID request)
throws MetaMatrixComponentException
closeRequest in interface ConnectorServiceInterfaceMetaMatrixComponentException
public void executeRequest(AtomicRequestMessage request,
ResultsReceiver<AtomicResultsMessage> resultListener)
throws MetaMatrixComponentException
ConnectorServiceInterfaceConnector.
executeRequest in interface ConnectorServiceInterfaceMetaMatrixComponentException
public void requestBatch(AtomicRequestID request)
throws MetaMatrixComponentException
requestBatch in interface ConnectorServiceInterfaceMetaMatrixComponentException
protected void initService(java.util.Properties props)
throws ApplicationLifecycleException,
ApplicationInitializationException
initService in class AbstractServiceApplicationLifecycleException
ApplicationInitializationException
protected void closeService()
throws ApplicationLifecycleException
closeService in class AbstractServiceApplicationLifecycleException
protected void waitForServiceToClear()
throws ApplicationLifecycleException
AbstractService
waitForServiceToClear in class AbstractServiceApplicationLifecycleExceptionprotected void killService()
killService in class AbstractService
public void checkState()
throws ServiceStateException
checkState in interface ServiceInterfacecheckState in class AbstractServiceServiceStateException
public SourceCapabilities getCapabilities(RequestID requestId,
java.io.Serializable executionPayload,
org.teiid.dqp.internal.process.DQPWorkContext message)
throws ConnectorException
getCapabilities in interface ConnectorServiceInterfaceConnectorExceptionpublic java.util.Collection getQueueStatistics()
getQueueStatistics in interface ServiceInterfacegetQueueStatistics in class AbstractServicepublic WorkerPoolStats getQueueStatistics(java.lang.String name)
getQueueStatistics in interface ServiceInterfacegetQueueStatistics in class AbstractService
public java.util.Map getCaches()
throws MetaMatrixComponentException
CacheAdmin
getCaches in interface CacheAdminMetaMatrixComponentException - If an error occurs
public void clearCache(java.lang.String name,
java.util.Properties props)
throws MetaMatrixComponentException
CacheAdmin
clearCache in interface CacheAdminname - Name of the cache to clearprops - Optional additional properties which may vary by cache type
MetaMatrixComponentException - If an error occurspublic java.util.Collection<ConnectionPoolStats> getConnectionPoolStats()
ServiceInterface
getConnectionPoolStats in interface ServiceInterfacegetConnectionPoolStats in class AbstractService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||