uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x
Class UpgradeStrategy5_1_x

java.lang.Object
  extended by 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


Nested Class Summary
protected  class UpgradeStrategy5_1_x.Tx
           
 
Constructor Summary
UpgradeStrategy5_1_x()
           
 
Method Summary
protected  void copyActivity(Activity5_1alpha oldAct, Activity act)
           
protected  void copyAllocationsToResourcePool()
           
protected  void copyConstraint(Constraint5_1alpha oldCons, Constraint newCons)
           
protected  void copyConstraintsToResourcePool()
           
protected  void copyConstraintsToSlas()
           
protected  void copyConstraintsToSlaTemplates()
           
protected  void copyPermittedServicesToSlas()
           
protected  void copyPermittedServicesToSlaTemplates()
           
protected  void copyPricingTerm(PricingTerm5_1alpha oldTerm, PricingTerm newTerm)
           
protected  void copyPricingTermsToSlas()
           
protected  void copyPricingTermsToSlaTemplates()
           
protected  void copySlaTemplate(SLATemplate5_1alpha oldSlat, SLATemplate newSlat)
           
protected  void copyUsageSummary(ResourceWithUsageByMetric resource, Long usageSummaryId)
          Move a UsageSummary from the old domain objects to the new ones.
protected  void copyUsageToActivities()
           
protected  void copyUsageToActivity(String resourceId)
           
protected  void copyUsageToResourcePool()
           
protected  void copyUsageToSla(String resourceId)
           
protected  void copyUsageToSlas()
           
protected  void createNewTables()
           
protected  void createSessionFactory()
           
protected  org.hibernate.Session getCurrentSession()
           
 String getProgress()
           
 void init()
           
protected  void initActivities()
           
protected  void initResourcePool()
           
protected  void initSlas()
          Initialise SLAs.
protected  void initSlaTemplates()
           
protected  void initTotalEntities()
           
 void upgrade()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeStrategy5_1_x

public UpgradeStrategy5_1_x()
Method Detail

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 resource
usageSummaryId - 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.