com.atlassian.bamboo.migration
Class ImportExportManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.migration.ImportExportManagerImpl
All Implemented Interfaces:
ImportExportManager

public class ImportExportManagerImpl
extends java.lang.Object
implements ImportExportManager


Field Summary
static int DEFAULT_SLEEP
           
static int DEFAULT_TIMEOUT
           
 
Constructor Summary
ImportExportManagerImpl(DeletionService deletionService, XmlMigrator xmlMigrator, com.opensymphony.xwork.TextProvider textProvider, AdminErrorHandler adminErrorHandler, DummyResultsSummaryCache dummyResultsSummaryCache, ImmutablePlanCacheService immutablePlanCacheService, ServerLifecycleManager serverLifecycleManager)
           
 
Method Summary
 void bambooExport(ExportDetailsBean exportDetails)
          Controls Bamboo Export
 void bambooImport(java.lang.String path)
          Execute first phase of import.
 void bambooImport(java.lang.String path, boolean clearArtifacts)
          Controls Bamboo Import
 void bambooOsgiDependentImport(java.lang.String path)
          Execute second phase of import.
 long getWaitSleep()
           
 long getWaitTimeout()
           
 void validateImport(java.lang.String path)
          Validates Bamboo import file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SLEEP

public static final int DEFAULT_SLEEP
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

ImportExportManagerImpl

public ImportExportManagerImpl(DeletionService deletionService,
                               XmlMigrator xmlMigrator,
                               com.opensymphony.xwork.TextProvider textProvider,
                               AdminErrorHandler adminErrorHandler,
                               DummyResultsSummaryCache dummyResultsSummaryCache,
                               ImmutablePlanCacheService immutablePlanCacheService,
                               ServerLifecycleManager serverLifecycleManager)
Method Detail

bambooExport

public void bambooExport(ExportDetailsBean exportDetails)
                  throws java.lang.Exception
Description copied from interface: ImportExportManager
Controls Bamboo Export

Specified by:
bambooExport in interface ImportExportManager
Parameters:
exportDetails - ExportDetailsBean containing any information required to do the export
Throws:
java.lang.InterruptedException
java.lang.Exception

bambooImport

public void bambooImport(java.lang.String path)
                  throws java.lang.Exception
Description copied from interface: ImportExportManager
Execute first phase of import. All non-OSGI mappers are executed. Note that

Specified by:
bambooImport in interface ImportExportManager
Parameters:
path - String path of file to import
Throws:
java.lang.InterruptedException
java.lang.Exception

bambooOsgiDependentImport

public void bambooOsgiDependentImport(java.lang.String path)
                               throws java.lang.Exception
Description copied from interface: ImportExportManager
Execute second phase of import. Only OSGI mappers are executed.

Specified by:
bambooOsgiDependentImport in interface ImportExportManager
Parameters:
path - String path of file to import
Throws:
java.lang.Exception

bambooImport

public void bambooImport(java.lang.String path,
                         boolean clearArtifacts)
                  throws java.lang.Exception
Description copied from interface: ImportExportManager
Controls Bamboo Import

Specified by:
bambooImport in interface ImportExportManager
Parameters:
path - String path of file to import
clearArtifacts - artifact directory is erased prior the import iff true
Throws:
java.lang.InterruptedException
java.lang.Exception

validateImport

public void validateImport(java.lang.String path)
                    throws java.lang.Exception
Description copied from interface: ImportExportManager
Validates Bamboo import file

Specified by:
validateImport in interface ImportExportManager
Parameters:
path - String path of file to import
Throws:
java.lang.Exception - when import file is not valid

getWaitSleep

public long getWaitSleep()

getWaitTimeout

public long getWaitTimeout()


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.