agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/Settings.java
/**
	 * Reads in the iplant.dedicated.tenant.id property every time from 
	 * the service properties file. This can be updated in real time to 
	 * prevent workers from accepting any more work at run time.
	 * 
	 * @return true if iplant.dedicated.tenant.id is true, false otherwise
	 */
Reads in the iplant.dedicated.tenant.id property every time from
the service properties file. This can be updated in real time to
prevent workers from accepting any more work at run time.

@return true if iplant.dedicated.tenant.id is true, false otherwise
Reads in the iplant . dedicated . tenant . id property every time from the service properties file . This can be updated in real time to prevent workers from accepting any more work at run time . @return true if iplant . dedicated . tenant . id is true false otherwise
public static boolean isDrainingQueuesEnabled()
	{
		Properties props = new Properties();
		InputStream stream = null;
		try
		{
			stream = Settings.class.getClassLoader().getResourceAsStream(PROPERTY_FILE);
			props.load(stream);
			return Boolean.parseBoolean(props.getProperty("iplant.drain.all.queues", "false"));
		}
		catch (Exception e)
		{
			log.warn("Unable to load " + PROPERTY_FILE + ".");
			return false;
		}
		finally {
			if (stream != null) try {stream.close();} catch (Exception e) {}
		}
	}
public static boolean isDrainingQueuesEnabled ( ) { Properties props = new Properties ( ) ; InputStream stream = null ; try { stream = Settings . class . getClassLoader ( ) . getResourceAsStream ( PROPERTY_FILE ) ; props . load ( stream ) ; return Boolean . parseBoolean ( props . getProperty ( "iplant.drain.all.queues" , "false" ) ) ; } catch ( Exception e ) { log . warn ( "Unable to load " + PROPERTY_FILE + "." ) ; return false ; } finally { if ( stream != null ) try { stream . close ( ) ; } catch ( Exception e ) { } } }
Reads in the iplant.dedicated.tenant.id property every time from
 the service properties file.
Reads in the iplant . dedicated . tenant . id property every time from the service properties file .