Java Doc for Profiler.java in  » IDE-Netbeans » cvsclient » org » netbeans » lib » profiler » common » 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.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.lib.profiler.common.Profiler

Profiler
abstract public class Profiler (Code)
An abstract superclass representing the entire Profiler. The Profiler class should add a "state" on top of the underlying JFluid engine, providing easier access to its various functions. A concrete subclass would implement the abstract methods in a specific way (integrated into an IDE, standalone GUI tool, non-gui tool, etc.). This class can also be used by any profiling code to obtain the concrete implementation of the Profiler at any given moment by calling the getDefault () method. Such parts, if they only need to call methods of the Profiler class and/or any of the underlying libraries (jfluid.jar, jfluid-ui.jar) would then be independent of a concrete form of the profiler, whether it if GUI/Non-GUI or Integrated/Standalone.
author:
   Tomas Hurka
author:
   Ian Formanek


Field Summary
final public static  intERROR
     Serious problem, application may be crippled.
final public static  intEXCEPTION
     Something went wrong, though it can be recovered.
final public static  intINFORMATIONAL
     Message that would be useful for tracing events but which need not be a problem.
final public static  intMODE_ATTACH
    
final public static  intMODE_PROFILE
    
final public static  intPROFILING_INACTIVE
    
final public static  intPROFILING_IN_TRANSITION
    
final public static  intPROFILING_PAUSED
    
final public static  intPROFILING_RUNNING
    
final public static  intPROFILING_STARTED
    
final public static  intPROFILING_STOPPED
    
final public static  intUSER
     Something the user should be aware of.
final public static  intWARNING
     Something went wrong in the software, but it is continuing and the user need not be bothered.


Method Summary
final public  voidaddProfilingStateListener(ProfilingStateListener profilingStateListener)
    
abstract public  booleanattachToApp(ProfilingSettings profilingSettings, AttachSettings as)
    
abstract public  booleanconnectToStartedApp(ProfilingSettings profilingSettings, SessionSettings sessionSettings)
    
public static  voiddebug(String s)
    
public static  voiddebug(Exception e)
    
abstract public  voiddetachFromApp()
    
abstract public  voiddisplayError(String message)
     Displays a user-level message with error.
abstract public  voiddisplayInfo(String message)
     Displays a user-level message with information.
abstract public  voiddisplayWarning(String message)
     Displays a user-level message with warning.
final protected  voidfireInstrumentationChanged(int oldInstrType, int currentInstrType)
    
final protected  voidfireProfilingStateChange(int oldProfilingState, int newProfilingState)
    
final protected  voidfireThreadsMonitoringChange()
    
abstract public  intgetAgentState(String host, int port, int agentId)
     Obtains a state for agent listening on given port, checking whether it has the expected agentId.
abstract public  SessionSettingsgetCurrentSessionSettings()
    
public static synchronized  ProfilergetDefault()
    
abstract public  DefinedFilterSetsgetDefinedFilterSets()
    
abstract public  GlobalFiltersgetGlobalFilters()
    
abstract public  GlobalProfilingSettingsgetGlobalProfilingSettings()
    
abstract public  ProfilingSettingsgetLastProfilingSettings()
    
abstract public  StringgetLibsDir()
    
abstract public  intgetPlatformArchitecture(String platformName)
    
abstract public  StringgetPlatformJDKVersion(String platformName)
    
abstract public  StringgetPlatformJavaFile(String platformName)
    
abstract public  intgetProfilingMode()
    
abstract public  intgetProfilingState()
    
abstract public  TargetAppRunnergetTargetAppRunner()
    
abstract public  ThreadsDataManagergetThreadsManager()
    
abstract public  booleangetThreadsMonitoringEnabled()
    
abstract public  VMTelemetryDataManagergetVMTelemetryManager()
    
abstract public  voidinstrumentSelectedRoots(ClientUtils.SourceCodeSelection[] rootMethods)
    
