gov.bnl.star.offline.scheduler.Dispatchers
Interface AbstractResourceStrategy

All Known Implementing Classes:
LSFResourceStrategy, RegXResourceStrategy

public interface AbstractResourceStrategy

This is an intrface for Resource Strategys. Resource Strategies are SUMS scheduler objects that allow the SUMS administrator to configure SUMS to define the quantity of resources a job is consuming to the batch system. Dispatchers that use resource strategies will except any combination of these classes and concatenate the output in to one delimitated string. Basically you must describe to the Resource Strategies how to generate the required string for the particular batch system. The good Resource Strategies are designed to be as generic as possible, to be able to meat the formatting needs of all batch systems.

Author:
Levente Hajdu

Method Summary
 java.lang.String getDelimiterCharacter()
          Returns the character that is used as the delimiter, this is most usaly the "," and this is the default if not set.
 java.lang.String prepareResourceUsageSwitch(Job job)
          This function returns a string that represents the resource usage of the job, in such a format that it can be passed to the batch system.
 void setDelimiterCharacter(java.lang.String delimiterCharacter)
          Sets the character that is used as the delimiter, this is most usaly the "," and this is the default if not set.
 

Method Detail

prepareResourceUsageSwitch

java.lang.String prepareResourceUsageSwitch(Job job)
This function returns a string that represents the resource usage of the job, in such a format that it can be passed to the batch system.

Parameters:
job - The job from which the resource usage string will be generated

getDelimiterCharacter

java.lang.String getDelimiterCharacter()
Returns the character that is used as the delimiter, this is most usaly the "," and this is the default if not set.


setDelimiterCharacter

void setDelimiterCharacter(java.lang.String delimiterCharacter)
Sets the character that is used as the delimiter, this is most usaly the "," and this is the default if not set.



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