Interface QueryDispatcherConnection
- All Known Implementing Classes:
QueryDispatcherConnectionImpl
public interface QueryDispatcherConnection
A connection to a remote query dispatcher.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceQueryDispatcherConnection.QueryProcessorRequestHandleSingle-use query processor request tracking mechanism. -
Method Summary
Modifier and Type Method Description StringgetDispatcherHost()QueryProcessorConnectiongetQueryProcessor(boolean addClientClassesToClassPath, List<RemoteQueryClassDefinition> classList, long timeoutMillis)QueryProcessorConnectiongetQueryProcessor(QueryDispatcherConnection.QueryProcessorRequestHandle handle, RemoteProcessingRequest request, boolean exportQueryScope, List<RemoteQueryClassDefinition> classList, long timeoutMillis, QueryProcessorConnection.DisconnectHandler disconnectHandler, com.fishlib.net.ConnectionMonitor.Params connectionMonitorParams)QueryProcessorConnectiongetQueryProcessor(QueryDispatcherConnection.QueryProcessorRequestHandle handle, RemoteProcessingRequest request, boolean exportQueryScope, List<RemoteQueryClassDefinition> classList, long timeoutMillis, QueryProcessorConnection.DisconnectHandler disconnectHandler, com.fishlib.net.ConnectionMonitor.Params connectionMonitorParams, com.fishlib.auth.WAuthenticationClientManager authenticationClientManager)QueryProcessorConnectiongetQueryProcessor(RemoteProcessingRequest request, List<RemoteQueryClassDefinition> classList)QueryProcessorConnectiongetQueryProcessor(RemoteProcessingRequest request, List<RemoteQueryClassDefinition> classList, long timeoutMillis)default QueryDispatcherConnection.QueryProcessorRequestHandlegetQueryProcessorRequestHandle()Delegate togetQueryProcessorRequestHandle(boolean)with combineWorkerConnectionStats=false to create a, single-use handle for use in requesting a new query processor.QueryDispatcherConnection.QueryProcessorRequestHandlegetQueryProcessorRequestHandle(boolean combineWorkerConnectionStats)Create a new, single-use handle for use in requesting a new query processor.booleanisConnected()voidpushClientClasses(List<RemoteQueryClassDefinition> classList)voidrelease(boolean force)com.fishlib.base.CommandsendCommand(com.fishlib.base.Command command)
-
Method Details
-
getDispatcherHost
String getDispatcherHost() -
pushClientClasses
- Throws:
IOException
-
sendCommand
- Throws:
IOException
-
getQueryProcessorRequestHandle
Delegate togetQueryProcessorRequestHandle(boolean)with combineWorkerConnectionStats=false to create a, single-use handle for use in requesting a new query processor.- Returns:
- A new, single-use handle for use in requesting a new query processor.
-
getQueryProcessorRequestHandle
QueryDispatcherConnection.QueryProcessorRequestHandle getQueryProcessorRequestHandle(boolean combineWorkerConnectionStats)Create a new, single-use handle for use in requesting a new query processor.- Parameters:
combineWorkerConnectionStats- if true, use one set of statistics items for the worker connection statistics, rather than a different set of items for each worker connection- Returns:
- A new, single-use handle for use in requesting a new query processor.
-
getQueryProcessor
QueryProcessorConnection getQueryProcessor(QueryDispatcherConnection.QueryProcessorRequestHandle handle, RemoteProcessingRequest request, boolean exportQueryScope, List<RemoteQueryClassDefinition> classList, long timeoutMillis, @Nullable QueryProcessorConnection.DisconnectHandler disconnectHandler, @Nullable com.fishlib.net.ConnectionMonitor.Params connectionMonitorParams, @NotNull com.fishlib.auth.WAuthenticationClientManager authenticationClientManager) throws RemoteQueryException- Throws:
RemoteQueryException
-
getQueryProcessor
QueryProcessorConnection getQueryProcessor(QueryDispatcherConnection.QueryProcessorRequestHandle handle, RemoteProcessingRequest request, boolean exportQueryScope, List<RemoteQueryClassDefinition> classList, long timeoutMillis, @Nullable QueryProcessorConnection.DisconnectHandler disconnectHandler, @Nullable com.fishlib.net.ConnectionMonitor.Params connectionMonitorParams) throws RemoteQueryException- Throws:
RemoteQueryException
-
getQueryProcessor
QueryProcessorConnection getQueryProcessor(boolean addClientClassesToClassPath, List<RemoteQueryClassDefinition> classList, long timeoutMillis) throws RemoteQueryException- Throws:
RemoteQueryException
-
getQueryProcessor
QueryProcessorConnection getQueryProcessor(RemoteProcessingRequest request, List<RemoteQueryClassDefinition> classList, long timeoutMillis) throws RemoteQueryException- Throws:
RemoteQueryException
-
getQueryProcessor
QueryProcessorConnection getQueryProcessor(RemoteProcessingRequest request, List<RemoteQueryClassDefinition> classList) throws RemoteQueryException- Throws:
RemoteQueryException
-
isConnected
boolean isConnected() -
release
- Throws:
IOException
-