Java Doc for TargetAppRunner.java in  » IDE-Netbeans » cvsclient » org » netbeans » lib » profiler » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » cvsclient » org.netbeans.lib.profiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.lib.profiler.TargetAppRunner

TargetAppRunner
public class TargetAppRunner implements CommonConstants(Code)
Functionality for high-level control of the Target Application (TA) execution, plus some utility methods that seemed to fit best here.
author:
   Tomas Hurka
author:
   Misha Dmitriev
author:
   Ian Formanek



Constructor Summary
public  TargetAppRunner(ProfilerEngineSettings settings, AppStatusHandler ash, ProfilingPointsProcessor ppp)
    

Method Summary
public  voidaddProfilingEventListener(ProfilingEventListener profilingEventListener)
    
public  booleanattachToTargetJVM(File tvmDir)
     Attaches to a running application.
public  booleanattachToTargetVM()
    
public  booleanattachToTargetVMOnStartup()
    
public  booleancalibrateInstrumentationCode()
     This call runs the target JVM instance just to calibrate (that is, measure the time it takes to execute) the instrumentation code that we then inject into target app code.
public  booleanconnectToStartedVMAndStartTA()
     Connects to the target JVM started using startTargetVM(), and starts the target application.
public  voiddetachFromTargetJVM()
    
public  AppStatusHandlergetAppStatusHandler()
    
public static  TargetAppRunnergetDefault()
    
public  StringgetInternalStats()
    
public  ProfilerClientgetProfilerClient()
    
public  ProfilerEngineSettingsgetProfilerEngineSettings()
    
public  ProfilingPointsProcessorgetProfilingPointsProcessor()
    
public  ProfilingSessionStatusgetProfilingSessionStatus()
    
public  ProcessgetRunningAppProcess()
    
public  booleanhasSupportedJDKForHeapDump()
    
public  booleaninitiateSession(int attachMode, boolean calibrationOnlyRun)
    
public  booleanreadSavedCalibrationData()
    
public  voidremoveProfilingEventListener(ProfilingEventListener profilingEventListener)
    
public  voidresetTimers()
    
public  voidresumeTargetAppIfSuspended()
    
public  voidrunGC()
    
public  booleanstartTargetVM()
     Starts the the target JVM, that then waits for the tool to establish the socket connection and start the TA itself).
public  voidsuspendTargetAppIfRunning()
    
public  booleantargetAppIsRunning()
    
public  booleantargetAppSuspended()
    
public  booleantargetJVMIsAlive()
    
public  voidterminateTargetJVM()
    


Constructor Detail
TargetAppRunner
public TargetAppRunner(ProfilerEngineSettings settings, AppStatusHandler ash, ProfilingPointsProcessor ppp)(Code)




Method Detail
addProfilingEventListener
public void addProfilingEventListener(ProfilingEventListener profilingEventListener)(Code)



attachToTargetJVM
public boolean attachToTargetJVM(File tvmDir) throws IOException(Code)
Attaches to a running application. It is expected that prepareForAttach method is called before this one to prepare the target app environment for attaching.
Parameters:
  tvmDir - The working directory for the target application
throws:
  IOException - in case sending signal to target app failed



attachToTargetVM
public boolean attachToTargetVM()(Code)



attachToTargetVMOnStartup
public boolean attachToTargetVMOnStartup()(Code)
Attach to the started and waiting target JVM using the "attach on startup" method



calibrateInstrumentationCode
public boolean calibrateInstrumentationCode()(Code)
This call runs the target JVM instance just to calibrate (that is, measure the time it takes to execute) the instrumentation code that we then inject into target app code. The results are saved to be reused in subsequent runs.



connectToStartedVMAndStartTA
public boolean connectToStartedVMAndStartTA()(Code)
Connects to the target JVM started using startTargetVM(), and starts the target application. Error reporting happens in the same way as in runTargetApp().



detachFromTargetJVM
public void detachFromTargetJVM()(Code)



getAppStatusHandler
public AppStatusHandler getAppStatusHandler()(Code)



getDefault
public static TargetAppRunner getDefault()(Code)



getInternalStats
public String getInternalStats() throws ClientUtils.TargetAppOrVMTerminated(Code)



getProfilerClient
public ProfilerClient getProfilerClient()(Code)



getProfilerEngineSettings
public ProfilerEngineSettings getProfilerEngineSettings()(Code)



getProfilingPointsProcessor
public ProfilingPointsProcessor getProfilingPointsProcessor()(Code)



getProfilingSessionStatus
public ProfilingSessionStatus getProfilingSessionStatus()(Code)



getRunningAppProcess
public Process getRunningAppProcess()(Code)



hasSupportedJDKForHeapDump
public boolean hasSupportedJDKForHeapDump()(Code)



initiateSession
public boolean initiateSession(int attachMode, boolean calibrationOnlyRun)(Code)
Initiates profiling session
Parameters:
  attachMode - 0 = no attach; 1 = direct; 2 = dynamic
Parameters:
  calibrationOnlyRun - Returns TRUE if the connection to the profiler agent has been successfuly established



readSavedCalibrationData
public boolean readSavedCalibrationData()(Code)
true if the calibration data was read succesfully, false otherwise



removeProfilingEventListener
public void removeProfilingEventListener(ProfilingEventListener profilingEventListener)(Code)



resetTimers
public void resetTimers() throws ClientUtils.TargetAppOrVMTerminated(Code)



resumeTargetAppIfSuspended
public void resumeTargetAppIfSuspended() throws ClientUtils.TargetAppOrVMTerminated(Code)



runGC
public void runGC() throws ClientUtils.TargetAppOrVMTerminated(Code)



startTargetVM
public boolean startTargetVM()(Code)
Starts the the target JVM, that then waits for the tool to establish the socket connection and start the TA itself). This function returns boolean indicating success or failure, however the actual problem is reported inside it using methods of the AppStatusHandler passed to this TargetAppRunner.



suspendTargetAppIfRunning
public void suspendTargetAppIfRunning() throws ClientUtils.TargetAppOrVMTerminated(Code)



targetAppIsRunning
public boolean targetAppIsRunning()(Code)



targetAppSuspended
public boolean targetAppSuspended()(Code)



targetJVMIsAlive
public boolean targetJVMIsAlive()(Code)



terminateTargetJVM
public void terminateTargetJVM()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.