Package io.hekate.core
Interface ServiceInfo
-
public interface ServiceInfo
Provides information about aservice
.- See Also:
ClusterNode.services()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Boolean
boolProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.BOOLEAN
type.default Integer
intProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.INTEGER
type.default Long
longProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.LONG
type.Map<String,ServiceProperty<?>>
properties()
Returns an immutable map of service properties.ServiceProperty<?>
property(String name)
Returns the property value ornull
if there is no such property.default String
stringProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.STRING
type.String
type()
Returns the service class name.
-
-
-
Method Detail
-
type
String type()
Returns the service class name.- Returns:
- Service class name.
-
properties
Map<String,ServiceProperty<?>> properties()
Returns an immutable map of service properties.- Returns:
- Service properties.
-
property
ServiceProperty<?> property(String name)
Returns the property value ornull
if there is no such property.- Parameters:
name
- Property name.- Returns:
- Property value or
null
.
-
intProperty
default Integer intProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.INTEGER
type.- Parameters:
name
- Property name.- Returns:
- Property value or
null
.
-
longProperty
default Long longProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.LONG
type.- Parameters:
name
- Property name.- Returns:
- Property value or
null
.
-
boolProperty
default Boolean boolProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.BOOLEAN
type.- Parameters:
name
- Property name.- Returns:
- Property value or
null
.
-
stringProperty
default String stringProperty(String name)
Returns the property value ornull
if there is no such property or if property is not ofServiceProperty.Type.STRING
type.- Parameters:
name
- Property name.- Returns:
- Property value or
null
.
-
-