public class DgraphUpdateFromFilesUtility extends EacElement
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir
Constructor and Description |
---|
DgraphUpdateFromFilesUtility(String appName,
String dgraphHost,
int dgraphPort,
File updateFile,
String certFile,
String jobId) |
Modifier and Type | Method and Description |
---|---|
String |
createMessageFromErrorStream(InputStream inputStream) |
String |
getJobId() |
URL |
getUrl() |
File |
getXmlFilesForUpdate() |
int |
sendRequest(InputStream data)
Sends a stream of xml data (wrapped in SOAP tags) to the
dgraph server.
|
void |
setJobId(String pJobId) |
void |
setUrl(URL pUrl) |
void |
setXmlFilesForUpdate(File pXmlFileForUpdate) |
int |
updateDGraph()
Iterates over each file and sends a request to the dgraph server for
updates
|
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public DgraphUpdateFromFilesUtility(String appName, String dgraphHost, int dgraphPort, File updateFile, String certFile, String jobId) throws AppConfigurationException
AppConfigurationException
public URL getUrl()
public void setUrl(URL pUrl)
public File getXmlFilesForUpdate()
public void setXmlFilesForUpdate(File pXmlFileForUpdate)
public String getJobId()
public void setJobId(String pJobId)
public int updateDGraph()
public int sendRequest(InputStream data) throws EacCommunicationException
data
- - inputStream of soap wrapped xml data to send to
the dgraph serverIOException
- - is thrown if there was a problem communicating
with the serverEacCommunicationException
public String createMessageFromErrorStream(InputStream inputStream)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.