public abstract class DataFlowServiceBase extends Object implements ServicesIntf
| Modifier and Type | Field and Description |
|---|---|
protected static Boolean |
BOOLEAN_FALSE |
protected static Boolean |
BOOLEAN_TRUE |
protected String |
databasePoolName |
protected EngineIntf |
engine |
protected MessageIntf |
message |
protected List<Map<String,Object>> |
paramList |
protected ServicesIntf |
workerService |
LOG_PARAM_LOGFIELDS, LOG_PARAM_LOGMESSAGE, LOG_PARAM_LOGTYPE, LOG_TYPE_DEBUG, LOG_TYPE_ERROR, LOG_TYPE_INFO, LOG_TYPE_SYSTEM_OUT, LOG_TYPE_WARN| Constructor and Description |
|---|
DataFlowServiceBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract ServicesIntf |
cloneService() |
String |
convertTemplate(MessageIntf aMsg,
String aTemplateParam,
String aTemplateFieldParm) |
String |
convertTemplateMessage(MessageIntf aMsg,
String aTemplate,
List<String> aFields) |
Object |
getFieldDataFromMsg(MessageIntf aMsg,
String aFieldKey) |
MessageIntf |
getMessage() |
String |
getServiceDisplayName() |
String |
getServiceName() |
void |
init(EngineIntf anEngine,
ServicesIntf aWorkerService,
MessageIntf aMessage) |
void |
resetService() |
abstract MessageIntf |
runService() |
void |
runServicePost() |
void |
runServicePre() |
void |
setFunctionParams(List<Map<String,Object>> aParamList,
String aDatabasePoolName) |
void |
setMessage(MessageIntf aMsg) |
void |
setServiceDisplayName(String aName) |
void |
setServiceName(String aName) |
void |
shutdown() |
protected static final Boolean BOOLEAN_FALSE
protected static final Boolean BOOLEAN_TRUE
protected EngineIntf engine
protected ServicesIntf workerService
protected MessageIntf message
protected String databasePoolName
public String getServiceName()
getServiceName in interface ServicesIntfpublic void setServiceName(String aName)
setServiceName in interface ServicesIntfpublic String getServiceDisplayName()
getServiceDisplayName in interface ServicesIntfpublic void setServiceDisplayName(String aName)
setServiceDisplayName in interface ServicesIntfpublic void setFunctionParams(List<Map<String,Object>> aParamList, String aDatabasePoolName) throws Exception
setFunctionParams in interface ServicesIntfExceptionpublic void init(EngineIntf anEngine, ServicesIntf aWorkerService, MessageIntf aMessage) throws Exception
init in interface ServicesIntfExceptionpublic MessageIntf getMessage()
getMessage in interface ServicesIntfpublic void setMessage(MessageIntf aMsg)
public void runServicePre()
throws Exception
runServicePre in interface ServicesIntfExceptionpublic abstract MessageIntf runService()
runService in interface ServicesIntfpublic void runServicePost()
throws Exception
runServicePost in interface ServicesIntfExceptionpublic abstract ServicesIntf cloneService() throws Exception
cloneService in interface ServicesIntfExceptionpublic Object getFieldDataFromMsg(MessageIntf aMsg, String aFieldKey) throws Exception
getFieldDataFromMsg in interface ServicesIntfExceptionpublic String convertTemplateMessage(MessageIntf aMsg, String aTemplate, List<String> aFields)
convertTemplateMessage in interface ServicesIntfpublic void resetService()
throws Exception
resetService in interface ServicesIntfExceptionpublic String convertTemplate(MessageIntf aMsg, String aTemplateParam, String aTemplateFieldParm)
public void shutdown()
shutdown in interface ServicesIntfCopyright © 2020. All rights reserved.