James Moger
2015-11-22 ed552ba47c02779c270ffd62841d6d1048dade70
src/main/java/com/gitblit/tickets/RedisTicketService.java
@@ -43,6 +43,8 @@
import com.gitblit.models.TicketModel.Change;
import com.gitblit.utils.ArrayUtils;
import com.gitblit.utils.StringUtils;
import com.google.inject.Inject;
import com.google.inject.Singleton;
/**
 * Implementation of a ticket service based on a Redis key-value store.  All
@@ -53,6 +55,7 @@
 * @author James Moger
 *
 */
@Singleton
public class RedisTicketService extends ITicketService {
   private final JedisPool pool;
@@ -61,6 +64,7 @@
      journal, ticket, counter
   }
   @Inject
   public RedisTicketService(
         IRuntimeManager runtimeManager,
         IPluginManager pluginManager,
@@ -80,6 +84,10 @@
   @Override
   public RedisTicketService start() {
      log.info("{} started", getClass().getSimpleName());
      if (!isReady()) {
         log.warn("{} is not ready!", getClass().getSimpleName());
      }
      return this;
   }