Record Class DevSession.ServiceStatus
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevSession.ServiceStatus
- Enclosing class:
DevSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetail()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.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.pid()Returns the value of thepidrecord component.port()Returns the value of theportrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ServiceStatus
public ServiceStatus(String name, String state, String url, Integer port, Long pid, String detail, Map<String, String> metadata) Creates an instance of aServiceStatusrecord class.- Parameters:
name- the value for thenamerecord componentstate- the value for thestaterecord componenturl- the value for theurlrecord componentport- the value for theportrecord componentpid- the value for thepidrecord componentdetail- the value for thedetailrecord componentmetadata- the value for themetadatarecord component
-
ServiceStatus
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
port
Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
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
-
metadata
-