Source Code Cross Referenced for TracesMessage.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » tools » tracesviewer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » tools.tracesviewer 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package tools.tracesviewer;
002:
003:        import java.io.*;
004:
005:        public class TracesMessage implements  Serializable {
006:
007:            String messageFrom = null;
008:            String messageTo = null;
009:            String messageTime = null;
010:            String messageTimeStamp = null;
011:            String messageString = null;
012:            String messageFirstLine = null;
013:            String messageStatusInfo = null;
014:            String messageTransactionId = null;
015:            String debugLine = null;
016:
017:            String beforeDebug;
018:            String afterDebug;
019:
020:            public TracesMessage() {
021:            }
022:
023:            public TracesMessage(String messageFrom, String messageTo,
024:                    String messageTime, String messageFirstLine,
025:                    String messageString, String messageStatusInfo,
026:                    String messageTransactionId, String messageTimeStamp,
027:                    String debugLine) {
028:                this .messageFrom = messageFrom;
029:                this .messageTo = messageTo;
030:                this .messageTime = messageTime;
031:                this .messageString = messageString;
032:                this .messageFirstLine = messageFirstLine;
033:                this .messageStatusInfo = messageStatusInfo;
034:                this .messageTransactionId = messageTransactionId;
035:                this .messageTimeStamp = messageTimeStamp;
036:                this .debugLine = debugLine;
037:            }
038:
039:            private String getKey() {
040:                if (messageTimeStamp != null) {
041:                    return messageFirstLine + messageTransactionId + ":"
042:                            + messageTimeStamp;
043:                } else {
044:                    // Generate a random time stamp
045:                    return messageFirstLine + messageTransactionId + ":"
046:                            + (int) (Math.random() * 1000);
047:                }
048:            }
049:
050:            /**
051:             * To check for insertion into the hash table.
052:             * 
053:             */
054:            public int hashCode() {
055:                return getKey().hashCode();
056:            }
057:
058:            public void setFrom(String from) {
059:                messageFrom = from;
060:            }
061:
062:            public void setTo(String to) {
063:                messageTo = to;
064:            }
065:
066:            public void setTime(String time) {
067:                messageTime = time;
068:            }
069:
070:            public void setMessageString(String str) {
071:                messageString = str;
072:            }
073:
074:            public void setFirstLine(String FirstLine) {
075:                messageFirstLine = FirstLine;
076:            }
077:
078:            public void setStatusInfo(String statusInfo) {
079:                messageStatusInfo = statusInfo;
080:            }
081:
082:            public void setTransactionId(String transactionId) {
083:                messageTransactionId = transactionId;
084:            }
085:
086:            public String getFrom() {
087:                return messageFrom;
088:            }
089:
090:            public String getTo() {
091:                return messageTo;
092:            }
093:
094:            public String getTime() {
095:                return messageTime;
096:            }
097:
098:            public String getMessageString() {
099:                //System.out.println("messageContent:"+messageString);
100:                return messageString;
101:                //+ 
102:                //"\n-------------------\n"      +
103:                //"|debugLogLine = " + debugLine +" |"  +
104:                //"\n-------------------";
105:            }
106:
107:            public String getFirstLine() {
108:                return messageFirstLine;
109:            }
110:
111:            public String getStatusInfo() {
112:                return messageStatusInfo;
113:            }
114:
115:            public String getTransactionId() {
116:                return messageTransactionId;
117:            }
118:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.