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 io.deephaven.process.ProcessInfo
createForCurrentProcess
(com.fishlib.configuration.Configuration config, String processInfoId) static io.deephaven.process.ProcessInfo
createOrGetForCurrentProcess
(com.fishlib.configuration.Configuration config, String processInfoId) static String
Generates a unique identifier string suitable for use as a worker identifier.static io.deephaven.process.ProcessUniqueId
static 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 worker identifier. This allows theRemoteQueryDispatcher
to obtain and identifier that can be passed to aRemoteQueryProcessor
so that all logging for a worker will use the same processInfoId. Generating it here encapsulates where it comes from.- Returns:
- a unique identifier string
-
getThisProcessId
@Nullable public static io.deephaven.process.ProcessUniqueId getThisProcessId() -
getThisProcessIdValue
-
createForCurrentProcess
public static io.deephaven.process.ProcessInfo createForCurrentProcess(com.fishlib.configuration.Configuration config, String processInfoId) throws IOException - Throws:
IOException
-
createOrGetForCurrentProcess
public static io.deephaven.process.ProcessInfo createOrGetForCurrentProcess(com.fishlib.configuration.Configuration config, String processInfoId) throws IOException - Throws:
IOException
-