Lightweight Bartering Grid

lbg.peer.strategy.scheduling.preemption
Class LimitedCancellation

java.lang.Object
  extended by lbg.peer.strategy.scheduling.preemption.LimitedCancellation
All Implemented Interfaces:
SupplyingRunningPreemptionPolicy

public class LimitedCancellation
extends java.lang.Object
implements SupplyingRunningPreemptionPolicy

Limited cancelling Preemption (Supplying Tasks are dequeued as needed).

Author:
Cyril Briquet

Constructor Summary
LimitedCancellation(Peer managed_peer, Scheduler scheduler)
           
 
Method Summary
 void preemptLocalResources(Task prioritary_task)
          SupplyingRunningPreemptionPolicy implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitedCancellation

public LimitedCancellation(Peer managed_peer,
                           Scheduler scheduler)
                    throws GridException
Throws:
GridException
Method Detail

preemptLocalResources

public void preemptLocalResources(Task prioritary_task)
                           throws GridException
SupplyingRunningPreemptionPolicy implementation. As a side effect, all waiting Supplying Tasks are cancelled.

Specified by:
preemptLocalResources in interface SupplyingRunningPreemptionPolicy
Throws:
GridException

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.