process

Bedrock process component.

class bedrock_server_manager.core.server.process.ServerProcess(server: BedrockServer)

Process operations for one Bedrock server.

async is_running() → bool

Check if the Bedrock server process is currently running and verified asynchronously.

async send_command(command: str) → None

Sends a command string to the running Bedrock server process asynchronously.

async start() → None

Start the Bedrock server process asynchronously.

async stop() → None

Publish stopped state only after graceful or forced exit is confirmed.

async get_process_info() → Dict[str, Any] | None

Return PID, CPU percentage, memory in MiB and uptime for the running process.

Return None when no verified running process is available.