@ -763,8 +763,8 @@ public class DefaultTransportService implements TransportService {
wrappedCallback ) ;
wrappedCallback ) ;
}
}
protected void sendToRuleEngine ( TenantId tenantId , TbMsg tbMsg , TbQueueCallback callback ) {
private void sendToRuleEngine ( TenantId tenantId , TbMsg tbMsg , TbQueueCallback callback ) {
TopicPartitionInfo tpi = partitionService . resolve ( ServiceType . TB_RULE_ENGINE , tenantId , tbMsg . getOriginator ( ) ) ;
TopicPartitionInfo tpi = partitionService . resolve ( ServiceType . TB_RULE_ENGINE , tbMsg . getQueueName ( ) , t enantId , tbMsg . getOriginator ( ) ) ;
if ( log . isTraceEnabled ( ) ) {
if ( log . isTraceEnabled ( ) ) {
log . trace ( "[{}][{}] Pushing to topic {} message {}" , tenantId , tbMsg . getOriginator ( ) , tpi . getFullTopicName ( ) , tbMsg ) ;
log . trace ( "[{}][{}] Pushing to topic {} message {}" , tenantId , tbMsg . getOriginator ( ) , tpi . getFullTopicName ( ) , tbMsg ) ;
}
}
@ -776,7 +776,7 @@ public class DefaultTransportService implements TransportService {
ruleEngineMsgProducer . send ( tpi , new TbProtoQueueMsg < > ( tbMsg . getId ( ) , msg ) , wrappedCallback ) ;
ruleEngineMsgProducer . send ( tpi , new TbProtoQueueMsg < > ( tbMsg . getId ( ) , msg ) , wrappedCallback ) ;
}
}
protected void sendToRuleEngine ( TenantId tenantId , DeviceId deviceId , TransportProtos . SessionInfoProto sessionInfo , JsonObject json ,
private void sendToRuleEngine ( TenantId tenantId , DeviceId deviceId , TransportProtos . SessionInfoProto sessionInfo , JsonObject json ,
TbMsgMetaData metaData , SessionMsgType sessionMsgType , TbQueueCallback callback ) {
TbMsgMetaData metaData , SessionMsgType sessionMsgType , TbQueueCallback callback ) {
DeviceProfileId deviceProfileId = new DeviceProfileId ( new UUID ( sessionInfo . getDeviceProfileIdMSB ( ) , sessionInfo . getDeviceProfileIdLSB ( ) ) ) ;
DeviceProfileId deviceProfileId = new DeviceProfileId ( new UUID ( sessionInfo . getDeviceProfileIdMSB ( ) , sessionInfo . getDeviceProfileIdLSB ( ) ) ) ;
DeviceProfile deviceProfile = deviceProfileCache . get ( deviceProfileId ) ;
DeviceProfile deviceProfile = deviceProfileCache . get ( deviceProfileId ) ;