Record Class MudlibStatus
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.execution.application.MudlibStatus
public record MudlibStatus(String id, String name, MudlibStatus.State state, int playerPort, int adminPort, long pid, String detail)
extends Record
Read-only engine view of a mudlib's lifecycle, endpoints, process and latest failure.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA failed or stopped mudlib remains registered so administrators can inspect and restart it. -
Constructor Summary
ConstructorsConstructorDescriptionMudlibStatus(String id, String name, MudlibStatus.State state, int playerPort, int adminPort, long pid, String detail) Creates an instance of aMudlibStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theadminPortrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.longpid()Returns the value of thepidrecord component.intReturns the value of theplayerPortrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MudlibStatus
public MudlibStatus(String id, String name, MudlibStatus.State state, int playerPort, int adminPort, long pid, String detail) Creates an instance of aMudlibStatusrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentstate- the value for thestaterecord componentplayerPort- the value for theplayerPortrecord componentadminPort- the value for theadminPortrecord componentpid- the value for thepidrecord componentdetail- the value for thedetailrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
playerPort
public int playerPort()Returns the value of theplayerPortrecord component.- Returns:
- the value of the
playerPortrecord component
-
adminPort
public int adminPort()Returns the value of theadminPortrecord component.- Returns:
- the value of the
adminPortrecord component
-
pid
public long pid()Returns the value of thepidrecord component.- Returns:
- the value of the
pidrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-