Rerun failed suite

How to rerun failed suites not failed test cases and keyword are implemented in java?