Package org.exoplatform.services.jcr.ext.backup.impl.rdbms

Examples of org.exoplatform.services.jcr.ext.backup.impl.rdbms.FullBackupJob


{
   TesterConfigurationHelper helper = TesterConfigurationHelper.getInstance();

   public void testRDBMSInitializerRestoreTablesMultiDB() throws Exception
   {
      FullBackupJob job = new FullBackupJob();
      BackupConfig config = new BackupConfig();
      config.setRepository("db1");
      config.setWorkspace("ws1");
      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializerRestoreTablesMultiDB"));

      Calendar calendar = Calendar.getInstance();

      job.init(repositoryService.getRepository("db1"), "ws1", config, calendar);
      job.run();

      URL url = job.getStorageURL();

      for (WorkspaceEntry workspaceEntry : repositoryService.getRepository("db1").getConfiguration()
         .getWorkspaceEntries())
      {
         if (workspaceEntry.getName().equals("ws1"))
View Full Code Here


      }
   }

   public void testRDBMSInitializerRestoreTablesSingleDB() throws Exception
   {
      FullBackupJob job = new FullBackupJob();
      BackupConfig config = new BackupConfig();
      config.setRepository("db3");
      config.setWorkspace("ws");
      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializerRestoreTablesSingleDB"));

      Calendar calendar = Calendar.getInstance();

      job.init(repositoryService.getRepository("db7"), "ws1", config, calendar);
      job.run();

      URL url = job.getStorageURL();

      for (WorkspaceEntry workspaceEntry : repositoryService.getRepository("db7").getConfiguration()
         .getWorkspaceEntries())
      {
         if (workspaceEntry.getName().equals("ws1"))
View Full Code Here

   extends BaseRDBMSBackupTest
{

   public void testRDBMSFullBackupJobSystemWorkspace() throws Exception
   {
      FullBackupJob job = new FullBackupJob();
      BackupConfig config = new BackupConfig();
      config.setRepository("db1");
      config.setWorkspace("ws");
      config.setBackupDir(new File("target/backup/testJob"));

      Calendar calendar = Calendar.getInstance();

      job.init(repositoryService.getRepository("db1"), "ws", config, calendar);
      job.run();

      URL url = job.getStorageURL();
      assertNotNull(url);

      assertTrue(new File(url.getFile(), "values-draft.zip").exists());
      assertTrue(new File(url.getFile(), "index.zip").exists());
      assertTrue(new File(url.getFile(), "dump.zip").exists());
View Full Code Here

      assertTrue(new File(url.getFile(), "dump-len.zip").exists());
   }

   public void testRDBMSFullBackupJob() throws Exception
   {
      FullBackupJob job = new FullBackupJob();
      BackupConfig config = new BackupConfig();
      config.setRepository("db1");
      config.setWorkspace("ws1");
      config.setBackupDir(new File("target/backup/testJob"));
     
      Calendar calendar = Calendar.getInstance();

      job.init(repositoryService.getRepository("db1"), "ws1", config, calendar);
      job.run();

      URL url = job.getStorageURL();
      assertNotNull(url);

      assertFalse(new File(url.getFile(), "values-draft.zip").exists());
      assertTrue(new File(url.getFile(), "index.zip").exists());
      assertFalse(new File(url.getFile(), "index_system.zip").exists());
View Full Code Here

{
   TesterConfigurationHelper helper = TesterConfigurationHelper.getInstance();

   public void testRDBMSInitializerRestoreTablesMultiDB() throws Exception
   {
      FullBackupJob job = new FullBackupJob();
      BackupConfig config = new BackupConfig();
      config.setRepository("db1");
      config.setWorkspace("ws1");
      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializerRestoreTablesMultiDB"));

      Calendar calendar = Calendar.getInstance();

      job.init(repositoryService.getRepository("db1"), "ws1", config, calendar);
      job.run();

      URL url = job.getStorageURL();

      for (WorkspaceEntry workspaceEntry : repositoryService.getRepository("db1").getConfiguration()
         .getWorkspaceEntries())
      {
         if (workspaceEntry.getName().equals("ws1"))
View Full Code Here

      }
   }

   public void testRDBMSInitializerRestoreTablesSingleDB() throws Exception
   {
      FullBackupJob job = new FullBackupJob();
      BackupConfig config = new BackupConfig();
      config.setRepository("db3");
      config.setWorkspace("ws");
      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializerRestoreTablesSingleDB"));

      Calendar calendar = Calendar.getInstance();

      job.init(repositoryService.getRepository("db3"), "ws1", config, calendar);
      job.run();

      URL url = job.getStorageURL();

      for (WorkspaceEntry workspaceEntry : repositoryService.getRepository("db3").getConfiguration()
         .getWorkspaceEntries())
      {
         if (workspaceEntry.getName().equals("ws1"))
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.ext.backup.impl.rdbms.FullBackupJob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.