Revision 45500
Added by Alessia Bardi about 7 years ago
SyncOAIStoreJobNode.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
@Override |
30 | 30 |
void completePrepareJob(final BlackboardJob job, final Token token) throws ResultSetException { |
31 |
|
|
32 | 31 |
final ResultSet<?> rs = token.getEnv().getAttribute(getEprParam(), ResultSet.class); |
33 |
log.error("Logging the sync epr as string before adding the progress provider:"); |
|
34 |
log.error(rs); |
|
35 |
log.error("Now calling rs.toJson(): \n "+rs.toJson()); |
|
36 |
|
|
37 | 32 |
token.setProgressProvider(new ResultsetProgressProvider(rs, this.resultSetClient)); |
38 | 33 |
|
39 | 34 |
job.setAction("SYNC"); |
... | ... | |
42 | 37 |
if(skipDuplicates) job.getParameters().put(OAIParameterNames.OAI_DUPLICATE_XPATH, duplicateXPath); |
43 | 38 |
job.getParameters().put(OAIParameterNames.OAI_SYNC_EPR, rs.toJson()); |
44 | 39 |
job.getParameters().put(OAIParameterNames.OAI_ALWAYS_NEW_RECORD, String.valueOf(alwaysNewRecord)); |
45 |
log.fatal("OAI Sync Job prepared"); |
|
46 |
|
|
47 | 40 |
} |
48 | 41 |
|
49 | 42 |
public String getEprParam() { |
Also available in: Unified diff
Removed logging