| | |
| | | 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 |
| | |
| | | * @author James Moger |
| | | * |
| | | */ |
| | | @Singleton |
| | | public class RedisTicketService extends ITicketService { |
| | | |
| | | private final JedisPool pool; |
| | |
| | | journal, ticket, counter |
| | | } |
| | | |
| | | @Inject |
| | | public RedisTicketService( |
| | | IRuntimeManager runtimeManager, |
| | | IPluginManager pluginManager, |
| | |
| | | |
| | | @Override |
| | | public RedisTicketService start() { |
| | | log.info("{} started", getClass().getSimpleName()); |
| | | if (!isReady()) { |
| | | log.warn("{} is not ready!", getClass().getSimpleName()); |
| | | } |
| | | return this; |
| | | } |
| | | |