uk.ac.soton.itinnovation.grid.service.sla
Class ConstraintManagerImpl

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.sla.ConstraintManagerImpl
All Implemented Interfaces:
ConstraintManager

public class ConstraintManagerImpl
extends Object
implements ConstraintManager

ConstraintManager.java


Constructor Summary
ConstraintManagerImpl()
           
 
Method Summary
 void checkNewSLA(ResourcePool rp, SLA sla)
          Check that a new SLA can be fulfilled.
 void continueActivity(SLA sla, Activity act, Set<Constraint> actConstraints)
           
 List<ManagementAction> getActionsForActivities(ResourcePool pool)
          Get actions required for a resource pool.
 void startActivity(SLA sla, Set<Constraint> actConstraints)
          Check whether within SLA constraints.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintManagerImpl

public ConstraintManagerImpl()
Method Detail

getActionsForActivities

public List<ManagementAction> getActionsForActivities(ResourcePool pool)
Description copied from interface: ConstraintManager
Get actions required for a resource pool. Check for SLAs with breached constraints and return a list of actions to execute to fix any problems.

Specified by:
getActionsForActivities in interface ConstraintManager

checkNewSLA

public void checkNewSLA(ResourcePool rp,
                        SLA sla)
                 throws ConstraintBreachException
Check that a new SLA can be fulfilled.

Specified by:
checkNewSLA in interface ConstraintManager
Throws:
ConstraintBreachException

startActivity

public void startActivity(SLA sla,
                          Set<Constraint> actConstraints)
                   throws PublicConstraintBreachException,
                          PrivateConstraintBreachException
Check whether within SLA constraints. Throw a Private or PublicConstraintBreachException accordingly. Note: must have a current hibernate session open.

Specified by:
startActivity in interface ConstraintManager
Throws:
PublicConstraintBreachException
PrivateConstraintBreachException

continueActivity

public void continueActivity(SLA sla,
                             Activity act,
                             Set<Constraint> actConstraints)
                      throws PublicConstraintBreachException,
                             PrivateConstraintBreachException
Specified by:
continueActivity in interface ConstraintManager
Throws:
PublicConstraintBreachException
PrivateConstraintBreachException


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.