long insertTime = currentTimeMillis();
eventBus.post(new SoneInsertingEvent(sone));
FreenetURI finalUri = freenetInterface.insertDirectory(sone.getInsertUri(), insertInformation.generateManifestEntries(), "index.html");
- eventBus.post(new SoneInsertedEvent(sone, currentTimeMillis() - insertTime));
+ eventBus.post(new SoneInsertedEvent(sone, currentTimeMillis() - insertTime, insertInformation.getFingerprint()));
/* at this point we might already be stopped. */
if (shouldStop()) {
/* if so, bail out, don’t change anything. */
public class SoneInsertedEvent extends SoneEvent {
private final long insertDuration;
+ private final String insertFingerprint;
- public SoneInsertedEvent(Sone sone, long insertDuration) {
+ public SoneInsertedEvent(Sone sone, long insertDuration, String insertFingerprint) {
super(sone);
this.insertDuration = insertDuration;
+ this.insertFingerprint = insertFingerprint;
}
public long insertDuration() {
return insertDuration;
}
+ public String insertFingerprint() {
+ return insertFingerprint;
+ }
+
}