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

Examples of org.exoplatform.services.jcr.impl.backup.BackupException


               DirectoryHelper.removeDirectory(dataDir);
            }
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }
   }
View Full Code Here


         {
            DirectoryHelper.uncompressDirectory(backupDir, dataDir);
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }
   }
View Full Code Here

            DirectoryHelper.copyDirectory(tmpDir, dataDir);
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }
   }
View Full Code Here

         {
            DirectoryHelper.removeDirectory(tmpDir);
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }

      dataDirs.clear();
      backupDirs.clear();
View Full Code Here

         }
      }
      catch (IOException e)
      {
         exc = e;
         throw new BackupException(e);
      }
      catch (SQLException e)
      {
         exc = e;
         throw new BackupException("SQL Exception: " + ExceptionManagementHelper.getFullSQLExceptionMessage(e), e);
      }
      finally
      {
         if (jdbcConn != null)
         {
            try
            {
               jdbcConn.close();
            }
            catch (SQLException e)
            {
               if (exc != null)
               {
                  LOG.error("Can't close connection", e);
                  throw new BackupException(exc);
               }
               else
               {
                  throw new BackupException(e);
               }
            }
         }

         try
         {
            if (contentWriter != null)
            {
               contentWriter.close();
            }

            if (contentLenWriter != null)
            {
               contentLenWriter.close();
            }
         }
         catch (Exception e)
         {
            if (exc != null)
            {
               LOG.error("Can't close zip", e);
               throw new BackupException(exc);
            }
            else
            {
               throw new BackupException(e);
            }
         }
      }
   }
View Full Code Here

               DirectoryHelper.removeDirectory(dataDir);
            }
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }
   }
View Full Code Here

               DirectoryHelper.uncompressDirectory(zipFile, dataDir);
            }
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }
   }
View Full Code Here

            DirectoryHelper.copyDirectory(tmpDir, dataDir);
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }
   }
View Full Code Here

         {
            DirectoryHelper.removeDirectory(tmpDir);
         }
         catch (IOException e)
         {
            throw new BackupException(e);
         }
      }

      dataDirs.clear();
      zipFiles.clear();
View Full Code Here

      {
         dbCleaner.executeCleanScripts();
      }
      catch (SQLException e)
      {
         throw new BackupException(e);
      }
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.backup.BackupException

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.