com.atlassian.jira.upgrade
Class ConsistencyCheckImpl

java.lang.Object
  extended by com.atlassian.jira.upgrade.ConsistencyCheckImpl
All Implemented Interfaces:
ConsistencyChecker

public class ConsistencyCheckImpl
extends Object
implements ConsistencyChecker

The consistency checker runs every time the web app is reloaded, and checks JIRA's consistency (duh ;))

At the moment it just looks to check that certain Listeners are loaded, but in the future it can check the consistency of data etc.


Field Summary
static String CK_OFBIZ_DS_NAME
           
static String JIRA_DATASOURCE_PROPERTY
           
 
Constructor Summary
ConsistencyCheckImpl()
           
 
Method Summary
 void checkConsistency(javax.servlet.ServletContext context)
           
 void checkDataConsistency()
           
 void destroy(javax.servlet.ServletContextEvent event)
           
protected  Collection getServices()
          Gets all the currently registered services with JIRA.
 void initialise(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JIRA_DATASOURCE_PROPERTY

public static final String JIRA_DATASOURCE_PROPERTY
See Also:
Constant Field Values

CK_OFBIZ_DS_NAME

public static final String CK_OFBIZ_DS_NAME
See Also:
Constant Field Values
Constructor Detail

ConsistencyCheckImpl

public ConsistencyCheckImpl()
Method Detail

destroy

public void destroy(javax.servlet.ServletContextEvent event)
Specified by:
destroy in interface ConsistencyChecker

getServices

protected Collection getServices()
Gets all the currently registered services with JIRA.

Returns:
Unmodifiable collection of JiraServiceContainer
See Also:
ServiceManager.getServices()

initialise

public void initialise(javax.servlet.ServletContextEvent event)
Specified by:
initialise in interface ConsistencyChecker

checkConsistency

public void checkConsistency(javax.servlet.ServletContext context)

checkDataConsistency

public void checkDataConsistency()
                          throws Exception
Specified by:
checkDataConsistency in interface ConsistencyChecker
Throws:
Exception


Copyright © 2002-2009 Atlassian. All Rights Reserved.