A statistical physics of stationary and metastable states