agave-common/common-core/src/main/java/org/iplantc/service/common/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()
    {
        if (StringUtils.isEmpty(DRAIN_QUEUES)) 
        {
            Properties props = new Properties();
            InputStream stream = null;
            try
            {
            	stream = Settings.class.getClassLoader().getResourceAsStream(PROPERTY_FILE);
                props.load(stream);
                DRAIN_QUEUES = props.getProperty("iplant.drain.all.queues");
            }
            catch (Exception e)
            {
            	log.error("Failure loading setting iplant.drain.all.queues", e);
                DRAIN_QUEUES = null;
            }
            finally {
            	if (stream != null) try {stream.close();} catch (Exception e){}
            }
        }
        return Boolean.parseBoolean(DRAIN_QUEUES);
    }
public static boolean isDrainingQueuesEnabled ( ) { if ( StringUtils . isEmpty ( DRAIN_QUEUES ) ) { Properties props = new Properties ( ) ; InputStream stream = null ; try { stream = Settings . class . getClassLoader ( ) . getResourceAsStream ( PROPERTY_FILE ) ; props . load ( stream ) ; DRAIN_QUEUES = props . getProperty ( "iplant.drain.all.queues" ) ; } catch ( Exception e ) { log . error ( "Failure loading setting iplant.drain.all.queues" , e ) ; DRAIN_QUEUES = null ; } finally { if ( stream != null ) try { stream . close ( ) ; } catch ( Exception e ) { } } } return Boolean . parseBoolean ( DRAIN_QUEUES ) ; }
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 .