The Dirichlet and the weighted metrics for the space of Kaehler metrics