Removed ASLSession expiration

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@24335 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Rena Tsantouli 2010-07-13 09:57:45 +00:00
parent 0395f7b23b
commit fd305a6f1b
1 changed files with 7 additions and 7 deletions

View File

@ -8,14 +8,14 @@ import java.util.Set;
public class SessionManager {
protected static Thread thread = new CleanSessionThread();
//protected static Thread thread = new CleanSessionThread();
protected static SessionManager sessionManager = new SessionManager();
protected HashMap<String, ASLSession> sessions;
protected SessionManager() {
sessions = new HashMap<String, ASLSession>();
thread.setDaemon(true);
thread.start();
//thread.setDaemon(true);
//thread.start();
}
public static SessionManager getInstance() {
@ -35,10 +35,10 @@ public class SessionManager {
@Override
protected void finalize() throws Throwable {
thread.interrupt();
System.out.println(new Date(System.currentTimeMillis()) + " clean thread was interrupted");
thread.join();
System.out.println(new Date(System.currentTimeMillis()) + " clean thread was joint");
//thread.interrupt();
//System.out.println(new Date(System.currentTimeMillis()) + " clean thread was interrupted");
//thread.join();
//System.out.println(new Date(System.currentTimeMillis()) + " clean thread was joint");
super.finalize();
}