com.atlassian.jira.upgrade
Class UpgradeManager.Status

java.lang.Object
  extended by com.atlassian.jira.upgrade.UpgradeManager.Status
Enclosing interface:
UpgradeManager

public static class UpgradeManager.Status
extends Object

Status of the upgrade process


Constructor Summary
UpgradeManager.Status(boolean reindexPerformed, Collection<String> errors)
           
UpgradeManager.Status(String error)
          Creates status with only one error message and reindexPerformed flag set to false
 
Method Summary
 Collection<String> getErrors()
          List of errors that occurred during the upgrade
 boolean reindexPerformed()
          If one of the executed upgrade tasks required reindexing thim method will return true
 boolean succesful()
          Checks wether this upgrade was succesful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeManager.Status

public UpgradeManager.Status(String error)
Creates status with only one error message and reindexPerformed flag set to false

Parameters:
error - the only erro messag

UpgradeManager.Status

public UpgradeManager.Status(boolean reindexPerformed,
                             Collection<String> errors)
Parameters:
reindexPerformed - flag indicating if reindexing was performed during upgrade
errors - a list of errors that occurred during the upgrade
Method Detail

reindexPerformed

public boolean reindexPerformed()
If one of the executed upgrade tasks required reindexing thim method will return true

Returns:
true if upgrade manager performed deindexing

succesful

public boolean succesful()
Checks wether this upgrade was succesful

Returns:
true if upgrade tasks returned no erros

getErrors

public Collection<String> getErrors()
List of errors that occurred during the upgrade

Returns:
list of errors


Copyright © 2002-2014 Atlassian. All Rights Reserved.