| | |
| | | @Slf4j |
| | | public class MethodName { |
| | | public void a(String name){ |
| | | log.info("str={}", name); |
| | | log.info("str={},响应方法:{}", name,"A"); |
| | | } |
| | | public void b(String name,String value){ |
| | | log.info("item={}, value={},{}", name, value,"BBBBBB"); |
| | | public void b(String name){ |
| | | log.info("str={},响应方法:{}", name,"B"); |
| | | } |
| | | public void c(String name,String value){ |
| | | log.info("item={}, value={},{}", name, value,"CCCCCC"); |
| | | } |
| | | public void c(String name){ |
| | | log.info("str={},响应方法:{}", name,"C"); |
| | | } |
| | | } |
| | |
| | | |
| | | @Autowired |
| | | private OpcuaConfController opcuaConfController; |
| | | List<OpcuaConfResult> a = null; |
| | | |
| | | |
| | | /** |
| | | * |
| | |
| | | */ |
| | | |
| | | public void handle(NodeId id, Variant value){ |
| | | long startTime = System.currentTimeMillis(); |
| | | |
| | | OpcuaConfParam opcuaConfParam=new OpcuaConfParam(); |
| | | opcuaConfParam.setNode(id.getIdentifier().toString()); |
| | | if(a == null || a.size() == 0) { |
| | | a=opcuaConfController.mylist(opcuaConfParam); |
| | | } |
| | | List<OpcuaConfResult> a=opcuaConfController.mylist(opcuaConfParam); |
| | | |
| | | String str1 = id.getIdentifier().toString()+":"+value.getValue().toString(); |
| | | try { |
| | | Class<?> clazz = Class.forName(a.get(0).getRModule()); |
| | |
| | | InvocationTargetException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | log.info("代码执行时间:" + (System.currentTimeMillis() - startTime) + "毫秒"); |
| | | } |
| | | |
| | | /** |