1 19 20 package org.netbeans.modules.j2ee.deployment.profiler.api; 21 22 import org.netbeans.modules.j2ee.deployment.impl.ServerRegistry; 23 import org.netbeans.modules.j2ee.deployment.profiler.spi.Profiler; 24 25 30 public final class ProfilerSupport { 31 32 35 public static int STATE_INACTIVE = 0; 36 37 41 public static int STATE_STARTING = 1; 42 43 47 public static int STATE_BLOCKING = 2; 48 49 53 public static int STATE_RUNNING = 3; 54 55 58 public static int STATE_PROFILING = 4; 59 60 66 public static int getState() { 67 Profiler profiler = ServerRegistry.getProfiler(); 68 return profiler == null ? STATE_INACTIVE 69 : profiler.getState(); 70 } 71 } 72 | Popular Tags |