public interface ServiceDefinition
ServiceChooser
,
ServiceDiscovery
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_META_HOST |
static String |
SERVICE_META_ID |
static String |
SERVICE_META_NAME |
static String |
SERVICE_META_PATH |
static String |
SERVICE_META_PORT |
static String |
SERVICE_META_PREFIX |
static String |
SERVICE_META_PROTOCOL |
static String |
SERVICE_META_ZONE |
Modifier and Type | Method and Description |
---|---|
ServiceHealth |
getHealth()
Gets the health.
|
String |
getHost()
Gets the IP or hostname of the server hosting the service.
|
String |
getId()
Gets the service id.
|
Map<String,String> |
getMetadata()
Gets a key/value metadata associated with the service.
|
String |
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.
|
static final String SERVICE_META_PREFIX
static final String SERVICE_META_ID
static final String SERVICE_META_NAME
static final String SERVICE_META_HOST
static final String SERVICE_META_PORT
static final String SERVICE_META_ZONE
static final String SERVICE_META_PROTOCOL
static final String SERVICE_META_PATH
String getId()
String getName()
String getHost()
int getPort()
ServiceHealth getHealth()
default boolean matches(ServiceDefinition other)
Apache Camel