public class QueryProcessor extends Object implements IQueryProcessor
QP_LOOKUP_NAME| Constructor and Description |
|---|
QueryProcessor(IJSpace clusterProxy,
IJSpace spaceProxy,
Properties overrideProperties,
SecurityInterceptor securityInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean() |
void |
close() |
void |
closeConnection(ConnectionContext context)
Close connection
|
ResponsePacket |
executeQuery(RequestPacket request,
ConnectionContext context)
Execute query request and returns the response
|
static QueryProcessorConfiguration |
getDefaultConfig() |
QuerySession |
getSession(ConnectionContext context)
Retrieve the query session that belongs to the given context
|
IQueryProcessor |
getStub() |
void |
initStub() |
boolean |
isAvailable()
Check if QueryProcessor is available
|
static void |
main(String[] args)
Run standalone QP
|
ConnectionContext |
newConnection()
Starts new connection
|
static void |
setDefaultConfig(QueryProcessorConfiguration defaultConfig) |
void |
setTransaction(Transaction transaction)
Set an explicit transaction to be used by the query processor.
|
public QueryProcessor(IJSpace clusterProxy, IJSpace spaceProxy, Properties overrideProperties, SecurityInterceptor securityInterceptor) throws Exception
Exceptionpublic void initStub()
throws ExportException
ExportExceptionpublic void close()
throws RemoteException
RemoteExceptionpublic ResponsePacket executeQuery(RequestPacket request, ConnectionContext context) throws RemoteException, SQLException
IQueryProcessorexecuteQuery in interface IQueryProcessorrequest - the request to executecontext - the session of the requestRemoteExceptionSQLExceptionpublic void setTransaction(Transaction transaction) throws RemoteException
IQueryProcessorsetTransaction in interface IQueryProcessorRemoteExceptionpublic boolean isAvailable()
throws RemoteException
IQueryProcessorisAvailable in interface IQueryProcessorRemoteExceptionpublic ConnectionContext newConnection() throws RemoteException
IQueryProcessornewConnection in interface IQueryProcessorRemoteExceptionpublic QuerySession getSession(ConnectionContext context) throws RemoteException
IQueryProcessorgetSession in interface IQueryProcessorRemoteExceptionpublic void closeConnection(ConnectionContext context) throws RemoteException
IQueryProcessorcloseConnection in interface IQueryProcessorRemoteExceptionpublic IQueryProcessor getStub()
public static void setDefaultConfig(QueryProcessorConfiguration defaultConfig)
public static QueryProcessorConfiguration getDefaultConfig()
public void clean()
throws RemoteException
RemoteExceptionCopyright © GigaSpaces.