uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x
Class UpgradeStrategy5_1_x
java.lang.Object
uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x.UpgradeStrategy5_1_x
- All Implemented Interfaces:
- UpgradeStrategy
public class UpgradeStrategy5_1_x
- extends Object
- implements UpgradeStrategy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeStrategy5_1_x
public UpgradeStrategy5_1_x()
init
public void init()
- Specified by:
init in interface UpgradeStrategy
createNewTables
protected void createNewTables()
createSessionFactory
protected void createSessionFactory()
initTotalEntities
protected void initTotalEntities()
upgrade
public void upgrade()
- Specified by:
upgrade in interface UpgradeStrategy
getProgress
public String getProgress()
- Specified by:
getProgress in interface UpgradeStrategy
initResourcePool
protected void initResourcePool()
copyConstraintsToResourcePool
protected void copyConstraintsToResourcePool()
throws Exception
- Throws:
Exception
copyAllocationsToResourcePool
protected void copyAllocationsToResourcePool()
copyUsageToResourcePool
protected void copyUsageToResourcePool()
copyUsageSummary
protected void copyUsageSummary(ResourceWithUsageByMetric resource,
Long usageSummaryId)
- Move a UsageSummary from the old domain objects to the new ones.
- Parameters:
resource - the new owning resourceusageSummaryId - the id of the old usage summary
copyConstraint
protected void copyConstraint(Constraint5_1alpha oldCons,
Constraint newCons)
getCurrentSession
protected org.hibernate.Session getCurrentSession()
initSlas
protected void initSlas()
- Initialise SLAs. This also sets non-relational fields.
copyPermittedServicesToSlas
protected void copyPermittedServicesToSlas()
copyConstraintsToSlas
protected void copyConstraintsToSlas()
copyPricingTermsToSlas
protected void copyPricingTermsToSlas()
copyUsageToSlas
protected void copyUsageToSlas()
copyUsageToSla
protected void copyUsageToSla(String resourceId)
initSlaTemplates
protected void initSlaTemplates()
throws Exception
- Throws:
Exception
copySlaTemplate
protected void copySlaTemplate(SLATemplate5_1alpha oldSlat,
SLATemplate newSlat)
copyPermittedServicesToSlaTemplates
protected void copyPermittedServicesToSlaTemplates()
copyPricingTermsToSlaTemplates
protected void copyPricingTermsToSlaTemplates()
copyConstraintsToSlaTemplates
protected void copyConstraintsToSlaTemplates()
throws Exception
- Throws:
Exception
copyPricingTerm
protected void copyPricingTerm(PricingTerm5_1alpha oldTerm,
PricingTerm newTerm)
initActivities
protected void initActivities()
copyActivity
protected void copyActivity(Activity5_1alpha oldAct,
Activity act)
copyUsageToActivities
protected void copyUsageToActivities()
copyUsageToActivity
protected void copyUsageToActivity(String resourceId)
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.