Package io.deephaven.process
Class ProcessInfoConfig
java.lang.Object
io.deephaven.process.ProcessInfoConfig
public class ProcessInfoConfig extends Object
-
Field Summary
Fields Modifier and Type Field Description static String
HOST_PATH_INFO_DIR_DEFAULT
The defaultSplayedPath
root forProcessInfo.getHostPathInfo()
.static String
HOST_PATH_INFO_DIR_KEY
The lookup key forProcessInfo.getHostPathInfo()
.static String
PROCESS_INFO_ID_KEY
The lookup key forProcessInfo.getId()
.static String
PROCESS_INFO_SYSTEM_INFO_ENABLED_KEY
The lookup key to see ifProcessInfo.getSystemInfo()
is enabled.static boolean
SYSTEM_INFO_ENABLED_DEFAULT
The default value to see ifProcessInfo.getSystemInfo()
is enabled. -
Constructor Summary
Constructors Constructor Description ProcessInfoConfig()
-
Method Summary
Modifier and Type Method Description static io.deephaven.process.ProcessInfo
createForCurrentProcess(com.fishlib.configuration.Configuration config, String processInfoId)
static String
generateNewProcessInfoId()
Generates a unique identifier string suitable for use as a worker identifier.static io.deephaven.process.ProcessUniqueId
getThisProcessId()
static String
getThisProcessIdValue()
-
Field Details
-
PROCESS_INFO_ID_KEY
The lookup key forProcessInfo.getId()
. If not present, will default to a random id.- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
SYSTEM_INFO_ENABLED_DEFAULT
public static final boolean SYSTEM_INFO_ENABLED_DEFAULTThe default value to see ifProcessInfo.getSystemInfo()
is enabled.- See Also:
- Constant Field Values
-
HOST_PATH_INFO_DIR_KEY
The lookup key forProcessInfo.getHostPathInfo()
. If not present, will default toHOST_PATH_INFO_DIR_DEFAULT
.- See Also:
- Constant Field Values
-
HOST_PATH_INFO_DIR_DEFAULT
The defaultSplayedPath
root forProcessInfo.getHostPathInfo()
.- See Also:
- Constant Field Values
-
-
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
-