TPTP 4.5.0 Platform Project
Internal API Specification

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

java.lang.Object
  extended by org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
      extended by org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJUnitDelegate
          extended by org.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, org.eclipse.tptp.trace.ui.provisional.launcher.IParameterExtractor

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(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
          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, getLaunchTypeWorkspaceFilters, 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.

Specified by:
createAgent in interface org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorProcessLauncher
Overrides:
createAgent in class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
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(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
Returns the process parameters for the JUnit Launch type.

Specified by:
getProcessParameters in interface org.eclipse.tptp.trace.ui.provisional.launcher.IParameterExtractor
Overrides:
getProcessParameters in class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
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.

Specified by:
configureProcess in interface org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorProcessLauncher
Overrides:
configureProcess in class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
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.

Overrides:
getClassPath in class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher

TPTP 4.5.0 Platform Project
Internal API Specification