Class CpsThreadDump
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.cps.CpsThreadDump
-
public final class CpsThreadDump extends Object
Immutable snapshot of a state ofCpsThreadGroup
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CpsThreadDump.ThreadInfo
-
Field Summary
Fields Modifier and Type Field Description static CpsThreadDump
EMPTY
Constant that indicates everything is done and no thread is alive.static CpsThreadDump
UNKNOWN
Deprecated.boolean
valid
Whether this is an actual list of threads, or just some special text such as a list of pickles.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CpsThreadDump
from(Throwable t)
static CpsThreadDump
from(CpsThreadGroup g)
static CpsThreadDump
fromText(String text)
A mock thread dump that merely displays some fixed text.List<CpsThreadDump.ThreadInfo>
getThreads()
void
print(PrintStream ps)
void
print(PrintWriter w)
String
toString()
-
-
-
Field Detail
-
valid
public final boolean valid
Whether this is an actual list of threads, or just some special text such as a list of pickles.
-
EMPTY
public static final CpsThreadDump EMPTY
Constant that indicates everything is done and no thread is alive.
-
UNKNOWN
@Deprecated public static final CpsThreadDump UNKNOWN
Deprecated.
-
-
Method Detail
-
getThreads
public List<CpsThreadDump.ThreadInfo> getThreads()
-
print
public void print(PrintStream ps)
-
print
public void print(PrintWriter w)
-
from
public static CpsThreadDump from(Throwable t)
-
from
public static CpsThreadDump from(CpsThreadGroup g)
-
fromText
@NonNull public static CpsThreadDump fromText(@NonNull String text)
A mock thread dump that merely displays some fixed text.- Parameters:
text
- possibly multiline string
-
-