Revision 7805
Added by Jing Tao almost 11 years ago
IndexEvent.java | ||
---|---|---|
43 | 43 |
private Date date = null; |
44 | 44 |
private Identifier pid = null; |
45 | 45 |
private String description = null; |
46 |
private boolean isArchived = false; |
|
47 |
private long serialNumber; |
|
48 | 46 |
|
49 | 47 |
|
50 |
|
|
51 |
/** |
|
52 |
* Get the serial number of this event |
|
53 |
* @return |
|
54 |
*/ |
|
55 |
public long getSerialNumber() { |
|
56 |
return serialNumber; |
|
57 |
} |
|
48 |
|
|
58 | 49 |
|
59 | 50 |
/** |
60 |
* Set the serial number for this event |
|
61 |
* @param serialNumber |
|
62 |
*/ |
|
63 |
public void setSerialNumber(long serialNumber) { |
|
64 |
this.serialNumber = serialNumber; |
|
65 |
} |
|
66 |
|
|
67 |
/** |
|
68 | 51 |
* Get the type of the event. |
69 | 52 |
* @return the type of the event |
70 | 53 |
*/ |
... | ... | |
128 | 111 |
this.description = description; |
129 | 112 |
} |
130 | 113 |
|
131 |
/** |
|
132 |
* If the event has been archived. |
|
133 |
* @return true if it has been archived; otherwise false. |
|
134 |
*/ |
|
135 |
public boolean isArchived() { |
|
136 |
return isArchived; |
|
137 |
} |
|
138 |
|
|
139 |
/** |
|
140 |
* Set the event to be archived |
|
141 |
* @param isArchived |
|
142 |
*/ |
|
143 |
public void setArchived(boolean isArchived) { |
|
144 |
this.isArchived = isArchived; |
|
145 |
} |
|
114 |
|
|
146 | 115 |
} |
Also available in: Unified diff
Add set and get the lastprocessedDate in the IndexEventLog.
Remove the code to write the successful event.