Lines Matching defs:snapshot
44 * kept: snapshots and logs. At any instant, one snapshot is current.
46 * the current snapshot was taken. The current stable state is the
47 * value of the snapshot, as modified by the sequence of updates in
49 * the package to make a new snapshot and clear the log. A ReliableLog
53 * all. Making a new snapshot is also atomic. <p>
59 * calls log.snapshot to provide the current value of the data
61 * latest snapshot and the following sequences of updates; the client
62 * applies the updates to the snapshot to obtain the state that
95 private int version = 0; // current snapshot and log version
133 * snapshot method or if other IOException occurs.
158 snapshot(handler.initialSnapshot());
162 throw new IOException("initial snapshot failed with " +
189 * snapshot. This snapshot is recovered by calling the client
206 Object snapshot;
217 snapshot = handler.recover(in);
232 return recoverUpdates(snapshot);
357 * Records this value as the current snapshot by invoking the client
358 * supplied "snapshot" callback and then empties the log.
360 * @param value the object representing the new snapshot
362 * snapshot callback or if other I/O error has occurred during the
363 * snapshot process
365 public synchronized void snapshot(Object value)
376 handler.snapshot(out, value);
380 throw new IOException("snapshot failed", e);
411 * Returns the size of the snapshot file in bytes;
505 * Removes the snapshot file.
662 * Applies outstanding updates to the snapshot.
664 * @param state the most recent snapshot