Class AdminServer
java.lang.Object
io.github.protasm.jvmud.communication.transport.admin.AdminServer
- All Implemented Interfaces:
AutoCloseable
Engine-owned administration listener. Authentication and grants are checked before creating a command session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCreates a fresh per-administrator command session after authorization. -
Constructor Summary
ConstructorsConstructorDescriptionAdminServer(String address, int port, SSLContext tls, AdminRegistry registry, String scope, AdminServer.Sessions sessions) Binds a TLS endpoint; call start only when the target engine or mudlib is ready.AdminServer(Path path, AdminServer.Sessions sessions) Binds an owner-only Unix socket. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes only this endpoint and its sessions; the target's lifecycle belongs to the engine.intport()Returns the allocated TCP port; Unix endpoints have no TCP port.voidstart()Starts accepting and periodically disconnects revoked credentials, including idle sessions.
-
Constructor Details
-
AdminServer
public AdminServer(String address, int port, SSLContext tls, AdminRegistry registry, String scope, AdminServer.Sessions sessions) throws IOException Binds a TLS endpoint; call start only when the target engine or mudlib is ready.- Throws:
IOException
-
AdminServer
Binds an owner-only Unix socket. Existing paths are never silently replaced.- Throws:
IOException
-
-
Method Details
-
start
public void start()Starts accepting and periodically disconnects revoked credentials, including idle sessions. -
port
public int port()Returns the allocated TCP port; Unix endpoints have no TCP port. -
close
public void close()Closes only this endpoint and its sessions; the target's lifecycle belongs to the engine.- Specified by:
closein interfaceAutoCloseable
-