public class HPCCWsSQLClient extends BaseHPCCWsClient
Modifier and Type | Field and Description |
---|---|
static String |
WSSQLURI |
DEAFULTECLWATCHPORT, DEFAULTECLWATCHTLSPORT, fsconn, initErrMessage, stub, targetVersion, verbose
Modifier | Constructor and Description |
---|---|
protected |
HPCCWsSQLClient(Connection baseConnection)
Instantiates a new HPCC ws SQL client.
|
Modifier and Type | Method and Description |
---|---|
ExecutePreparedSQLResponseWrapper |
executePreparedSQL(String wuid,
String targetCluster,
org.hpccsystems.ws.client.gen.axis2.wssql.v1_05.NamedValue[] variables,
Integer wait,
Integer resultLimit,
Integer resultWindowStart,
Integer resultWindowCount,
String userName,
Boolean suppressXmlSchema,
Boolean suppressResults)
Execute prepared SQL.
|
ECLWorkunitWrapper |
executePreparedSQL(String wuid,
String targetCluster,
org.hpccsystems.ws.client.gen.axis2.wssql.v1_05.NamedValue[] variables,
Integer wait,
Integer resultLimit,
String userName)
Execute prepared SQL.
|
List<List<Object>> |
executePreparedSQL(String wuid,
String targetCluster,
org.hpccsystems.ws.client.gen.axis2.wssql.v1_05.NamedValue[] variables,
Integer wait,
Integer resultLimit,
String userName,
String somesing)
Execute prepared SQL.
|
ExecuteSQLResponseWrapper |
executeSQLFullResponse(String sqlText,
String targetCluster,
String targetQuerySet,
Integer resultLimit,
Integer resultWindowCount,
Integer resultWindowStart,
Boolean suppressResults,
Boolean suppressXmlSchema,
String userName,
Integer wait)
Execute SQL full response.
|
String |
executeSQLWUIDResponse(String sqlText,
String targetCluster,
String targetQuerySet)
Execute SQLWUID response.
|
ECLWorkunitWrapper |
executeSQLWUResponse(String sqlText,
String targetCluster,
String targetQuerySet,
Integer resultLimit,
Integer resultWindowCount,
Integer resultWindowStart,
Boolean suppressResults,
Boolean suppressXmlSchema,
String userName,
Integer wait)
Execute SQLWU response.
|
static HPCCWsSQLClient |
get(Connection connection)
Gets the.
|
static HPCCWsSQLClient |
get(String protocol,
String targetHost,
String targetPort,
String user,
String pass)
Gets the.
|
static HPCCWsSQLClient |
get(String protocol,
String targetHost,
String targetPort,
String user,
String pass,
int timeout)
Gets the.
|
org.apache.axis2.client.Stub |
getDefaultStub()
Gets the default stub.
|
GetResultsResponseWrapper |
getResultResponse(String wuid,
Integer resultWindowStart,
Integer resultWindowCount,
Boolean suppressXmlSchema)
Gets the result response.
|
List<List<Object>> |
getResults(String wuid,
Integer resultWindowStart,
Integer resultWindowCount)
Gets the results.
|
List<List<Object>> |
getResultSchema(String wuid)
Gets the result schema.
|
String |
getResultSchemaXML(String wuid)
Gets the result schema XML.
|
static String |
getServiceURI()
Gets the service URI.
|
static int |
getServiceWSDLPort()
Gets the service WSDL port.
|
static String |
getServiceWSDLURL()
Gets the service WSDLURL.
|
HPCCQuerySetWrapper[] |
getStoredProcedures(String querysetname)
Gets the stored procedures.
|
HPCCTableWrapper[] |
getTables(String filter)
Gets the tables.
|
String[] |
getTargetClusters(String filter)
Gets the target clusters.
|
Version |
getVersion()
Gets the version.
|
boolean |
isWsSQLReachable()
Checks if is ws SQL reachable.
|
boolean |
ping()
Ping.
|
ECLWorkunitWrapper |
prepareSQL(String sqlText,
String targetCluster,
String targetQuerySet,
Integer wait)
Prepare SQL.
|
equals, fastRefresh, fullRefresh, getConnectionURL, getInitError, getServiceVersion, getServiceVersion, getServiceWSDLPort, getServiceWSDLURL, getStubConnectionTO, getVerbose, handleECLExceptions, handleECLExceptions, handleEspExceptions, handleEspExceptions, handleEspSoapFaults, handleEspSoapFaults, hashCode, hasInitError, isComplete, setClientAuth, setStubConnectionTO, setStubOptions, setVerbose, verifyStub
monitor
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final String WSSQLURI
protected HPCCWsSQLClient(Connection baseConnection)
baseConnection
- the base connectionpublic static String getServiceURI()
public static String getServiceWSDLURL()
public static int getServiceWSDLPort()
public static HPCCWsSQLClient get(Connection connection)
connection
- the connectionpublic static HPCCWsSQLClient get(String protocol, String targetHost, String targetPort, String user, String pass)
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the passpublic static HPCCWsSQLClient get(String protocol, String targetHost, String targetPort, String user, String pass, int timeout)
protocol
- the protocoltargetHost
- the target hosttargetPort
- the target portuser
- the userpass
- the passtimeout
- the timeoutpublic boolean ping() throws Exception
Exception
- the exceptionpublic boolean isWsSQLReachable()
public String[] getTargetClusters(String filter) throws Exception, ArrayOfEspExceptionWrapper
filter
- the filterException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic HPCCTableWrapper[] getTables(String filter) throws Exception, ArrayOfEspExceptionWrapper
filter
- the filterException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic HPCCQuerySetWrapper[] getStoredProcedures(String querysetname) throws Exception, ArrayOfEspExceptionWrapper
querysetname
- the querysetnameException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperpublic Version getVersion()
public String executeSQLWUIDResponse(String sqlText, String targetCluster, String targetQuerySet) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
sqlText
- the sql texttargetCluster
- the target clustertargetQuerySet
- the target query setException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic ExecuteSQLResponseWrapper executeSQLFullResponse(String sqlText, String targetCluster, String targetQuerySet, Integer resultLimit, Integer resultWindowCount, Integer resultWindowStart, Boolean suppressResults, Boolean suppressXmlSchema, String userName, Integer wait) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
sqlText
- the sql texttargetCluster
- the target clustertargetQuerySet
- the target query setresultLimit
- the result limitresultWindowCount
- the result window countresultWindowStart
- the result window startsuppressResults
- the suppress resultssuppressXmlSchema
- the suppress xml schemauserName
- the user namewait
- the waitException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic ECLWorkunitWrapper executeSQLWUResponse(String sqlText, String targetCluster, String targetQuerySet, Integer resultLimit, Integer resultWindowCount, Integer resultWindowStart, Boolean suppressResults, Boolean suppressXmlSchema, String userName, Integer wait) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
sqlText
- the sql texttargetCluster
- the target clustertargetQuerySet
- the target query setresultLimit
- the result limitresultWindowCount
- the result window countresultWindowStart
- the result window startsuppressResults
- the suppress resultssuppressXmlSchema
- the suppress xml schemauserName
- the user namewait
- the waitException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic List<List<Object>> getResults(String wuid, Integer resultWindowStart, Integer resultWindowCount) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wuid
- the wuidresultWindowStart
- the result window startresultWindowCount
- the result window countException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic GetResultsResponseWrapper getResultResponse(String wuid, Integer resultWindowStart, Integer resultWindowCount, Boolean suppressXmlSchema) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wuid
- the wuidresultWindowStart
- the result window startresultWindowCount
- the result window countsuppressXmlSchema
- the suppress xml schemaException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic String getResultSchemaXML(String wuid) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wuid
- the wuidException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic List<List<Object>> getResultSchema(String wuid) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wuid
- the wuidException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic ECLWorkunitWrapper prepareSQL(String sqlText, String targetCluster, String targetQuerySet, Integer wait) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
sqlText
- the sql texttargetCluster
- the target clustertargetQuerySet
- the target query setwait
- the waitException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic ECLWorkunitWrapper executePreparedSQL(String wuid, String targetCluster, org.hpccsystems.ws.client.gen.axis2.wssql.v1_05.NamedValue[] variables, Integer wait, Integer resultLimit, String userName) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wuid
- the wuidtargetCluster
- the target clustervariables
- the variableswait
- the waitresultLimit
- the result limituserName
- the user nameException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic List<List<Object>> executePreparedSQL(String wuid, String targetCluster, org.hpccsystems.ws.client.gen.axis2.wssql.v1_05.NamedValue[] variables, Integer wait, Integer resultLimit, String userName, String somesing) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wuid
- the wuidtargetCluster
- the target clustervariables
- the variableswait
- the waitresultLimit
- the result limituserName
- the user namesomesing
- the somesingException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic ExecutePreparedSQLResponseWrapper executePreparedSQL(String wuid, String targetCluster, org.hpccsystems.ws.client.gen.axis2.wssql.v1_05.NamedValue[] variables, Integer wait, Integer resultLimit, Integer resultWindowStart, Integer resultWindowCount, String userName, Boolean suppressXmlSchema, Boolean suppressResults) throws Exception, ArrayOfEspExceptionWrapper, ArrayOfECLExceptionWrapper
wuid
- the wuidtargetCluster
- the target clustervariables
- the variableswait
- the waitresultLimit
- the result limitresultWindowStart
- the result window startresultWindowCount
- the result window countuserName
- the user namesuppressXmlSchema
- the suppress xml schemasuppressResults
- the suppress resultsException
- the exceptionArrayOfEspExceptionWrapper
- the array of esp exception wrapperArrayOfECLExceptionWrapper
- the array of ECL exception wrapperpublic org.apache.axis2.client.Stub getDefaultStub() throws org.apache.axis2.AxisFault
BaseHPCCWsClient
getDefaultStub
in class BaseHPCCWsClient
org.apache.axis2.AxisFault
- the axis faultCopyright © 2020. All rights reserved.