public class DefaultSLDRegSenderService extends Object implements DSSenderService
DSSenderService which uses sldReg(part of SAP Agent Host) to deliver data to the
SLD. It requires the some properties to be configured in the system:
Command which runs sldreg
datasupplier.sldreg.exe.cmd=C:/Program Files/SAP/hostctrl/exe/sldreg.exe On linux it may be following
datasupplier.reg.exe.cmd=/usr/sap/hostctrl/exe/sldreg
Path to the sldreg configuration file. sldreg doesn't cope with white spaces in the path. So please make sure that
the path to config file doesn't contain such.
datasupplier.sldreg.config.path=C:/sldreg/sldtest.cfg On linux it may be following
datasupplier.reg.config.path=/usr/sap/hostctrl/exe/sldtest.cfg
Message returned by sldreg when the payload delivery has succeed
datasupplier.sldreg.msg.success=Data send status: true| Modifier and Type | Field and Description |
|---|---|
static String |
SLD_REG_CONFIG_PATH
The Constant SLD_REG_CONFIG_PATH.
|
static String |
SLD_REG_EXE_PATH
The Constant SLD_REG_EXE_PATH.
|
static String |
SLD_SEND_SUCCESSFUL_MSG
The Constant SLD_SEND_SUCCESSFUL_MSG.
|
| Constructor and Description |
|---|
DefaultSLDRegSenderService() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createTempFileWithPayload(String payload)
Creates the temp file with payload.
|
protected String |
getAndCheckThePath(String paramKey)
Gets the and check the path.
|
protected void |
removePayloadFile(String path)
Removes the payload file.
|
boolean |
send(String payload)
Sends payload to the SLD system
|
public static final String SLD_REG_EXE_PATH
public static final String SLD_REG_CONFIG_PATH
public static final String SLD_SEND_SUCCESSFUL_MSG
public boolean send(String payload) throws DSSenderException
DSSenderServicesend in interface DSSenderServiceDSSenderExceptionprotected void removePayloadFile(String path)
path - the pathprotected String createTempFileWithPayload(String payload) throws DSSenderException
payload - the payloadDSSenderException - the DS sender exceptionprotected String getAndCheckThePath(String paramKey) throws DSSenderException
paramKey - the param keyDSSenderException - the DS sender exceptionCopyright © 2017 SAP SE. All Rights Reserved.