Class MudlibProcess
java.lang.Object
io.github.protasm.jvmud.execution.application.worker.MudlibProcess
- All Implemented Interfaces:
AutoCloseable
Engine-side owner of a separate worker JVM for fault isolation.
The engine never loads this mudlib's LPC classes or runtime objects. Workers
run with the host account's OS permissions, not within a security sandbox.
-
Constructor Summary
ConstructorsConstructorDescriptionMudlibProcess(MudlibSpec spec, Path log, boolean trace) Starts Java directly with per-worker JVM memory limits and requires readiness before returning. -
Method Summary
Modifier and TypeMethodDescriptionOpens independent command state in the worker; grants have already been checked by the engine.voidclose()Gives shutdown hooks a bounded opportunity, then terminates an unresponsive worker.connectPlayer(String clientAddress) Opens the authenticated private player channel and preserves the original client address.handle()Worker process identity for status reporting and supervision.onExit()Completes when the worker exits, including an unexpected crash.ready()Reports immutable worker readiness metadata.
-
Constructor Details
-
MudlibProcess
Starts Java directly with per-worker JVM memory limits and requires readiness before returning.- Throws:
IOException
-
-
Method Details
-
ready
Reports immutable worker readiness metadata. -
handle
Worker process identity for status reporting and supervision. -
onExit
Completes when the worker exits, including an unexpected crash. -
connectPlayer
Opens the authenticated private player channel and preserves the original client address.- Throws:
IOException
-
administration
Opens independent command state in the worker; grants have already been checked by the engine.- Throws:
IOException
-
close
public void close()Gives shutdown hooks a bounded opportunity, then terminates an unresponsive worker.- Specified by:
closein interfaceAutoCloseable
-