org.netbeans.modules.j2ee.deployment.profiler.api
Class ProfilerSupport

java.lang.Object
  extended by org.netbeans.modules.j2ee.deployment.profiler.api.ProfilerSupport

public final class ProfilerSupport
extends Object

Allows to determine current state of a Profiler registered in the default Lookup.


Field Summary
static int STATE_BLOCKING
          The Profiler agent is running and ready for the Profiler to connect, target JVM is blocked.
static int STATE_INACTIVE
          The Profiler agent isn't running.
static int STATE_PROFILING
          The Profiler agent is running and connected to Profiler, target JVM is running.
static int STATE_RUNNING
          The Profiler agent is running and ready for the Profiler to connect, target JVM is running.
static int STATE_STARTING
          The Profiler agent is starting to STATE_BLOCKING or STATE_RUNNING state, target JVM isn't running.
 
Constructor Summary
ProfilerSupport()
           
 
Method Summary
static int getState()
          Returns the current state of a Profiler registered into Lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_INACTIVE

public static int STATE_INACTIVE
The Profiler agent isn't running.


STATE_STARTING

public static int STATE_STARTING
The Profiler agent is starting to STATE_BLOCKING or STATE_RUNNING state, target JVM isn't running.


STATE_BLOCKING

public static int STATE_BLOCKING
The Profiler agent is running and ready for the Profiler to connect, target JVM is blocked.


STATE_RUNNING

public static int STATE_RUNNING
The Profiler agent is running and ready for the Profiler to connect, target JVM is running.


STATE_PROFILING

public static int STATE_PROFILING
The Profiler agent is running and connected to Profiler, target JVM is running.

Constructor Detail

ProfilerSupport

public ProfilerSupport()
Method Detail

getState

public static int getState()
Returns the current state of a Profiler registered into Lookup.

Returns:
the current profiler state or STATE_INACTIVE if no Profiler is registered in the default Lookup.

 

Built on March 27 2006.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.