Package google.registry.backup
Class CommitLogImports
- java.lang.Object
-
- google.registry.backup.CommitLogImports
-
public final class CommitLogImports extends java.lang.Object
Helpers for reading CommitLog records from a file.This class is adapted from
RestoreCommitLogsAction
, and will be used in the initial population of the Cloud SQL database.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.collect.ImmutableList<VersionedEntity>
loadEntities(java.io.File commitLogFile)
Covenience method that adaptsloadEntities(InputStream)
to aFile
.static com.google.common.collect.ImmutableList<VersionedEntity>
loadEntities(java.nio.channels.ReadableByteChannel channel)
Covenience method that adaptsloadEntities(InputStream)
to aReadableByteChannel
.
-
-
-
Method Detail
-
loadEntities
public static com.google.common.collect.ImmutableList<VersionedEntity> loadEntities(java.io.File commitLogFile)
Covenience method that adaptsloadEntities(InputStream)
to aFile
.
-
loadEntities
public static com.google.common.collect.ImmutableList<VersionedEntity> loadEntities(java.nio.channels.ReadableByteChannel channel)
Covenience method that adaptsloadEntities(InputStream)
to aReadableByteChannel
.
-
-