MARM: An Agent-Based Adaptive QoS Management Framework