abstract public  voidlog(int severity, String message)
     Silently log a message.
abstract public  voidmodifyCurrentProfiling(ProfilingSettings profilingSettings)
    
abstract public  voidnotifyException(int severity, Exception e)
     Notify the user about an internal error.
abstract public  voidopenJavaSource(String classname, String methodName, String methodSig)
    
public  booleanprepareInstrumentation(ProfilingSettings profilingSettings)
    
abstract public  booleanprofileClass(ProfilingSettings profilingSettings, SessionSettings sessionSettings)
    
final public  booleanprofilingInProgress()
    
final public  voidremoveProfilingStateListener(ProfilingStateListener profilingStateListener)
    
abstract public  booleanrerunAvaliable()
    
abstract public  voidrerunLastProfiling()
    
abstract public  booleanrunCalibration(boolean checkForSaved, String jvmExecutable, String jdkString, int architecture)
    
abstract public  voidsetThreadsMonitoringEnabled(boolean enabled)
    
abstract public  booleanshutdownBlockedAgent(String host, int port, int agentId)
    
abstract public  voidstopApp()
    

Field Detail
ERROR
final public static int ERROR(Code)
Serious problem, application may be crippled.



EXCEPTION
final public static int EXCEPTION(Code)
Something went wrong, though it can be recovered.



INFORMATIONAL
final public static int INFORMATIONAL(Code)
Message that would be useful for tracing events but which need not be a problem.



MODE_ATTACH
final public static int MODE_ATTACH(Code)



MODE_PROFILE
final public static int MODE_PROFILE(Code)



PROFILING_INACTIVE
final public static int PROFILING_INACTIVE(Code)



PROFILING_IN_TRANSITION
final public static int PROFILING_IN_TRANSITION(Code)



PROFILING_PAUSED
final public static int PROFILING_PAUSED(Code)



PROFILING_RUNNING
final public static int PROFILING_RUNNING(Code)



PROFILING_STARTED
final public static int PROFILING_STARTED(Code)



PROFILING_STOPPED
final public static int PROFILING_STOPPED(Code)



USER
final public static int USER(Code)
Something the user should be aware of.



WARNING
final public static int WARNING(Code)
Something went wrong in the software, but it is continuing and the user need not be bothered.





Method Detail
addProfilingStateListener
final public void addProfilingStateListener(ProfilingStateListener profilingStateListener)(Code)



attachToApp
abstract public boolean attachToApp(ProfilingSettings profilingSettings, AttachSettings as)(Code)



connectToStartedApp
abstract public boolean connectToStartedApp(ProfilingSettings profilingSettings, SessionSettings sessionSettings)(Code)



debug
public static void debug(String s)(Code)



debug
public static void debug(Exception e)(Code)



detachFromApp
abstract public void detachFromApp()(Code)



displayError
abstract public void displayError(String message)(Code)
Displays a user-level message with error. Can be run from any thread.
Parameters:
  message - The error message to display



displayInfo
abstract public void displayInfo(String message)(Code)
Displays a user-level message with information. Can be run from any thread.
Parameters:
  message - The message to display



displayWarning
abstract public void displayWarning(String message)(Code)
Displays a user-level message with warning. Can be run from any thread.
Parameters:
  message - The warning message to display



fireInstrumentationChanged
final protected void fireInstrumentationChanged(int oldInstrType, int currentInstrType)(Code)



fireProfilingStateChange
final protected void fireProfilingStateChange(int oldProfilingState, int newProfilingState)(Code)



fireThreadsMonitoringChange
final protected void fireThreadsMonitoringChange()(Code)



getAgentState
abstract public int getAgentState(String host, int port, int agentId)(Code)
Obtains a state for agent listening on given port, checking whether it has the expected agentId.
Parameters:
  host - Ignored for now
Parameters:
  port - Port number to be used to communicate with the agent
Parameters:
  agentId - Expected agent Id the state of the agent
