Hi, Sorry for the late reply, we had dragon-boat festival vacation last week.
On Sat, Jun 8, 2019 at 10:32 AM Daniela Morais <[email protected]> wrote: > > Hi, > > Today I did: > * The task of merging dubbo-rpc-jms (#3765) overlapped with collecting > metrics > > Questions: > 1) Is there any doc that can help me with dubbo-rpc-jms? I fix the > conflicts (such as replace RpcResult with AppResponse) but I'm trying to > fix the unit tests: > > java.lang.IllegalStateException: Failed to create adaptive instance: > java.lang.IllegalStateException: Can't create adaptive extension interface > org.apache.dubbo.rpc.protocol.jms.implementor.JmsImplementor, cause: No > adaptive method exist on extension > org.apache.dubbo.rpc.protocol.jms.implementor.JmsImplementor, refuse to > create the adaptive class! > at > org.apache.dubbo.rpc.protocol.jms.JmsProtocolTest.testTimeOut(JmsProtocolTest.java:58). You may need @Adaptive annotation on the org.apache.dubbo.rpc.protocol.jms.implementor.JmsImplementor#getQueueConnectionFactory method. Check http://dubbo.apache.org/en-us/blog/introduction-to-dubbo-spi.html for more details. > > 2) I need to add a CpuUsageGaugeSet on Result's attachments (attachments > is a Result.java attribute and is a Map<String, String>). What is the best > way to achieve this? I tried adding as a JSON: > CpuUsageGaugeSet cpuUsage = gson.fromJson(json, CpuUsageGaugeSet.class) > throws: > > "Unable to invoke no-args constructor for interface > com.alibaba.metrics.Metric. Registering an InstanceCreator with Gson for > this type may fix this problem." You can attach the cpu.user if it is the only value you are interested. > > Thanks, > > -- > Daniela Morais > Computer Science student at the University Of Campinas > danielammorais.com <https://www.danielammorais.com> -- Best Regards! Huxing
