TPTP 4.2.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application
Class InstrumentJUnitLauncherDelegate

java.lang.Object
  extended byorg.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
      extended byorg.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJUnitDelegate
          extended byorg.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentJUnitLauncherDelegate
All Implemented Interfaces:
org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorBaseLauncher, org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorMutualLauncher, org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorProcessLauncher

public class InstrumentJUnitLauncherDelegate
extends AbstractJUnitDelegate

The runtime JUnit launch delegator for the instrument data collector.


Field Summary
 
Fields inherited from class org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJUnitDelegate
junitConfiguration
 
Fields inherited from class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
conf, node
 
Constructor Summary
InstrumentJUnitLauncherDelegate()
          Default constructor.
 
Method Summary
 void configureProcess(Process process, org.eclipse.hyades.models.hierarchy.TRCProcessProxy trcProcessProxy)
          Configures the launch process.
 Agent createAgent(Process process, org.eclipse.hyades.models.hierarchy.TRCProcessProxy trcProcessProxy)
          Associate multiple agents to the given process.
protected  java.lang.String getClassPath()
          Retuns the classpath.
 org.eclipse.tptp.trace.ui.provisional.launcher.ProcessParameters getProcessParameters()
          Returns the process parameters for the JUnit Launch type.
 void preLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor)
          Checks the JUnit configuration before the process is launched.
 
Methods inherited from class org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJUnitDelegate
getClasspath, getClasspathString, getMainTypeName, getProgramArguments, getVMArguments, getWorkingDirectory
 
Methods inherited from class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
createNode, createProcess, getAgentName, getAgentType, getHostName, getLocation, getPortNumber, getProfileFile, isMutualLauncher, isProcessLauncher, postLaunch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentJUnitLauncherDelegate

public InstrumentJUnitLauncherDelegate()
Default constructor.

Method Detail

preLaunch

public void preLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration,
                      java.lang.String mode,
                      org.eclipse.debug.core.ILaunch launch,
                      org.eclipse.core.runtime.IProgressMonitor monitor)
               throws org.eclipse.core.runtime.CoreException
Checks the JUnit configuration before the process is launched.

Specified by:
preLaunch in interface org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorMutualLauncher
Overrides:
preLaunch in class AbstractJUnitDelegate
Parameters:
configuration - The launch configuration
mode - The mode of the launch
launch - The launch
monitor - The monitor
Throws:
org.eclipse.core.runtime.CoreException

createAgent

public Agent createAgent(Process process,
                         org.eclipse.hyades.models.hierarchy.TRCProcessProxy trcProcessProxy)
                  throws org.eclipse.core.runtime.CoreException
Associate multiple agents to the given process. The instrument agent and the PI Java agent.

Parameters:
process - the process to launch
trcProcessProxy - the trc process proxy
Returns:
The create agent
Throws:
org.eclipse.core.runtime.CoreException

getProcessParameters

public org.eclipse.tptp.trace.ui.provisional.launcher.ProcessParameters getProcessParameters()
Returns the process parameters for the JUnit Launch type.

Returns:
the ProcessParameters

configureProcess

public void configureProcess(Process process,
                             org.eclipse.hyades.models.hierarchy.TRCProcessProxy trcProcessProxy)
                      throws org.eclipse.core.runtime.CoreException
Configures the launch process.

Parameters:
process - the process to launch
trcProcessProxy - the trc process proxy
Throws:
org.eclipse.core.runtime.CoreException

getClassPath

protected java.lang.String getClassPath()
Retuns the classpath.


TPTP 4.2.0 Platform Project
Internal API Specification