This commit is contained in:
@@ -186,7 +186,7 @@ public final class SncpClient {
|
|||||||
if (method.getName().equals("init") || method.getName().equals("stop") || method.getName().equals("destroy")) continue;
|
if (method.getName().equals("init") || method.getName().equals("stop") || method.getName().equals("destroy")) continue;
|
||||||
}
|
}
|
||||||
//if (onlySncpDyn && method.getAnnotation(SncpDyn.class) == null) continue;
|
//if (onlySncpDyn && method.getAnnotation(SncpDyn.class) == null) continue;
|
||||||
|
|
||||||
DLong actionid = Sncp.hash(method);
|
DLong actionid = Sncp.hash(method);
|
||||||
Method old = actionids.get(actionid);
|
Method old = actionids.get(actionid);
|
||||||
if (old != null) {
|
if (old != null) {
|
||||||
@@ -288,7 +288,12 @@ public final class SncpClient {
|
|||||||
String targetTopic = action.topicTargetParamIndex >= 0 ? (String) params[action.topicTargetParamIndex] : this.topic;
|
String targetTopic = action.topicTargetParamIndex >= 0 ? (String) params[action.topicTargetParamIndex] : this.topic;
|
||||||
if (targetTopic == null) targetTopic = this.topic;
|
if (targetTopic == null) targetTopic = this.topic;
|
||||||
MessageRecord message = messageClient.createMessageRecord(targetTopic, null, reqbytes);
|
MessageRecord message = messageClient.createMessageRecord(targetTopic, null, reqbytes);
|
||||||
|
final String tt = targetTopic;
|
||||||
return messageClient.sendMessage(message).thenApply(msg -> {
|
return messageClient.sendMessage(message).thenApply(msg -> {
|
||||||
|
if (msg == null) {
|
||||||
|
logger.log(Level.SEVERE, action.method + " sncp mq(params: " + convert.convertTo(params) + ", message: " + message + ") deal error, this.topic = " + this.topic + ", targetTopic = " + tt + ", result = null");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
ByteBuffer buffer = ByteBuffer.wrap(msg.getContent());
|
ByteBuffer buffer = ByteBuffer.wrap(msg.getContent());
|
||||||
checkResult(seqid, action, buffer);
|
checkResult(seqid, action, buffer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user