Changeset 1177


Ignore:
Timestamp:
10/26/11 23:07:55 (20 months ago)
Author:
philsmart
Message:
 
Location:
raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica/model/EntryMetadata.java

    r816 r1177  
    1717 * 
    1818 */ 
     19 
    1920package uk.ac.cardiff.raptorica.model; 
    2021 
     
    2425import org.joda.time.DateTime; 
    2526 
    26  
    2727/** 
    2828 * @author philsmart 
    29  * 
     29 *  
    3030 */ 
    31 public class EntryMetadata{ 
     31public class EntryMetadata { 
    3232 
    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     */ 
    3536    private Long persistantId; 
    3637 
    37     /* pointer to the last recorded entry, for incremental update */ 
     38    /** pointer to the last recorded entry, for incremental update */ 
    3839    private DateTime latestEntryTime; 
    3940 
    40     /* record of the last entry that was sent over SOAP */ 
     41    /** record of the last entry that was sent over SOAP */ 
    4142    private DateTime lastPublishedEntryTime; 
    4243 
    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     */ 
    4548    private List<Integer> latestEqualEntries; 
    4649 
    47     public EntryMetadata(){ 
    48         latestEqualEntries = new ArrayList<Integer>(); 
     50    public EntryMetadata() { 
     51        latestEqualEntries = new ArrayList<Integer>(); 
    4952    } 
    5053 
    5154    public void setLatestEntryTime(DateTime latestEntryTime) { 
    52         this.latestEntryTime = latestEntryTime; 
     55        this.latestEntryTime = latestEntryTime; 
    5356    } 
    5457 
    5558    public DateTime getLatestEntryTime() { 
    56         return latestEntryTime; 
     59        return latestEntryTime; 
    5760    } 
    5861 
    5962    public void setLastPublishedEntryTime(DateTime lastPublishedEntryTime) { 
    60         this.lastPublishedEntryTime = lastPublishedEntryTime; 
     63        this.lastPublishedEntryTime = lastPublishedEntryTime; 
    6164    } 
    6265 
    6366    public DateTime getLastPublishedEntryTime() { 
    64         return lastPublishedEntryTime; 
     67        return lastPublishedEntryTime; 
    6568    } 
    6669 
    6770    public void setPersistantId(Long persistantId) { 
    68         this.persistantId = persistantId; 
     71        this.persistantId = persistantId; 
    6972    } 
    7073 
    7174    public Long getPersistantId() { 
    72         return persistantId; 
     75        return persistantId; 
    7376    } 
    7477 
    75     public String toString(){ 
    76         return "["+persistantId+":"+latestEntryTime+","+lastPublishedEntryTime+"]"; 
     78    public String toString() { 
     79        return "[" + persistantId + ":" + latestEntryTime + "," + lastPublishedEntryTime + "]"; 
    7780    } 
    7881 
    7982    public void setLatestEqualEntries(List<Integer> latestEqualEntries) { 
    80         this.latestEqualEntries = latestEqualEntries; 
     83        this.latestEqualEntries = latestEqualEntries; 
    8184    } 
    8285 
    8386    public List<Integer> getLatestEqualEntries() { 
    84         return latestEqualEntries; 
     87        return latestEqualEntries; 
    8588    } 
    8689 
  • raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica/server/RunServer.java

    r1032 r1177  
    4646     * </ol> 
    4747     *  
    48      * @param args 
     48     * @param args the program arguments 
    4949     * @throws IOException 
    5050     * @throws FileNotFoundException 
  • raptor-ica/trunk/src/main/java/uk/ac/cardiff/raptorica/service/IcaProcess.java

    r766 r1177  
    1414 * limitations under the License. 
    1515 */ 
     16 
    1617package uk.ac.cardiff.raptorica.service; 
    1718 
     19public interface IcaProcess { 
    1820 
    19 public interface IcaProcess{ 
     21    /** 
     22     * Instructs this ICA to capture events from all registered data sources. 
     23     */ 
     24    public void capture(); 
    2025 
    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(); 
    2430 
    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(); 
    2635 
    2736} 
Note: See TracChangeset for help on using the changeset viewer.