瀏覽代碼

添加业务日志逻辑

Airhead 8 年之前
父節點
當前提交
3fc202c674

+ 1 - 1
hos-broker/src/main/java/com/yihu/hos/router/BrokerServerRouter.java

@ -1,4 +1,4 @@
package com.yihu.hos.router;
package com.yihu.hos.camelrouter;
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

+ 1 - 1
hos-broker/src/main/java/com/yihu/hos/router/BusinessLogRouter.java

@ -1,4 +1,4 @@
package com.yihu.hos.router;
package com.yihu.hos.camelrouter;
import com.yihu.hos.configuration.ActivemqConfiguration;
import org.apache.activemq.ActiveMQConnectionFactory;

+ 24 - 0
hos-broker/src/main/java/com/yihu/hos/models/BusinessLog.java

@ -0,0 +1,24 @@
package com.yihu.hos.models;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;
/**
 * @created Airhead 2016/8/8.
 */
@Document(collection = "businessLog")
public class BusinessLog {
    @Id
    private String id;
    private String transtionId;
    private String parentSpanId;
    @Indexed(name = "spanId_1", unique = true)
    private String spanId;
    private String from;
    private String to;
    private String content;
    private Date time;
}