gov.bnl.star.offline.scheduler.Dispatchers.lsf
Class LSFNodePriorityStringGenerator

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFNodePriorityStringGenerator

public class LSFNodePriorityStringGenerator
extends java.lang.Object

This class builds the string used by LSF to state which node or nodes the job would prefer to run on. Nodes which hold more local files requested by the job will be given a higher priority then nodes that hold less files or do not hold any files by LSF. The string is formated in such a way as to allow it to be directly addable to the LSF command string.

Author:
Levente Hajdu

Constructor Summary
LSFNodePriorityStringGenerator()
          Creates a new instance of RootdSyntaxGenerator
 
Method Summary
 java.lang.String generateSyntax(Job job)
          Build the string used to describe node priority.
 java.lang.String getOtherNodes()
           
 void setOtherNodes(java.lang.String otherNodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSFNodePriorityStringGenerator

public LSFNodePriorityStringGenerator()
Creates a new instance of RootdSyntaxGenerator

Method Detail

getOtherNodes

public java.lang.String getOtherNodes()

setOtherNodes

public void setOtherNodes(java.lang.String otherNodes)

generateSyntax

public java.lang.String generateSyntax(Job job)
Build the string used to describe node priority.

Parameters:
job - The job jobject for which the LFS priorit string will be biult
Returns:
LSF node priority string


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.