On the Integration of Application Level and Resource Level QoS Control for Real-Time Applications