Changeset 1177
- Timestamp:
- 10/26/11 23:07:55 (20 months ago)
- Location:
- raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica
- Files:
-
- 3 edited
-
model/EntryMetadata.java (modified) (2 diffs)
-
server/RunServer.java (modified) (1 diff)
-
service/IcaProcess.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica/model/EntryMetadata.java
r816 r1177 17 17 * 18 18 */ 19 19 20 package uk.ac.cardiff.raptorica.model; 20 21 … … 24 25 import org.joda.time.DateTime; 25 26 26 27 27 /** 28 28 * @author philsmart 29 * 29 * 30 30 */ 31 public class EntryMetadata {31 public class EntryMetadata { 32 32 33 /* used if a persistant db primary key is required, only one entrymetadata 34 * so only id of one needed*/ 33 /** 34 * used if a persistant db primary key is required, only one entrymetadata so only id of one needed 35 */ 35 36 private Long persistantId; 36 37 37 /* pointer to the last recorded entry, for incremental update */38 /** pointer to the last recorded entry, for incremental update */ 38 39 private DateTime latestEntryTime; 39 40 40 /* record of the last entry that was sent over SOAP */41 /** record of the last entry that was sent over SOAP */ 41 42 private DateTime lastPublishedEntryTime; 42 43 43 /* stores the list of latest unique entries as their hash code (for easy persisting). That is, those with the latest and same 44 * DateTime, but different hashcode (attribute values). */ 44 /** 45 * stores the list of latest unique entries as their hash code (for easy persisting). That is, those with the latest 46 * and same DateTime, but different hashcode (attribute values). 47 */ 45 48 private List<Integer> latestEqualEntries; 46 49 47 public EntryMetadata() {48 latestEqualEntries = new ArrayList<Integer>();50 public EntryMetadata() { 51 latestEqualEntries = new ArrayList<Integer>(); 49 52 } 50 53 51 54 public void setLatestEntryTime(DateTime latestEntryTime) { 52 this.latestEntryTime = latestEntryTime;55 this.latestEntryTime = latestEntryTime; 53 56 } 54 57 55 58 public DateTime getLatestEntryTime() { 56 return latestEntryTime;59 return latestEntryTime; 57 60 } 58 61 59 62 public void setLastPublishedEntryTime(DateTime lastPublishedEntryTime) { 60 this.lastPublishedEntryTime = lastPublishedEntryTime;63 this.lastPublishedEntryTime = lastPublishedEntryTime; 61 64 } 62 65 63 66 public DateTime getLastPublishedEntryTime() { 64 return lastPublishedEntryTime;67 return lastPublishedEntryTime; 65 68 } 66 69 67 70 public void setPersistantId(Long persistantId) { 68 this.persistantId = persistantId;71 this.persistantId = persistantId; 69 72 } 70 73 71 74 public Long getPersistantId() { 72 return persistantId;75 return persistantId; 73 76 } 74 77 75 public String toString() {76 return "["+persistantId+":"+latestEntryTime+","+lastPublishedEntryTime+"]";78 public String toString() { 79 return "[" + persistantId + ":" + latestEntryTime + "," + lastPublishedEntryTime + "]"; 77 80 } 78 81 79 82 public void setLatestEqualEntries(List<Integer> latestEqualEntries) { 80 this.latestEqualEntries = latestEqualEntries;83 this.latestEqualEntries = latestEqualEntries; 81 84 } 82 85 83 86 public List<Integer> getLatestEqualEntries() { 84 return latestEqualEntries;87 return latestEqualEntries; 85 88 } 86 89 -
raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica/server/RunServer.java
r1032 r1177 46 46 * </ol> 47 47 * 48 * @param args 48 * @param args the program arguments 49 49 * @throws IOException 50 50 * @throws FileNotFoundException -
raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica/service/IcaProcess.java
r766 r1177 14 14 * limitations under the License. 15 15 */ 16 16 17 package uk.ac.cardiff.raptorica.service; 17 18 19 public interface IcaProcess { 18 20 19 public interface IcaProcess{ 21 /** 22 * Instructs this ICA to capture events from all registered data sources. 23 */ 24 public void capture(); 20 25 21 public void capture(); 22 23 public void release(); 26 /** 27 * Instructs this ICA to release events using the configured client. 28 */ 29 public void release(); 24 30 25 public void garbageCollect(); 31 /** 32 * Instructs this ICA to remove any events that have already been processed and sent through the configured client. 33 */ 34 public void garbageCollect(); 26 35 27 36 }
Note: See TracChangeset
for help on using the changeset viewer.
