Scheduler

"Xavier Grehant" <[email protected]> Thu, 18 Jan 2007 12:27:48 +0100
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
Hi all -
Andreas asked the question about a scheduler that would take a number
of hosts as attributes and set the sfProcessHost attributes of
relevant components.
I'm implementing something that would take this form :

myScheduler extends Scheduler {
   hosts ["host1.cern.ch", "123.45.678.90", "host2.cern.ch"];
}

anything extends Schedulee {
   scheduler LAZY ATTRIB myScheduler;
   - extends Anything {
       // the sfProcessHost attribute is set by class
       // Schedulee (implements Compound) calling a public
       // method getNextHost() of class Scheduler.
   }
}

Best,
Xavier

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV