| | |
| | | import com.java110.core.event.cmd.ServiceCmdEventPublishing; |
| | | import com.java110.core.factory.DataFlowFactory; |
| | | import com.java110.core.smo.ISaveTransactionLogSMO; |
| | | import com.java110.core.trace.Java110TraceLog; |
| | | import com.java110.entity.center.DataFlowLinksCost; |
| | | import com.java110.service.smo.ICmdServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | |
| | | * @throws SMOException |
| | | */ |
| | | @Override |
| | | @Java110TraceLog |
| | | public ResponseEntity<String> cmd(String reqJson, Map<String, String> headers) throws Exception { |
| | | |
| | | ICmdDataFlowContext cmdDataFlowContext = null; |
| | |
| | | * @param cmdDataFlowContext |
| | | * @throws BusinessException |
| | | */ |
| | | private void invokeBusinessSystem(ICmdDataFlowContext cmdDataFlowContext) throws BusinessException { |
| | | private void invokeBusinessSystem(ICmdDataFlowContext cmdDataFlowContext) throws Exception { |
| | | ServiceCmdEventPublishing.multicastEvent(cmdDataFlowContext); |
| | | } |
| | | |
| | |
| | | private void saveLogMessage(String requestJson, String responseJson) { |
| | | |
| | | try { |
| | | if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.KEY_LOG_ON_OFF))) { |
| | | if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.DOMAIN_SYSTEM_SWITCH,MappingConstant.KEY_LOG_ON_OFF))) { |
| | | JSONObject log = new JSONObject(); |
| | | log.put("request", requestJson); |
| | | log.put("response", responseJson); |
| | |
| | | */ |
| | | private void saveCostTimeLogMessage(DataFlow cmdDataFlowContext) { |
| | | try { |
| | | if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.KEY_COST_TIME_ON_OFF))) { |
| | | if (MappingConstant.VALUE_ON.equals(MappingCache.getValue(MappingConstant.DOMAIN_SYSTEM_SWITCH,MappingConstant.KEY_COST_TIME_ON_OFF))) { |
| | | List<DataFlowLinksCost> cmdDataFlowContextLinksCosts = cmdDataFlowContext.getLinksCostDates(); |
| | | JSONObject costDate = new JSONObject(); |
| | | JSONArray costDates = new JSONArray(); |