Changeset 10471

Show
Ignore:
Timestamp:
10/25/10 15:01:24 (3 years ago)
Author:
Snyder.Jason
Message:

starting alf, wavedash, or nodeBooter now checks to see if the naming service is running and starts it if necessary

Location:
ossiedev/trunk/tools/OEF/src/edu/vt/ossie/actionSets
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/trunk/tools/OEF/src/edu/vt/ossie/actionSets/ALF.java

    r10403 r10471  
    66import org.eclipse.ui.IWorkbenchWindowActionDelegate; 
    77import edu.vt.ossie.OWDPlugin; 
     8import static edu.vt.ossie.NodeBooterUtils.namingServiceIsRunning; 
    89import static edu.vt.ossie.NodeBooterUtils.nodeBooterIsRunning; 
     10import static edu.vt.ossie.NodeBooterUtils.startNamingService; 
    911import static edu.vt.ossie.NodeBooterUtils.startNodeBooterWithDefaults; 
    1012/** 
     
    3537        public void run(IAction action) 
    3638        { 
     39                 
     40                //start the naming service if necessary 
     41        if(!namingServiceIsRunning()) 
     42                startNamingService(); 
     43         
    3744                //check to see if nodebooter is running 
    3845                //if not, start it up with the domain and device managers from  
  • ossiedev/trunk/tools/OEF/src/edu/vt/ossie/actionSets/NodeBooter.java

    r7887 r10471  
    66import org.eclipse.ui.IWorkbenchWindowActionDelegate; 
    77import edu.vt.ossie.dialogs.NodeBooterDialog; 
     8import static edu.vt.ossie.NodeBooterUtils.namingServiceIsRunning; 
     9import static edu.vt.ossie.NodeBooterUtils.startNamingService; 
    810 
    911/** 
     
    1113 *  
    1214 * 
    13  * @author $Author: Snyder.Jason $ 
     15 * @author $Author$ 
    1416 * @version $Id 
    1517 */ 
     
    3638        try 
    3739        { 
     40                //start the naming service if necessary 
     41                if(!namingServiceIsRunning()) 
     42                        startNamingService(); 
     43                 
    3844            NodeBooterDialog dialog = new NodeBooterDialog(window.getShell()); 
    3945            dialog.open(); 
  • ossiedev/trunk/tools/OEF/src/edu/vt/ossie/actionSets/WaveDash.java

    r10403 r10471  
    33import static edu.vt.ossie.NodeBooterUtils.nodeBooterIsRunning; 
    44import static edu.vt.ossie.NodeBooterUtils.startNodeBooterWithDefaults; 
     5import static edu.vt.ossie.NodeBooterUtils.namingServiceIsRunning; 
     6import static edu.vt.ossie.NodeBooterUtils.startNamingService; 
    57 
     8import org.apache.log4j.Logger; 
    69import org.eclipse.jface.action.IAction; 
    710import org.eclipse.jface.viewers.ISelection; 
     
    3740        { 
    3841                 
     42                if(!namingServiceIsRunning()) 
     43                        startNamingService(); 
     44                 
    3945                //check to see if nodebooter is running 
    4046                //if not, start it up with the domain and device managers from  
     
    4248                if(!nodeBooterIsRunning()) 
    4349                { 
     50                        log.debug("starting nodebooter"); 
    4451                        startNodeBooterWithDefaults(); 
    4552                } 
     
    5764            // Nothing to do 
    5865        } 
     66         
     67        private static final Logger log = 
     68        OWDPlugin.getLogManager().getLogger(WaveDash.class); 
    5969 
    6070}