Lightweight Bartering Grid

lbg.peer.strategy.scheduling.preemption
Class FullCancellation

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

public class FullCancellation
extends java.lang.Object
implements SupplyingRunningPreemptionPolicy

Fully cancelling Preemption (all Supplying Tasks are dequeued).

Author:
Cyril Briquet

Constructor Summary
FullCancellation(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

FullCancellation

public FullCancellation(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.