Package io.deephaven.process
Class ProcessInfoConfig
java.lang.Object
io.deephaven.process.ProcessInfoConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The defaultSplayedPath
root forProcessInfo.getHostPathInfo()
.static final String
The lookup key forProcessInfo.getHostPathInfo()
.static final String
The lookup key forProcessInfo.getId()
.static final String
The lookup key to see ifProcessInfo.getSystemInfo()
is enabled.static final boolean
The default value to see ifProcessInfo.getSystemInfo()
is enabled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessInfo
createForCurrentProcess
(Configuration config) static ProcessInfo
createForCurrentProcess
(Configuration config, String processInfoId) static ProcessInfo
createOrGetForCurrentProcess
(Configuration config, String processInfoId) static String
Generates a unique identifier string suitable for use as a process identifier.static @Nullable io.deephaven.process.ProcessUniqueId
static @Nullable String
-
Field Details
-
PROCESS_INFO_ID_KEY
The lookup key forProcessInfo.getId()
. If not present, will default to a random id.- See Also:
-
PROCESS_INFO_SYSTEM_INFO_ENABLED_KEY
The lookup key to see ifProcessInfo.getSystemInfo()
is enabled. If not present, will default toSYSTEM_INFO_ENABLED_DEFAULT
.- See Also:
-
SYSTEM_INFO_ENABLED_DEFAULT
public static final boolean SYSTEM_INFO_ENABLED_DEFAULTThe default value to see ifProcessInfo.getSystemInfo()
is enabled.- See Also:
-
HOST_PATH_INFO_DIR_KEY
The lookup key forProcessInfo.getHostPathInfo()
. If not present, will default toHOST_PATH_INFO_DIR_DEFAULT
.- See Also:
-
HOST_PATH_INFO_DIR_DEFAULT
The defaultSplayedPath
root forProcessInfo.getHostPathInfo()
.- See Also:
-
-
Constructor Details
-
ProcessInfoConfig
public ProcessInfoConfig()
-
-
Method Details
-
generateNewProcessInfoId
Generates a unique identifier string suitable for use as a process identifier. This allows a creating process to obtain an identifier that can be passed to a new process for use as the processInfoId. Generating it here encapsulates where it comes from.- Returns:
- a unique identifier string
-
getThisProcessId
@Nullable public static @Nullable io.deephaven.process.ProcessUniqueId getThisProcessId() -
getThisProcessIdValue
-
createForCurrentProcess
- Throws:
IOException
-
createForCurrentProcess
public static ProcessInfo createForCurrentProcess(Configuration config, String processInfoId) throws IOException - Throws:
IOException
-
createOrGetForCurrentProcess
public static ProcessInfo createOrGetForCurrentProcess(Configuration config, String processInfoId) throws IOException - Throws:
IOException
-