Package org.apache.maven.surefire.booter
Class ForkedNodeArg
- java.lang.Object
-
- org.apache.maven.surefire.booter.ForkedNodeArg
-
- All Implemented Interfaces:
ForkNodeArguments
public final class ForkedNodeArg extends java.lang.Object implements ForkNodeArguments
-
-
Field Summary
Fields Modifier and Type Field Description private int
forkChannelId
private boolean
isDebug
private ConsoleLogger
logger
-
Constructor Summary
Constructors Constructor Description ForkedNodeArg(int forkChannelId, boolean isDebug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
dumpStreamException(java.lang.Throwable t)
java.io.File
dumpStreamText(java.lang.String text)
java.io.File
getCommandStreamBinaryFile()
java.lang.Object
getConsoleLock()
ConsoleLogger
getConsoleLogger()
java.io.File
getEventStreamBinaryFile()
int
getForkChannelId()
The index of the forked JVM, from 1 to N.java.lang.String
getSessionId()
void
logWarningAtEnd(java.lang.String text)
-
-
-
Field Detail
-
forkChannelId
private final int forkChannelId
-
logger
private final ConsoleLogger logger
-
isDebug
private final boolean isDebug
-
-
Method Detail
-
getSessionId
@Nonnull public java.lang.String getSessionId()
- Specified by:
getSessionId
in interfaceForkNodeArguments
-
getForkChannelId
public int getForkChannelId()
Description copied from interface:ForkNodeArguments
The index of the forked JVM, from 1 to N.- Specified by:
getForkChannelId
in interfaceForkNodeArguments
- Returns:
- index of the forked JVM
-
dumpStreamText
@Nonnull public java.io.File dumpStreamText(@Nonnull java.lang.String text)
- Specified by:
dumpStreamText
in interfaceForkNodeArguments
-
dumpStreamException
@Nonnull public java.io.File dumpStreamException(@Nonnull java.lang.Throwable t)
- Specified by:
dumpStreamException
in interfaceForkNodeArguments
-
logWarningAtEnd
public void logWarningAtEnd(@Nonnull java.lang.String text)
- Specified by:
logWarningAtEnd
in interfaceForkNodeArguments
-
getConsoleLogger
@Nonnull public ConsoleLogger getConsoleLogger()
- Specified by:
getConsoleLogger
in interfaceForkNodeArguments
-
getConsoleLock
@Nonnull public java.lang.Object getConsoleLock()
- Specified by:
getConsoleLock
in interfaceForkNodeArguments
-
getEventStreamBinaryFile
public java.io.File getEventStreamBinaryFile()
- Specified by:
getEventStreamBinaryFile
in interfaceForkNodeArguments
-
getCommandStreamBinaryFile
public java.io.File getCommandStreamBinaryFile()
- Specified by:
getCommandStreamBinaryFile
in interfaceForkNodeArguments
-
-