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
Exception
public void initStub() throws ExportException
ExportException
public void close() throws RemoteException
RemoteException
public ResponsePacket executeQuery(RequestPacket request, ConnectionContext context) throws RemoteException, SQLException
IQueryProcessor
executeQuery
in interface IQueryProcessor
request
- the request to executecontext
- the session of the requestRemoteException
SQLException
public void setTransaction(Transaction transaction) throws RemoteException
IQueryProcessor
setTransaction
in interface IQueryProcessor
RemoteException
public boolean isAvailable() throws RemoteException
IQueryProcessor
isAvailable
in interface IQueryProcessor
RemoteException
public ConnectionContext newConnection() throws RemoteException
IQueryProcessor
newConnection
in interface IQueryProcessor
RemoteException
public QuerySession getSession(ConnectionContext context) throws RemoteException
IQueryProcessor
getSession
in interface IQueryProcessor
RemoteException
public void closeConnection(ConnectionContext context) throws RemoteException
IQueryProcessor
closeConnection
in interface IQueryProcessor
RemoteException
public IQueryProcessor getStub()
public static void setDefaultConfig(QueryProcessorConfiguration defaultConfig)
public static QueryProcessorConfiguration getDefaultConfig()
public void clean() throws RemoteException
RemoteException
Copyright © GigaSpaces.