Package io.deephaven.util.process
Class BaseProcessEnvironment
java.lang.Object
io.deephaven.util.process.BaseProcessEnvironment
- All Implemented Interfaces:
ProcessEnvironment
- Direct Known Subclasses:
DefaultProcessEnvironment
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.util.process.ProcessEnvironment
ProcessEnvironment.Factory, ProcessEnvironment.GlobalHelper
-
Field Summary
Modifier and TypeFieldDescriptionprotected final FatalErrorReporter
The shared fatal error reporter.protected final Logger
The process trace log.protected final String
The class name for "main".protected final ShutdownManager
The shared manager for tasks to be executed on shutdown. -
Constructor Summary
ModifierConstructorDescriptionprotected
BaseProcessEnvironment
(@NotNull ShutdownManager shutdownManager, @NotNull FatalErrorReporter fatalErrorReporter, @NotNull String mainClassName, @NotNull Logger log) Constructor, intended only for sub-classes. -
Method Summary
Modifier and TypeMethodDescriptionfinal FatalErrorReporter
Access a shared fatal error reporter.final String
Access the main class name.final ShutdownManager
Access a shared manager for tasks to be executed on shutdown.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.util.process.ProcessEnvironment
onShutdown, onStartup
-
Field Details
-
shutdownManager
The shared manager for tasks to be executed on shutdown. -
fatalErrorReporter
The shared fatal error reporter. -
mainClassName
The class name for "main". -
log
The process trace log.
-
-
Constructor Details
-
BaseProcessEnvironment
protected BaseProcessEnvironment(@NotNull @NotNull ShutdownManager shutdownManager, @NotNull @NotNull FatalErrorReporter fatalErrorReporter, @NotNull @NotNull String mainClassName, @NotNull @NotNull Logger log) Constructor, intended only for sub-classes.- Parameters:
shutdownManager
-fatalErrorReporter
-mainClassName
-log
-
-
-
Method Details
-
getShutdownManager
Description copied from interface:ProcessEnvironment
Access a shared manager for tasks to be executed on shutdown.- Specified by:
getShutdownManager
in interfaceProcessEnvironment
- Returns:
- The ShutdownManager
-
getFatalErrorReporter
Description copied from interface:ProcessEnvironment
Access a shared fatal error reporter.- Specified by:
getFatalErrorReporter
in interfaceProcessEnvironment
- Returns:
- The FatalErrorReporter
-
getMainClassName
Description copied from interface:ProcessEnvironment
Access the main class name.- Specified by:
getMainClassName
in interfaceProcessEnvironment
- Returns:
- The main class name
-