01: package org.concern;
02:
03: /**
04: * @author hengels
05: * @version $Revision$
06: */
07: public class Message {
08: String name;
09: String fromProcess;
10: String fromSubject;
11: long timestamp;
12:
13: public Message() {
14: }
15:
16: public Message(String name, String fromProcess, String fromSubject) {
17: this .name = name;
18: this .fromProcess = fromProcess;
19: this .fromSubject = fromSubject;
20: this .timestamp = System.currentTimeMillis();
21: }
22:
23: public String getName() {
24: return name;
25: }
26:
27: public void setName(String name) {
28: this .name = name;
29: }
30:
31: public String getFromProcess() {
32: return fromProcess;
33: }
34:
35: public void setFromProcess(String fromProcess) {
36: this .fromProcess = fromProcess;
37: }
38:
39: public String getFromSubject() {
40: return fromSubject;
41: }
42:
43: public void setFromSubject(String fromSubject) {
44: this .fromSubject = fromSubject;
45: }
46:
47: public long getTimestamp() {
48: return timestamp;
49: }
50:
51: public void setTimestamp(long timestamp) {
52: this .timestamp = timestamp;
53: }
54:
55: public String toString() {
56: return "[" + fromProcess + ":" + fromSubject + "] " + name;
57: }
58: }
|