1 18 19 package sync4j.framework.server; 20 21 import org.apache.commons.lang.builder.ToStringBuilder; 22 23 24 32 public class SyncTimestamp { 33 34 36 public long start = -1 ; public long end = -1 ; public String tagServer = null; public String tagClient = null; 41 43 44 public SyncTimestamp() { } 45 46 53 public SyncTimestamp(final long start) { 54 this(String.valueOf(start), String.valueOf(start), start, -1); 55 } 56 57 68 public SyncTimestamp(final String tagServer, 69 final String tagClient, 70 final long start , 71 final long end ) { 72 this.tagServer = tagServer; 73 this.tagClient = tagClient; 74 this.start = start ; 75 this.end = end ; 76 } 77 78 80 public String toString() { 81 ToStringBuilder sb = new ToStringBuilder(this); 82 83 sb.append("tagServer", tagServer). 84 append("tagClient", tagClient). 85 append("start" , new java.sql.Timestamp (start)). 86 append("end" , new java.sql.Timestamp (end)); 87 return sb.toString(); 88 } 89 } 90 | Popular Tags |