increased waiting time to 12 minutes, as the number of portlets increased.
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/mail-reader-lr62@133446 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
bf45eed5ab
commit
a0cd5b363e
1
.project
1
.project
|
@ -38,5 +38,6 @@
|
||||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||||
|
<nature>com.liferay.ide.core.liferayNature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
</projectDescription>
|
</projectDescription>
|
||||||
|
|
|
@ -2,16 +2,13 @@ package org.gcube.portal;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.gcube.portal.SSLUtilities;
|
|
||||||
|
|
||||||
import javax.net.ssl.HttpsURLConnection;
|
import javax.net.ssl.HttpsURLConnection;
|
||||||
|
|
||||||
public class GetCaller extends Thread {
|
public class GetCaller extends Thread {
|
||||||
private final int MINUTES_4_MILLISECONDS = 480000;
|
private final int WAITING_MILLISECONDS = 720000;
|
||||||
|
|
||||||
private final static String USER_AGENT = "Mozilla/5.0";
|
private final static String USER_AGENT = "Mozilla/5.0";
|
||||||
|
|
||||||
|
@ -30,9 +27,9 @@ public class GetCaller extends Thread {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
System.out.println("********** READING MAILS THREAD Waiting ... starting in " + MINUTES_4_MILLISECONDS/60000 + " minutes");
|
System.out.println("********** READING MAILS THREAD Waiting ... starting in " + WAITING_MILLISECONDS/60000 + " minutes");
|
||||||
System.out.println("********** LDAP EXPORT THREAD Waiting ... starting in " + MINUTES_4_MILLISECONDS/60000 + " minutes");
|
System.out.println("********** LDAP EXPORT THREAD Waiting ... starting in " + WAITING_MILLISECONDS/60000 + " minutes");
|
||||||
Thread.sleep(MINUTES_4_MILLISECONDS);
|
Thread.sleep(WAITING_MILLISECONDS);
|
||||||
for (String url : urlsToContact) {
|
for (String url : urlsToContact) {
|
||||||
String response = sendHTTPsGet(url+SERVLET_CONTEXT_MAIL);
|
String response = sendHTTPsGet(url+SERVLET_CONTEXT_MAIL);
|
||||||
System.out.println("**********\n\n"+ "Called URL=" + url + " correctly, response:" + response);
|
System.out.println("**********\n\n"+ "Called URL=" + url + " correctly, response:" + response);
|
||||||
|
|
Loading…
Reference in New Issue