org.objectweb.proactive.core.descriptor
Class Launcher

java.lang.Object
  extended byorg.objectweb.proactive.core.descriptor.Launcher

public class Launcher
extends java.lang.Object

This class provides the stuff useful to launch an application directly from a proactive descriptor XML file. be careful, your xml file must define a mainDefinition tag that contains the main class path, otherwise the application will not be launched.

Since:
ProActive 3.0
Version:
1.0, 2005/09/20
Author:
ProActive team

Constructor Summary
Launcher(java.lang.String fileDescriptorPath)
          Conctructor for a launcher parse a xml pad url
 
Method Summary
 void activate()
          activate all main nodes and launch the main classes
 ProActiveDescriptor getProActiveDescriptor()
          return the launcher's pad
 boolean isActivated()
          return true if the launcher has ever been activated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Launcher

public Launcher(java.lang.String fileDescriptorPath)
         throws ProActiveException,
                NodeException
Conctructor for a launcher parse a xml pad url

Parameters:
fileDescriptorPath - the file path of the xml descriptor
Throws:
java.io.IOException
ProActiveException
NodeException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
Method Detail

activate

public void activate()
              throws ProActiveException,
                     NodeException,
                     java.lang.ClassNotFoundException,
                     java.lang.NoSuchMethodException
activate all main nodes and launch the main classes

Throws:
ProActiveException
NodeException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

getProActiveDescriptor

public ProActiveDescriptor getProActiveDescriptor()
return the launcher's pad

Returns:
ProActiveDescriptor

isActivated

public boolean isActivated()
return true if the launcher has ever been activated

Returns:
true if not activated


Copyright 2001-2005 INRIA All Rights Reserved.