public interface DominoProcess
This service is not guaranteed to be provided by every implementation.
Modifier and Type | Interface and Description |
---|---|
static interface |
DominoProcess.DominoThreadContext |
Modifier and Type | Method and Description |
---|---|
static DominoProcess |
get() |
void |
initializeProcess(String[] initArgs)
Initializes the Domino runtime for the process.
|
DominoProcess.DominoThreadContext |
initializeThread()
Initializes the current thread for Domino API use.
|
String |
switchToId(Path idPath,
String password,
boolean dontSetEnvVar)
This function switches to the specified ID file and returns the user name associated with it.
Multiple passwords are not supported. NOTE: This function should only be used in a C API stand alone application. |
void |
terminateProcess()
Destroys the Domino runtime for the entire process.
|
void |
terminateThread()
Terminates the current thread for Domino API use.
|
static DominoProcess get()
DominoProcess
IllegalStateException
- if the active API implementation does not provide onevoid initializeProcess(String[] initArgs)
In implementations that require it, this method should be called once per process, before any other API operations.
initArgs
- the arguments to pass to the initialization callString switchToId(Path idPath, String password, boolean dontSetEnvVar)
idPath
- path to the ID file that is to be switched to; if null/empty, we read the ID file path from the Notes.ini (KeyFileName)password
- password of the ID file that is to be switched todontSetEnvVar
- If specified, the notes.ini file (either ServerKeyFileName or KeyFileName) is modified to reflect the ID change.void terminateProcess()
This method should be called only when all Domino operations are finished for the running application.
DominoProcess.DominoThreadContext initializeThread()
Note: it is preferable to use threads spawned by DominoClient.getThreadFactory()
.
terminateThread()
void terminateThread()
Note: it is preferable to use threads spawned by DominoClient.getThreadFactory()
.
Copyright © 2019–2021 HCL. All rights reserved.