net.kwfgrid.gwes.prorater
Class AbstractProrater

java.lang.Object
  extended by net.kwfgrid.gwes.operationmapper.OperationMapper
      extended by net.kwfgrid.gwes.prorater.AbstractProrater
Direct Known Subclasses:
SimpleProrater

public abstract class AbstractProrater
extends OperationMapper

A Prorater is a simple kind of a load balancer aiming to maximize a homogeneous load by prorating the activities among computing nodes. The priority property of the activities is the dominant criterium for prorating. Nodes with a quality below resource.prorater.min_quality are skiped until its quality grows. The quality (in [0,1]) is a monotone reciprocal function of the load.

Version:
$Id: AbstractProrater.java 1419 2010-11-01 14:12:17Z hoheisel $
Author:
Helge Rose'

Method Summary
 boolean processTransition(GenericWorkflowHandler handler, net.kwfgrid.gworkflowdl.structure.Transition transition)
          Maps the operation contained in the specified transition to a less abstract level.
 boolean processTransitions(GenericWorkflowHandler handler, ArrayList<net.kwfgrid.gworkflowdl.structure.Transition> transitions)
          Maps the operation contained in the specified list of transitions to a less abstract level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processTransition

public boolean processTransition(GenericWorkflowHandler handler,
                                 net.kwfgrid.gworkflowdl.structure.Transition transition)
                          throws OperationMapperException
Description copied from class: OperationMapper
Maps the operation contained in the specified transition to a less abstract level.

Specified by:
processTransition in class OperationMapper
Parameters:
handler - The parent workflow handler.
Returns:
true if a mapping was possible, false otherwise.
Throws:
OperationMapperException

processTransitions

public boolean processTransitions(GenericWorkflowHandler handler,
                                  ArrayList<net.kwfgrid.gworkflowdl.structure.Transition> transitions)
                           throws OperationMapperException
Description copied from class: OperationMapper
Maps the operation contained in the specified list of transitions to a less abstract level.

Specified by:
processTransitions in class OperationMapper
Parameters:
handler - The parent workflow handler.
transitions - The list of transitions.
Returns:
true if a mapping was possible, false otherwise.
Throws:
OperationMapperException


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.