Revision 8056,
1.1 KB
checked in by gustavo, 11 years ago
(diff) |
Ticket #000 - Commit contendo o expresso com solr funcionando corretamente
|
Line | |
---|
1 | package pkg.crawler.main; |
---|
2 | |
---|
3 | import pkg.crawler.data.conn.Crawler; |
---|
4 | |
---|
5 | public class Main { |
---|
6 | |
---|
7 | /** |
---|
8 | * @param args |
---|
9 | * Deverão ser 4 argumentos: |
---|
10 | */ |
---|
11 | public static void main(String[] args) { |
---|
12 | |
---|
13 | if (args == null || args.length != 3){ |
---|
14 | System.out.println("Uso:\n" + |
---|
15 | "java -jar crawler.jar [imap_host] [imap_admin_password] " + |
---|
16 | "[http_solr_host_address] [login_starts_with]\n" + |
---|
17 | "imap_host - O endereço que está instalado o Expresso Ex: \"127.1.1.1\"\n" + |
---|
18 | "imap_admin_password - Senha do usuário 'expresso-admin' Ex: \"admin123\"\n" + |
---|
19 | "http_solr_host_address - Endereço do servidor do Solr Ex: \"http://127.1.1.1:8983/solr/\"\n" + |
---|
20 | "login_starts_with - Caracteres que esse crawler deverá verificar Ex: \"abcde\""); |
---|
21 | System.exit(0); |
---|
22 | } |
---|
23 | |
---|
24 | //O endereço que está instalado o Expresso Ex: "127.1.1.1" |
---|
25 | String host = args[0]; |
---|
26 | //Senha do usuário 'expresso-admin' Ex: "admin123" |
---|
27 | String password = args[1]; |
---|
28 | //Endereço do servidor do Solr Ex: "http://127.1.1.1:8983/solr/" |
---|
29 | String hostSolr = args[2]; |
---|
30 | |
---|
31 | Crawler crawler = new Crawler(host, password, hostSolr); |
---|
32 | |
---|
33 | crawler.run(); |
---|
34 | |
---|
35 | |
---|
36 | } |
---|
37 | |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.