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 intforkChannelIdprivate booleanisDebugprivate ConsoleLoggerlogger
-
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.FiledumpStreamException(java.lang.Throwable t)java.io.FiledumpStreamText(java.lang.String text)java.io.FilegetCommandStreamBinaryFile()java.lang.ObjectgetConsoleLock()ConsoleLoggergetConsoleLogger()java.io.FilegetEventStreamBinaryFile()intgetForkChannelId()The index of the forked JVM, from 1 to N.java.lang.StringgetSessionId()voidlogWarningAtEnd(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:
getSessionIdin interfaceForkNodeArguments
-
getForkChannelId
public int getForkChannelId()
Description copied from interface:ForkNodeArgumentsThe index of the forked JVM, from 1 to N.- Specified by:
getForkChannelIdin interfaceForkNodeArguments- Returns:
- index of the forked JVM
-
dumpStreamText
@Nonnull public java.io.File dumpStreamText(@Nonnull java.lang.String text)- Specified by:
dumpStreamTextin interfaceForkNodeArguments
-
dumpStreamException
@Nonnull public java.io.File dumpStreamException(@Nonnull java.lang.Throwable t)- Specified by:
dumpStreamExceptionin interfaceForkNodeArguments
-
logWarningAtEnd
public void logWarningAtEnd(@Nonnull java.lang.String text)- Specified by:
logWarningAtEndin interfaceForkNodeArguments
-
getConsoleLogger
@Nonnull public ConsoleLogger getConsoleLogger()
- Specified by:
getConsoleLoggerin interfaceForkNodeArguments
-
getConsoleLock
@Nonnull public java.lang.Object getConsoleLock()
- Specified by:
getConsoleLockin interfaceForkNodeArguments
-
getEventStreamBinaryFile
public java.io.File getEventStreamBinaryFile()
- Specified by:
getEventStreamBinaryFilein interfaceForkNodeArguments
-
getCommandStreamBinaryFile
public java.io.File getCommandStreamBinaryFile()
- Specified by:
getCommandStreamBinaryFilein interfaceForkNodeArguments
-
-