JabRpaServer
Manages the lifecycle of the jab-rpa-server.exe subprocess.
Spawns the Rust gRPC server, waits for it to report readiness, and provides clean shutdown.
Requires a binary package to be installed (e.g.
pip install jab-rpa[java8]).
Can be used as a context manager:
with JabRpaServer() as server:
...
__init__
__init__(
*,
java_bitness: Literal["32 bit", "64 bit"] = "32 bit",
java_version: Literal[
"8", "11", "17", "21", "25"
] = "8",
server_address: str = "127.0.0.1",
server_port: str = "50051",
server_timeout: int = _WAIT_FOR_SERVER_TIMEOUT,
step: int = _INIT_SERVER_STEP,
print_stdout: bool = False,
print_stderr: bool = True,
) -> None
Configure the server process settings.
| Parameters: |
|
|---|
start
start() -> None
Launch the server subprocess and wait for it to become ready.
Reads stdout in a background daemon thread and watches for the server's "listening" message.
| Raises: |
|
|---|
stop
stop() -> None
Terminate the server subprocess.