Changeset 28862

Show
Ignore:
Timestamp:
27.02.2014 14:38:11 (6 years ago)
Author:
kjdon
Message:

destroy method of Thread has been deprecated. and ThreadControl?.destroy never did anything anyway, so I have deleted it

Location:
main/trunk/greenstone3/src/java/org/greenstone/admin/gui
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/admin/gui/ConfPane.java

    r27941 r28862  
    542542                Runnable startupTomcatThread = threadControl.new startupTomcatServer("start-tomcat"); 
    543543                new Thread(startupTomcatThread).start(); 
    544                 threadControl.destroy(); 
    545544                tomcat_server_up = true; 
    546545                JOptionPane.showMessageDialog((Component) null, "Tomcat server has been Startup successfully!"); 
     
    564563                Runnable shutdownTomcatThread = threadControl.new shutdownTomcatServer("stop-tomcat"); 
    565564                new Thread(shutdownTomcatThread).start(); 
    566                 threadControl.destroy(); 
    567565                tomcat_server_up = false; 
    568566                JOptionPane.showMessageDialog((Component) null, "Tomcat server has been shutted down !"); 
     
    598596                Runnable restartTomcatThread = threadControl.new restartTomcatServer("restart-tomcat"); 
    599597                new Thread(restartTomcatThread).start(); 
    600                 threadControl.destroy(); 
    601598                tomcat_server_up = true; 
    602599                JOptionPane.showMessageDialog((Component) null, "Tomcat server has been Restarted successfully!"); 
     
    621618                Runnable startupMysqlThread = threadControl.new startupMysqlServer("start-mysql"); 
    622619                new Thread(startupMysqlThread).start(); 
    623                 threadControl.destroy(); 
    624620                mysql_server_up = true; 
    625621                JOptionPane.showMessageDialog((Component) null, "MYSQL server has been Startup successfully!"); 
     
    643639                Runnable shutdownMysqlThread = threadControl.new shutdownMysqlServer("stop-mysql"); 
    644640                new Thread(shutdownMysqlThread).start(); 
    645                 threadControl.destroy(); 
    646641                JOptionPane.showMessageDialog((Component) null, "MYSQL server has been Shutdown successfully !"); 
    647642                mysql_server_up = false; 
     
    666661                Runnable restartMysqlThread = threadControl.new restartMysqlServer("restart-mysql"); 
    667662                new Thread(restartMysqlThread).start(); 
    668                 threadControl.destroy(); 
    669663                JOptionPane.showMessageDialog((Component) null, "MYSQL server has been Restarted successfully!"); 
    670664                mysql_server_up = true; 
  • main/trunk/greenstone3/src/java/org/greenstone/admin/gui/ThreadControl.java

    r24408 r28862  
    270270 
    271271     
    272     public void destroy(){ 
    273     } 
    274272} 
    275273