public class HPCCWsFileIOClient extends BaseHPCCWsClient
| Modifier and Type | Field and Description |
|---|---|
static String |
FILEIOWSDLURI |
DEAFULTECLWATCHPORT, DEFAULTECLWATCHTLSPORT, initErrMessage, stub, targetESPInterfaceVer, targetHPCCBuildVersion, verbose, wsconn| Modifier | Constructor and Description |
|---|---|
protected |
HPCCWsFileIOClient(Connection baseConnection)
Instantiates a new HPCC ws file IO client.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
createHPCCFile(String fileName,
String targetLandingZone,
boolean overwritefile)
Creates the HPCC file.
|
static HPCCWsFileIOClient |
get(Connection connection)
Gets the.
|
static HPCCWsFileIOClient |
get(String protocol,
String targetHost,
String targetPort,
String user,
String pass)
Gets the.
|
static HPCCWsFileIOClient |
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.
|
String |
getServiceURI()
Gets the service URI.
|
static int |
getServiceWSDLPort()
Gets the service WSDL port.
|
static String |
getServiceWSDLURL()
Gets the service WSDLURL.
|
boolean |
ping()
Ping.
|
String |
readFileData(String dropzone,
String fileName,
long datasize,
long offset)
Read file data.
|
boolean |
writeHPCCFileData(byte[] data,
String fileName,
String targetLandingZone,
boolean append,
long offset,
int uploadchunksize)
Write HPCC file data.
|
compatibilityCheck, compatibilityCheck, equals, fastRefresh, fullRefresh, getConnectionURL, getInitError, getServiceVersion, getServiceVersion, getServiceWSDLPort, getServiceWSDLURL, getStubConnectionTO, getTargetESPInterfaceVersion, getVerbose, handleECLExceptions, handleECLExceptions, handleEspExceptions, handleEspExceptions, handleEspSoapFaults, handleEspSoapFaults, hashCode, hasInitError, isComplete, loadESPRuntimeInterfaceVer, setActiveConnectionInfo, setClientAuth, setStubConnectionTO, setStubOptions, setVerbose, verifyStubmonitoraddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic static final String FILEIOWSDLURI
protected HPCCWsFileIOClient(Connection baseConnection)
baseConnection - the base connectionpublic String getServiceURI()
getServiceURI in class BaseHPCCWsClientpublic static String getServiceWSDLURL()
public static int getServiceWSDLPort()
public org.apache.axis2.client.Stub getDefaultStub()
throws org.apache.axis2.AxisFault
BaseHPCCWsClientgetDefaultStub in class BaseHPCCWsClientorg.apache.axis2.AxisFault - the axis faultpublic static HPCCWsFileIOClient get(Connection connection)
connection - the connectionpublic static HPCCWsFileIOClient 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 HPCCWsFileIOClient 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 createHPCCFile(String fileName, String targetLandingZone, boolean overwritefile) throws Exception, ArrayOfEspExceptionWrapper
fileName - - The target HPCC file nametargetLandingZone - - The "netaddress" of the target landing, can be localhost, should be fetched from landingzones in filesprayclientoverwritefile - - If the file exists, should it be overwritten?Exception - - Caller should handle exception in case of errorsArrayOfEspExceptionWrapper - the array of esp exception wrapperpublic boolean writeHPCCFileData(byte[] data,
String fileName,
String targetLandingZone,
boolean append,
long offset,
int uploadchunksize)
throws Exception,
ArrayOfEspExceptionWrapper
data - - The data to writefileName - - The target HPCC file to write totargetLandingZone - - The "netaddress" of the target landing, can be localhost, should be fetched from landingzones in filesprayclientappend - - Should this data be appended?offset - - At what offset should this be written - Specify 0 if necessaryuploadchunksize - - Chunksize to upload the dataException - the exceptionArrayOfEspExceptionWrapper - the array of esp exception wrapperpublic String readFileData(String dropzone, String fileName, long datasize, long offset) throws Exception, ArrayOfEspExceptionWrapper
dropzone - the dropzonefileName - the file namedatasize - the datasizeoffset - the offsetException - the exceptionArrayOfEspExceptionWrapper - the array of esp exception wrapperCopyright © 2021. All rights reserved.