Package org.apache.camel.cloud
Interface ServiceDefinition
public interface ServiceDefinition
Represents a Service.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the health.getHost()
Gets the IP or hostname of the server hosting the service.getId()
Gets the service id.Gets a key/value metadata associated with the service.getName()
Gets the service name.int
getPort()
Gets the port number of the server hosting the service.default boolean
matches
(ServiceDefinition other) Check if a service definition matches.
-
Field Details
-
SERVICE_META_PREFIX
- See Also:
-
SERVICE_META_ID
- See Also:
-
SERVICE_META_NAME
- See Also:
-
SERVICE_META_HOST
- See Also:
-
SERVICE_META_PORT
- See Also:
-
SERVICE_META_ZONE
- See Also:
-
SERVICE_META_PROTOCOL
- See Also:
-
SERVICE_META_PATH
- See Also:
-
-
Method Details
-
getId
String getId()Gets the service id. -
getName
String getName()Gets the service name. -
getHost
String getHost()Gets the IP or hostname of the server hosting the service. -
getPort
int getPort()Gets the port number of the server hosting the service. -
getHealth
ServiceHealth getHealth()Gets the health. -
getMetadata
Gets a key/value metadata associated with the service. -
matches
Check if a service definition matches.
-