Skip to content

Commit

Permalink
separate package for backup API
Browse files Browse the repository at this point in the history
  • Loading branch information
penemue committed Jun 10, 2016
1 parent 39a49d8 commit 2a022d1
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package jetbrains.exodus.util;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.Backupable;
import jetbrains.exodus.ExodusException;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.backup.Backupable;
import org.apache.commons.compress.archivers.ArchiveOutputStream;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.entitystore;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.log.LogUtil;
import org.jetbrains.annotations.NotNull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package jetbrains.exodus.entitystore;

import jetbrains.exodus.*;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.bindings.*;
import jetbrains.exodus.core.dataStructures.ConcurrentObjectCache;
import jetbrains.exodus.core.dataStructures.Pair;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.entitystore;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.bindings.IntegerBinding;
import jetbrains.exodus.bindings.LongBinding;
import jetbrains.exodus.core.dataStructures.hash.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
*/
package jetbrains.exodus.entitystore;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.Backupable;
import jetbrains.exodus.TestUtil;
import jetbrains.exodus.backup.BackupBean;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.backup.Backupable;
import jetbrains.exodus.core.execution.Job;
import jetbrains.exodus.core.execution.JobProcessor;
import jetbrains.exodus.core.execution.JobProcessorExceptionHandler;
import jetbrains.exodus.core.execution.ThreadJobProcessor;
import jetbrains.exodus.util.BackupBean;
import jetbrains.exodus.util.CompressBackupUtil;
import jetbrains.exodus.util.IOUtil;
import jetbrains.exodus.util.Random;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.entitystore;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.backup.BackupStrategy;
import org.junit.Assert;

import java.io.ByteArrayInputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.env;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.log.LogUtil;
import jetbrains.exodus.util.IOUtil;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package jetbrains.exodus.env;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.ConfigSettingChangeListener;
import jetbrains.exodus.ExodusException;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.core.dataStructures.ConcurrentLongObjectCache;
import jetbrains.exodus.core.dataStructures.LongObjectCacheBase;
import jetbrains.exodus.core.dataStructures.ObjectCacheBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public int getOffset() {
}

@SuppressWarnings({"NonConstantFieldWithUpperCaseName"})
private static final class EmptyIterable extends ArrayByteIterable {
public static final class EmptyIterable extends ArrayByteIterable {

public final Iterator ITERATOR = new Iterator(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jetbrains.exodus.util;
package jetbrains.exodus.backup;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.Backupable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jetbrains.exodus;
package jetbrains.exodus.backup;

import org.jetbrains.annotations.NotNull;

import java.io.File;
import java.util.Collections;

/**
* Describes how a backup file should be cooked by {@link jetbrains.exodus.util.BackupBean}. Only listed by
* Describes how a backup file should be cooked by {@link BackupBean}. Only listed by
* {@link #listFiles()} and accepted by {@link #acceptFile(File)} files are put into backup file with defined
* pre- ({@link #beforeBackup()}) and postprocessing ({@link #afterBackup()}).
*/
Expand Down Expand Up @@ -54,7 +54,7 @@ public void afterBackup() throws Exception {
}

/**
* Can be used to interrupt backup process. After each processed file, {@link jetbrains.exodus.util.BackupBean}
* Can be used to interrupt backup process. After each processed file, {@link BackupBean}
* checks if backup procedure should be interrupted.
*
* @return true if backup should be interrupted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jetbrains.exodus;
package jetbrains.exodus.backup;

/**
* Something that can be backed up. {@link jetbrains.exodus.env.Environment},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.entitystore;

import jetbrains.exodus.Backupable;
import jetbrains.exodus.backup.Backupable;
import jetbrains.exodus.core.dataStructures.SoftLongObjectCache;
import jetbrains.exodus.core.dataStructures.hash.LongHashMap;
import jetbrains.exodus.core.dataStructures.hash.LongSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.entitystore;

import jetbrains.exodus.BackupStrategy;
import jetbrains.exodus.backup.BackupStrategy;
import jetbrains.exodus.core.dataStructures.hash.*;
import jetbrains.exodus.core.execution.Job;
import jetbrains.exodus.env.Environment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.entitystore;

import jetbrains.exodus.Backupable;
import jetbrains.exodus.backup.Backupable;
import jetbrains.exodus.bindings.ComparableBinding;
import jetbrains.exodus.core.execution.MultiThreadDelegatingJobProcessor;
import jetbrains.exodus.env.Environment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package jetbrains.exodus.env;

import jetbrains.exodus.Backupable;
import jetbrains.exodus.backup.Backupable;
import jetbrains.exodus.management.Statistics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down

0 comments on commit 2a022d1

Please sign in to comment.