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 StringHOST_PATH_INFO_DIR_DEFAULTThe defaultSplayedPathroot forProcessInfo.getHostPathInfo().static StringHOST_PATH_INFO_DIR_KEYThe lookup key forProcessInfo.getHostPathInfo().static StringPROCESS_INFO_ID_KEYThe lookup key forProcessInfo.getId().static StringPROCESS_INFO_SYSTEM_INFO_ENABLED_KEYThe lookup key to see ifProcessInfo.getSystemInfo()is enabled.static booleanSYSTEM_INFO_ENABLED_DEFAULTThe 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.ProcessInfocreateForCurrentProcess(com.fishlib.configuration.Configuration config, String processInfoId)static StringgenerateNewProcessInfoId()Generates a unique identifier string suitable for use as a worker identifier.static io.deephaven.process.ProcessUniqueIdgetThisProcessId()static StringgetThisProcessIdValue()
-
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 defaultSplayedPathroot 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 theRemoteQueryDispatcherto obtain and identifier that can be passed to aRemoteQueryProcessorso 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
-