public class QueryHandler extends Object
GConnection
. For each statement the
QueryHandler
performs the parsing (or retrieves the statement from QueryCache
)
and calls the necessary methods of the GigaSpaces API.Constructor and Description |
---|
QueryHandler(IJSpace spaceCluster,
IJSpace spaceRegular,
QueryProcessorConfiguration config,
SecurityInterceptor securityInterceptor) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close QueryHandler resources
|
QueryCache |
getQueryCache() |
ITransactionManagerProvider |
getTransactionManagerProvider() |
Query |
handleStatement(RequestPacket request,
ISpaceProxy space)
The main method to handle the query.
|
ResponsePacket |
visit(RequestPacket request,
QuerySession session) |
ResponsePacket |
visit(RequestPacketV3 request,
QuerySession session) |
ResponsePacket |
visit(SetAutoCommitRequest request,
QuerySession session)
Handle set auto commit [on off] request
|
ResponsePacket |
visit(SetTransaction request,
QuerySession session)
Handle set transaction lease time
|
ResponsePacket |
visit(SetUseSingleSpace request,
QuerySession session)
Handle set single space [on off] request
|
public QueryHandler(IJSpace spaceCluster, IJSpace spaceRegular, QueryProcessorConfiguration config, SecurityInterceptor securityInterceptor)
public Query handleStatement(RequestPacket request, ISpaceProxy space) throws SQLException
SQLException
public ITransactionManagerProvider getTransactionManagerProvider() throws TransactionException, RemoteException
TransactionException
RemoteException
public void close() throws RemoteException
RemoteException
public QueryCache getQueryCache()
public ResponsePacket visit(RequestPacket request, QuerySession session) throws LeaseDeniedException, RemoteException, TransactionException, SQLException
LeaseDeniedException
RemoteException
TransactionException
SQLException
public ResponsePacket visit(RequestPacketV3 request, QuerySession session) throws LeaseDeniedException, RemoteException, TransactionException, SQLException
LeaseDeniedException
RemoteException
TransactionException
SQLException
public ResponsePacket visit(SetAutoCommitRequest request, QuerySession session) throws LeaseDeniedException, RemoteException, TransactionException
LeaseDeniedException
RemoteException
TransactionException
public ResponsePacket visit(SetUseSingleSpace request, QuerySession session)
public ResponsePacket visit(SetTransaction request, QuerySession session)
Copyright © GigaSpaces.