| java.lang.Object org.cougaar.core.thread.SchedulableStatus
SchedulableStatus | final public class SchedulableStatus (Code) | | An optional utility class for use by
java.lang.Runnable s
running in a pooled
org.cougaar.core.service.ThreadService thread to tell the
ThreadService why they are running
so long (for example, due to a blocking I/O call).
For example:
try {
SchedulableStatus.beginNetIO("download url");
// open a URLConnection, read from socket, etc.
} finally {
SchedulableStatus.endBlocking();
}
This information is shown in the
TopPlugin 's "/threads/top"
servlet.
|
CPUINTENSIVE | final public static int CPUINTENSIVE(Code) | | |
FILEIO | final public static int FILEIO(Code) | | |
NETIO | final public static int NETIO(Code) | | |
NOT_BLOCKING | final public static int NOT_BLOCKING(Code) | | |
OTHER | final public static int OTHER(Code) | | |
WAIT | final public static int WAIT(Code) | | |
beginBlocking | public static void beginBlocking(int type, String excuse)(Code) | | |
beginCPUIntensive | public static void beginCPUIntensive(String excuse)(Code) | | |
beginFileIO | public static void beginFileIO(String excuse)(Code) | | |
beginNetIO | public static void beginNetIO(String excuse)(Code) | | |
endBlocking | public static void endBlocking()(Code) | | |
|
|