/
githubmirror
/
the-algorithm
Обзор
Документация
Войти
/
githubmirror
/
the-algorithm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/java/com/twitter/search/earlybird_root/RealtimeRootAppMain.java
39 строк
1 KB
twitter-team
Twitter Recommendation Algorithm
01 апр 2023, 01:36
01 апр 2023, 01:36
ef4c5eb
Код
Авторство
О чём код?
package com.twitter.search.earlybird_root; import java.util.Arrays; import java.util.Collection; import com.google.inject.Module; import com.twitter.search.common.root.SearchRootAppMain; import com.twitter.search.earlybird.thrift.EarlybirdService; public class RealtimeRootAppMain extends SearchRootAppMain<RealtimeRootServer> { /** * Boilerplate for the Java-friendly AbstractTwitterServer */ public static class Main { public static void main(String[] args) { new RealtimeRootAppMain().main(args); } } @Override protected Collection<? extends Module> getAdditionalModules() { return Arrays.asList( new EarlybirdCommonModule(), new EarlybirdCacheCommonModule(), new RealtimeRootAppModule(), new RealtimeScatterGatherModule()); } @Override protected Class<RealtimeRootServer> getSearchRootServerClass() { return RealtimeRootServer.class; } @Override protected Class<?> getServiceIfaceClass() { return EarlybirdService.ServiceIface.class; } }