Log4j 1.0.1

pl.psnc.expres.broker.correlation.strategy
Class RoundRobinStrategy

java.lang.Object
  extended by pl.psnc.expres.broker.correlation.strategy.AbstractCorrelationStrategy
      extended by pl.psnc.expres.broker.correlation.strategy.RoundRobinStrategy
All Implemented Interfaces:
ICorrelationStrategy

public class RoundRobinStrategy
extends AbstractCorrelationStrategy

RoundRobinStrategy class - round robin scheduling strategy for assigning resources required for correlation.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Field Summary
 
Fields inherited from class pl.psnc.expres.broker.correlation.strategy.AbstractCorrelationStrategy
log
 
Constructor Summary
RoundRobinStrategy(CorrelationJobValue corJobValue)
          Creates a new instance of round robin scheduling strategy for correlation nodes
 
Method Summary
 pl.psnc.expres.model.resource.ResourceValue nextCorrelator()
          Get next instance of correlation value which will be doing the software correlation
 pl.psnc.expres.model.resource.ResourceValue previousCorrelator()
          Get instance of correlation value which was schedulled for the correlation
 
Methods inherited from class pl.psnc.expres.broker.correlation.strategy.AbstractCorrelationStrategy
getCorJobValue, getCorrelatorArray, getCorrelatorCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinStrategy

public RoundRobinStrategy(CorrelationJobValue corJobValue)
                   throws pl.psnc.vlab.exception.ResourceNotFoundException
Creates a new instance of round robin scheduling strategy for correlation nodes

Parameters:
corJobValue - correlation job details
Throws:
pl.psnc.vlab.exception.ResourceNotFoundException - thrown when correlation nodes could not be found
Method Detail

nextCorrelator

public pl.psnc.expres.model.resource.ResourceValue nextCorrelator()
Description copied from interface: ICorrelationStrategy
Get next instance of correlation value which will be doing the software correlation

Returns:
next instance of correlation value which will be doing the software correlation

previousCorrelator

public pl.psnc.expres.model.resource.ResourceValue previousCorrelator()
Description copied from interface: ICorrelationStrategy
Get instance of correlation value which was schedulled for the correlation

Returns:
instance of correlation value which was schedulled for the correlation

Log4j 1.0.1

Dominik Stoklosa Copyright 2007-2009 by PSNC