Use plugin config in constructor
Added TimeToFailureFactory.java
Added unit tests for TimeTofailureFactory and TimeToFailure