Package com.j_spaces.jdbc
Class QueryProcessor
java.lang.Object
com.j_spaces.jdbc.QueryProcessor
- All Implemented Interfaces:
IQueryProcessor,Remote
The QueryProcessor main class.
- Author:
- Michael Mitrani - 2Train4, 2004
-
Field Summary
Fields inherited from interface com.j_spaces.jdbc.IQueryProcessor
QP_LOOKUP_NAME -
Constructor Summary
ConstructorsConstructorDescriptionQueryProcessor(IJSpace clusterProxy, IJSpace spaceProxy, Properties overrideProperties, SecurityInterceptor securityInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()voidclose()voidcloseConnection(ConnectionContext context) Close connectionexecuteQuery(RequestPacket request, ConnectionContext context) Execute query request and returns the responsestatic QueryProcessorConfigurationgetSession(ConnectionContext context) Retrieve the query session that belongs to the given contextgetStub()voidinitStub()booleanCheck if QueryProcessor is availablestatic voidRun standalone QPStarts new connectionstatic voidsetDefaultConfig(QueryProcessorConfiguration defaultConfig) voidsetTransaction(Transaction transaction) Set an explicit transaction to be used by the query processor.
-
Constructor Details
-
QueryProcessor
public QueryProcessor(IJSpace clusterProxy, IJSpace spaceProxy, Properties overrideProperties, SecurityInterceptor securityInterceptor) throws Exception - Throws:
Exception
-
-
Method Details
-
initStub
- Throws:
ExportException
-
close
- Throws:
RemoteException
-
executeQuery
public ResponsePacket executeQuery(RequestPacket request, ConnectionContext context) throws RemoteException, SQLException Description copied from interface:IQueryProcessorExecute query request and returns the response- Specified by:
executeQueryin interfaceIQueryProcessor- Parameters:
request- the request to executecontext- the session of the request- Returns:
- response packet
- Throws:
RemoteExceptionSQLException
-
setTransaction
Description copied from interface:IQueryProcessorSet an explicit transaction to be used by the query processor.- Specified by:
setTransactionin interfaceIQueryProcessor- Throws:
RemoteException
-
isAvailable
Description copied from interface:IQueryProcessorCheck if QueryProcessor is available- Specified by:
isAvailablein interfaceIQueryProcessor- Throws:
RemoteException
-
newConnection
Description copied from interface:IQueryProcessorStarts new connection- Specified by:
newConnectionin interfaceIQueryProcessor- Returns:
- connection context
- Throws:
RemoteException
-
getSession
Description copied from interface:IQueryProcessorRetrieve the query session that belongs to the given context- Specified by:
getSessionin interfaceIQueryProcessor- Returns:
- the query session that belongs to the given context
- Throws:
RemoteException
-
closeConnection
Description copied from interface:IQueryProcessorClose connection- Specified by:
closeConnectionin interfaceIQueryProcessor- Throws:
RemoteException
-
getStub
-
setDefaultConfig
-
getDefaultConfig
-
clean
- Throws:
RemoteException
-
main
Run standalone QP- Throws:
Throwable
-