rsseismic.ApplicationManager module#
- class rsseismic.ApplicationManager.ApplicationManager#
Bases:
object- minimumPort = 49152#
- maximumPort = 65535#
- defaultTimeout = 120.0#
- startApplication(pathToExecutable: str, port: int, isServerRunning: Callable[[int], None], logger: Logger, timeout: float = 120.0) None#
Starts the application specified by pathToExecutable with
-startScriptingServeron the given port. Returns when the scripting server is ready to accept requests.- Parameters:
pathToExecutable – Full path to the RSSeismic executable to start.
port – Port number for the scripting server (49152–65535).
isServerRunning – Callable invoked to verify the server on
portis reachable.logger – Logger used during startup; logging is suppressed while polling the server.
timeout – Seconds to wait for the server to become ready.
- Raises:
ValueError – port outside 49152–65535
RuntimeError – port occupied or executable missing
TimeoutError – server not ready within timeout
- static isPortAvailable(port: int) bool#