public abstract class ServiceBase extends Object implements ServicesIntf
| Modifier and Type | Field and Description |
|---|---|
protected static Boolean |
BOOLEAN_FALSE |
protected String |
databasePoolName |
protected List<Map<String,Object>> |
paramList |
protected static String |
sepChar |
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 |
|---|
ServiceBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract ServicesIntf |
cloneService() |
int |
getDefError() |
MessageIntf |
getMessage() |
String |
getServiceDisplayName() |
String |
getServiceName() |
void |
init(EngineIntf anEngine,
MessageIntf aMessage)
Used to initialize the object and to pass in all parameters need to
run function.
|
void |
resetService() |
abstract MessageIntf |
runService() |
void |
runServicePost() |
void |
runServicePre() |
void |
setFunctionParams(List<Map<String,Object>> aParamList,
String aDatabasePoolName)
Used to set the current parameters associated with this function.
|
void |
setServiceDisplayName(String aName) |
void |
setServiceName(String aName) |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertTemplateMessage, getFieldDataFromMsg, initprotected static final Boolean BOOLEAN_FALSE
protected static final String sepChar
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, MessageIntf aMessage) throws Exception
anEngine - engineaMessage - msgException - expublic MessageIntf getMessage()
getMessage in interface ServicesIntfpublic 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 void resetService()
throws Exception
resetService in interface ServicesIntfExceptionpublic void shutdown()
shutdown in interface ServicesIntfpublic int getDefError()
Copyright © 2020. All rights reserved.