Class DefaultSLDRegSenderService
java.lang.Object
de.hybris.datasupplier.services.impl.DefaultSLDRegSenderService
- All Implemented Interfaces:
DSSenderService
An implementation of the
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-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateTempFileWithPayload(String payload) Creates the temp file with payload.protected StringgetAndCheckThePath(String paramKey) Gets the and check the path.protected voidremovePayloadFile(String path) Removes the payload file.booleanSends payload to the SLD system
-
Field Details
-
SLD_REG_EXE_PATH
The Constant SLD_REG_EXE_PATH.- See Also:
-
SLD_REG_CONFIG_PATH
The Constant SLD_REG_CONFIG_PATH.- See Also:
-
SLD_SEND_SUCCESSFUL_MSG
The Constant SLD_SEND_SUCCESSFUL_MSG.- See Also:
-
-
Constructor Details
-
DefaultSLDRegSenderService
public DefaultSLDRegSenderService()
-
-
Method Details
-
send
Description copied from interface:DSSenderServiceSends payload to the SLD system- Specified by:
sendin interfaceDSSenderService- Parameters:
payload- is send to SLD- Returns:
- the status of send process
- Throws:
DSSenderException- is SLD command parameter hansn't been find
-
removePayloadFile
Removes the payload file.- Parameters:
path- the path
-
createTempFileWithPayload
Creates the temp file with payload.- Parameters:
payload- the payload- Returns:
- the string
- Throws:
DSSenderException- the DS sender exception
-
getAndCheckThePath
Gets the and check the path.- Parameters:
paramKey- the param key- Returns:
- the and check the path
- Throws:
DSSenderException- the DS sender exception
-