| java.lang.Object java.lang.Thread org.netbeans.lib.profiler.server.ProfilerServer
ProfilerServer | public class ProfilerServer extends Thread implements CommonConstants(Code) | | This class contains functionality for starting (attaching to) the Target Application (TA), and for
communication between the profiling back end and the tool (server and client).
author: Tomas Hurka author: Misha Dmitriev author: Ian Formanek |
ATTACH_DIRECT | final public static int ATTACH_DIRECT(Code) | | |
ATTACH_DYNAMIC | final public static int ATTACH_DYNAMIC(Code) | | |
execInSeparateThreadLock | static Object execInSeparateThreadLock(Code) | | |
execInSeparateThreadOpCode | static int execInSeparateThreadOpCode(Code) | | |
activate | public static void activate(String fullJFluidPath, int portNo, int activateCode)(Code) | | |
activate | public static void activate(String fullJFluidPath, int portNo, int activateCode, int timeOut)(Code) | | Entrypoint in the usage scenario when the client attaches to the running target app using an OS signal,
or the "attach on startup" method. On JDK 1.5,
called from ProfilerActivate15.premain().
activateCode == 0 : "attach on the fly", activateCode == 1 : "attach on startup"
Parameters: fullJFluidPath - Full path to the agent libs Parameters: portNo - Port number to use Parameters: activateCode - one of ATTACH_DIRECT or ATTACH_DYNAMIC, determines whether the server is started in dynamicattach mode ( JDK 1.6) or Direct attach Parameters: timeOut - Time out in seconds for server socket, or 0 for no timeout See Also: ProfilerServer.ATTACH_DIRECT See Also: ProfilerServer.ATTACH_DYNAMIC |
getAndCheckLastResponse | public boolean getAndCheckLastResponse()(Code) | | |
getLastResponse | public static synchronized Response getLastResponse()(Code) | | |
initLocalizedResources | static void initLocalizedResources()(Code) | | |
isRemoteProfiling | public boolean isRemoteProfiling()(Code) | | |
isTargetAppMainThreadComplete | public static boolean isTargetAppMainThreadComplete()(Code) | | |
loadNativeLibrary | static void loadNativeLibrary(String fullJFluidPath, boolean fullPathToLibSpecified)(Code) | | |
main | public static void main(String[] args)(Code) | | Entrypoint in the usage scenario where the client starts and stops the target application.
Start the communication thread and then the target application.
args[0] is the full path to the directory where JFluid native libraries are contained.
args[1] is the communication port number.
args[2] (optional) if it is a number, it is a timeout for the profiler server (in seconds) to wait until the
client connects
args[2 or 3] is the target app main class name; args[3 or 4..n] are its arguments.
|
notifyClientOnResultsAvailability | public static void notifyClientOnResultsAvailability()(Code) | | |
requestClientResetResults | public static void requestClientResetResults()(Code) | | |
requestClientTakeSnapshot | public static void requestClientTakeSnapshot()(Code) | | |
sendClassLoaderUnloadingCommand | public void sendClassLoaderUnloadingCommand()(Code) | | |
sendComplexCmdToClient | public synchronized void sendComplexCmdToClient(Command cmd)(Code) | | |
sendComplexResponseToClient | public synchronized void sendComplexResponseToClient(Response resp)(Code) | | |
sendEventBufferDumpedCommand | public boolean sendEventBufferDumpedCommand(int length, boolean waitForResponse)(Code) | | |
sendSimpleCmdToClient | public synchronized void sendSimpleCmdToClient(int cmdType)(Code) | | |
sendSimpleResponseToClient | public synchronized void sendSimpleResponseToClient(boolean val, String errorMessage)(Code) | | |
startProfilingPointsActive | static boolean startProfilingPointsActive()(Code) | | |
|
|