Effect of uni-directional and bi-directional cavity structure on the performance of Brillouin fiber laser