gov.bnl.star.offline.scheduler.util
Class ConfigToolkit
java.lang.Object
gov.bnl.star.offline.scheduler.util.ConfigToolkit
public class ConfigToolkit
- extends java.lang.Object
Toolkit with pre-written methods to help work with the SUMS configuration.
- Author:
- Levente Hajdu
Constructor Summary |
ConfigToolkit()
Creates a new instance of ConfigToolkit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigToolkit
public ConfigToolkit()
- Creates a new instance of ConfigToolkit
getToolkit
public static ConfigToolkit getToolkit()
myLocalFileGateKeeper
public GateKeeperAccessPoint myLocalFileGateKeeper()
isLocalQueue
public boolean isLocalQueue(Queue queue)
- Test if a queue is local to the site.
If the queue is local it will return true else return false.
If the "-u grid" option is used is set it will always return false.
myLocalSite
public Site myLocalSite()
- Returns:
- the local site object from the config file
localSiteExists
public boolean localSiteExists()
- Returns:
- ture if the local site exists in the config file
setFlag
public void setFlag(java.lang.String falgName)
isFlagSet
public boolean isFlagSet(java.lang.String flag)
addGlobalObject
public void addGlobalObject(java.lang.String name,
java.lang.Object object)
getGlobalObject
public java.lang.Object getGlobalObject(java.lang.String name)
findProgram
public static java.lang.String findProgram(java.lang.String name,
Job job)
findProgram
public static java.lang.String findProgram(java.lang.String name,
Site site)
Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.