See Also:   CommonConstants.AGENT_STATE_CONNECTED
See Also:   CommonConstants.AGENT_STATE_DIFFERENT_ID
See Also:   CommonConstants.AGENT_STATE_NOT_RUNNING
See Also:   CommonConstants.AGENT_STATE_OTHER_SESSION_IN_PROGRESS
See Also:   CommonConstants.AGENT_STATE_READY_DIRECT
See Also:   CommonConstants.AGENT_STATE_READY_DYNAMIC



getCurrentSessionSettings
abstract public SessionSettings getCurrentSessionSettings()(Code)



getDefault
public static synchronized Profiler getDefault()(Code)



getDefinedFilterSets
abstract public DefinedFilterSets getDefinedFilterSets()(Code)



getGlobalFilters
abstract public GlobalFilters getGlobalFilters()(Code)



getGlobalProfilingSettings
abstract public GlobalProfilingSettings getGlobalProfilingSettings()(Code)



getLastProfilingSettings
abstract public ProfilingSettings getLastProfilingSettings()(Code)



getLibsDir
abstract public String getLibsDir()(Code)



getPlatformArchitecture
abstract public int getPlatformArchitecture(String platformName)(Code)



getPlatformJDKVersion
abstract public String getPlatformJDKVersion(String platformName)(Code)



getPlatformJavaFile
abstract public String getPlatformJavaFile(String platformName)(Code)



getProfilingMode
abstract public int getProfilingMode()(Code)



getProfilingState
abstract public int getProfilingState()(Code)



getTargetAppRunner
abstract public TargetAppRunner getTargetAppRunner()(Code)



getThreadsManager
abstract public ThreadsDataManager getThreadsManager()(Code)



getThreadsMonitoringEnabled
abstract public boolean getThreadsMonitoringEnabled()(Code)



getVMTelemetryManager
abstract public VMTelemetryDataManager getVMTelemetryManager()(Code)



instrumentSelectedRoots
abstract public void instrumentSelectedRoots(ClientUtils.SourceCodeSelection[] rootMethods) throws ClassNotFoundException, InstrumentationException, BadLocationException, IOException, ClassFormatError, ClientUtils.TargetAppOrVMTerminated(Code)



log
abstract public void log(int severity, String message)(Code)
Silently log a message. This is not intended for user-level error notification, but rather for internal messages that would be logged based on the severity level.
Parameters:
  severity - The severity of the problem
Parameters:
  message - The message to log



modifyCurrentProfiling
abstract public void modifyCurrentProfiling(ProfilingSettings profilingSettings)(Code)



notifyException
abstract public void notifyException(int severity, Exception e)(Code)
Notify the user about an internal error. This is not intended for user-level error notification, but rather for internal unexpected problems that usually represent a bug in our code.
Parameters:
  severity - The severity of the problem
Parameters:
  e - The exception that occured



openJavaSource
abstract public void openJavaSource(String classname, String methodName, String methodSig)(Code)



prepareInstrumentation
public boolean prepareInstrumentation(ProfilingSettings profilingSettings)(Code)



profileClass
abstract public boolean profileClass(ProfilingSettings profilingSettings, SessionSettings sessionSettings)(Code)



profilingInProgress
final public boolean profilingInProgress()(Code)



removeProfilingStateListener
final public void removeProfilingStateListener(ProfilingStateListener profilingStateListener)(Code)



rerunAvaliable
abstract public boolean rerunAvaliable()(Code)



rerunLastProfiling
abstract public void rerunLastProfiling()(Code)



runCalibration
abstract public boolean runCalibration(boolean checkForSaved, String jvmExecutable, String jdkString, int architecture)(Code)



setThreadsMonitoringEnabled
abstract public void setThreadsMonitoringEnabled(boolean enabled)(Code)



shutdownBlockedAgent
abstract public boolean shutdownBlockedAgent(String host, int port, int agentId)(Code)



stopApp
abstract public void stopApp()(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.