Changeset 1148 for OAIHarvester
- Timestamp:
- 02/25/11 09:08:19 (13 years ago)
- Location:
- OAIHarvester/trunk/OAIHarvester/src/main/java/eu/clarin/cmdi/oai/harvester
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
OAIHarvester/trunk/OAIHarvester/src/main/java/eu/clarin/cmdi/oai/harvester/Harvester.java
r1140 r1148 17 17 throws HarvesterException; 18 18 19 public HarvestJob findJob( String id)19 public HarvestJob findJob(long id) 20 20 throws HarvesterException; 21 21 22 public HarvestJob cancelJob( String id)22 public HarvestJob cancelJob(long id) 23 23 throws HarvesterException; 24 24 -
OAIHarvester/trunk/OAIHarvester/src/main/java/eu/clarin/cmdi/oai/harvester/impl/AbstractHarvester.java
r1140 r1148 66 66 67 67 @Override 68 public final HarvestJob findJob(String id) throws HarvesterException { 69 if (id == null) { 70 throw new NullPointerException("id == null"); 71 } 68 public final HarvestJob findJob(long id) throws HarvesterException { 72 69 return doFindJob(id); 73 70 } 74 71 75 72 @Override 76 public final HarvestJob cancelJob(String id) throws HarvesterException { 77 if (id == null) { 78 throw new NullPointerException("id == null"); 79 } 73 public final HarvestJob cancelJob(long id) throws HarvesterException { 80 74 HarvestJob job = doFindJob(id); 81 75 if (job != null) { … … 104 98 abstract void doCancelJob(HarvestJobImpl job) throws HarvesterException; 105 99 106 protected abstract HarvestJob doFindJob( String id)100 protected abstract HarvestJob doFindJob(long id) 107 101 throws HarvesterException; 108 102 -
OAIHarvester/trunk/OAIHarvester/src/main/java/eu/clarin/cmdi/oai/harvester/impl/ParallelHarvester.java
r1140 r1148 108 108 109 109 @Override 110 protected HarvestJob doFindJob( String id) throws HarvesterException {110 protected HarvestJob doFindJob(long id) throws HarvesterException { 111 111 for (HarvestJobImpl job : queue) { 112 if (id .equals(job.getId())) {112 if (id == job.getId()) { 113 113 queue.remove(job); 114 114 return job; -
OAIHarvester/trunk/OAIHarvester/src/main/java/eu/clarin/cmdi/oai/harvester/impl/SimpleHarvester.java
r1143 r1148 70 70 71 71 @Override 72 protected HarvestJob doFindJob( String id) throws HarvesterException {72 protected HarvestJob doFindJob(long id) throws HarvesterException { 73 73 throw new HarvesterException("findJob() is not supported"); 74 74 }
Note: See TracChangeset
for help on using the changeset viewer.