public class StreamingSQLClient extends AbstractClient
AbstractClient.HAStreamTableInfoconnList, currentSiteIndexMap, DEFAULT_ACTION_NAME, DEFAULT_HOST, DEFAULT_PORT, haStreamTableInfo, HATopicToTrueTopic, hostEndian, ifUseBackupSite, isClose_, lastBackupSiteTopic, lastExceptionTopicTimeMap, lastQueue, lastSuccessSubscribeTopic, listeningHost, listeningPort, messageCache, pThread, queueManager, reconnectTable, resubscribeInterval, subInfos_, subOnce, tableNameToTrueTopic, trueTopicToSites, users, waitReconnectTopic| Constructor and Description |
|---|
StreamingSQLClient(String host,
int port,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
declareStreamingSQLTable(String tableName) |
protected boolean |
doReconnect(Site site) |
BasicTable |
getStreamingSQLStatus() |
BasicTable |
getStreamingSQLStatus(String queryId) |
BasicTable |
listStreamingSQLTables() |
String |
registerStreamingSQL(String sqlQuery) |
String |
registerStreamingSQL(String sqlQuery,
int logTableCacheSize) |
String |
registerStreamingSQL(String sqlQuery,
String queryId) |
String |
registerStreamingSQL(String sqlQuery,
String queryId,
int logTableCacheSize) |
void |
revokeStreamingSQL(String queryId) |
void |
revokeStreamingSQLTable(String tableName) |
BasicTable |
subscribeStreamingSQL(String queryId) |
BasicTable |
subscribeStreamingSQL(String queryId,
int batchSize,
float throttle) |
void |
unsubscribeStreamingSQL(String queryId) |
activeCloseConnection, batchDispatch, close, dispatch, getAllReconnectSites, getAllReconnectTopic, getAllTopicsBySite, getCurrentSiteByName, getNeedReconnect, getNewLeader, getReconnectTimestamp, getSiteByName, getSubInfos, getTopicToSites, isClose, isClosed, isRemoteLittleEndian, setMsgId, setNeedReconnect, setReconnectTimestamp, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeStreamingSqlLogInfoInternal, tryReconnect, unsubscribeInternal, unsubscribeInternalpublic StreamingSQLClient(String host, int port, String userName, String password) throws IOException
IOExceptionpublic void declareStreamingSQLTable(String tableName)
public void revokeStreamingSQLTable(String tableName)
public BasicTable listStreamingSQLTables()
public String registerStreamingSQL(String sqlQuery, String queryId, int logTableCacheSize)
public void revokeStreamingSQL(String queryId)
public BasicTable getStreamingSQLStatus()
public BasicTable getStreamingSQLStatus(String queryId)
public BasicTable subscribeStreamingSQL(String queryId) throws IOException
IOExceptionpublic BasicTable subscribeStreamingSQL(String queryId, int batchSize, float throttle) throws IOException
IOExceptionpublic void unsubscribeStreamingSQL(String queryId) throws IOException
IOExceptionprotected boolean doReconnect(Site site)
doReconnect in class AbstractClientCopyright © 2025 DolphinDB. All rights reserved.