com.att.ajsc.common.TransactionTrail Maven / Gradle / Ivy
package com.att.ajsc.common;
import java.util.Set;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope(value = "request")
public class TransactionTrail {
private String trail = "";
private long totalTime = 0;
private long startTime = 0;
private long endTime = 0;
private Set inCompleteMethods = new java.util.HashSet();
private String transactionid = "";
public String getTrail() {
return trail;
}
public void setTrail(String trail) {
this.trail = trail;
}
public long getTotalTime() {
return totalTime;
}
public void setTotalTime(long totalTime) {
this.totalTime = totalTime;
}
public long getStartTime() {
return startTime;
}
public void setStartTime(long startTime) {
this.startTime = startTime;
}
public long getEndTime() {
return endTime;
}
public void setEndTime(long endTime) {
this.endTime = endTime;
}
public Set getInCompleteMethods() {
return inCompleteMethods;
}
public void setInCompleteMethods(Set inCompleteMethods) {
this.inCompleteMethods = inCompleteMethods;
}
public void addInCompleteMethod(String method) {
inCompleteMethods.add(method);
}
public String getTransactionid() {
return transactionid;
}
public void setTransactionid(String transactionid) {
if (transactionid != null) {
this.transactionid = transactionid;
}
}
@Override
public String toString() {
return "\n" + "Transaction Id=" + transactionid + "\n" + "Start Time=" + startTime + "\n" + "End Time="
+ endTime + "\n" + "Total Time=" + totalTime + " millis " + trail;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy