TPTP 4.5.0 Platform Project
Internal API Specification

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

java.lang.Object
  extended by org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
      extended by org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJavaDelegate
          extended by org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentJavaLauncherDelegate
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 InstrumentJavaLauncherDelegate
extends AbstractJavaDelegate

The java launch delegator for the instrument data collector.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJavaDelegate
AbstractJavaDelegate.JavaConfigurationExtended
 
Field Summary
 
Fields inherited from class org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJavaDelegate
javaLaunchConfigurationDelegate
 
Fields inherited from class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
conf, node
 
Constructor Summary
InstrumentJavaLauncherDelegate()
          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 Java 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)
          Creates the generators and calls the register instrument handlers for the selected analysis types.
 
Methods inherited from class org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJavaDelegate
getClasspath, getMainTypeName, getProgramArguments, getVMArguments, getWorkingDirectory
 
Methods inherited from class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
createNode, createProcess, getAgentName, getAgentType, getClasspathString, getHostName, getLaunchTypeWorkspaceFilters, 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

InstrumentJavaLauncherDelegate

public InstrumentJavaLauncherDelegate()
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
Creates the generators and calls the register instrument handlers for the selected analysis types.

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