On the ergodic methods in statistical mechanics