public class DefaultSLDRegSenderService extends java.lang.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 java.lang.String |
SLD_REG_CONFIG_PATH
The Constant SLD_REG_CONFIG_PATH.
|
static java.lang.String |
SLD_REG_EXE_PATH
The Constant SLD_REG_EXE_PATH.
|
static java.lang.String |
SLD_SEND_SUCCESSFUL_MSG
The Constant SLD_SEND_SUCCESSFUL_MSG.
|
| Constructor and Description |
|---|
DefaultSLDRegSenderService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createTempFileWithPayload(java.lang.String payload)
Creates the temp file with payload.
|
protected java.lang.String |
getAndCheckThePath(java.lang.String paramKey)
Gets the and check the path.
|
protected void |
removePayloadFile(java.lang.String path)
Removes the payload file.
|
boolean |
send(java.lang.String payload)
Sends payload to the SLD system
|
public static final java.lang.String SLD_REG_EXE_PATH
public static final java.lang.String SLD_REG_CONFIG_PATH
public static final java.lang.String SLD_SEND_SUCCESSFUL_MSG
public boolean send(java.lang.String payload)
throws DSSenderException
DSSenderServicesend in interface DSSenderServicepayload - is send to SLDDSSenderException - is SLD command parameter hansn't been findprotected void removePayloadFile(java.lang.String path)
path - the pathprotected java.lang.String createTempFileWithPayload(java.lang.String payload)
throws DSSenderException
payload - the payloadDSSenderException - the DS sender exceptionprotected java.lang.String getAndCheckThePath(java.lang.String paramKey)
throws DSSenderException
paramKey - the param keyDSSenderException - the DS sender exceptionCopyright © 2018 SAP SE. All Rights Reserved.