Package org.apache.camel.cloud
Interface ServiceDefinition
-
public interface ServiceDefinitionRepresents a Service.- See Also:
ServiceChooser,ServiceDiscovery
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_META_HOSTstatic StringSERVICE_META_IDstatic StringSERVICE_META_NAMEstatic StringSERVICE_META_PATHstatic StringSERVICE_META_PORTstatic StringSERVICE_META_PREFIXstatic StringSERVICE_META_PROTOCOLstatic StringSERVICE_META_ZONE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServiceHealthgetHealth()Gets the health.StringgetHost()Gets the IP or hostname of the server hosting the service.StringgetId()Gets the service id.Map<String,String>getMetadata()Gets a key/value metadata associated with the service.StringgetName()Gets the service name.intgetPort()Gets the port number of the server hosting the service.default booleanmatches(ServiceDefinition other)Check if a service definition matches.
-
-
-
Field Detail
-
SERVICE_META_PREFIX
static final String SERVICE_META_PREFIX
- See Also:
- Constant Field Values
-
SERVICE_META_ID
static final String SERVICE_META_ID
- See Also:
- Constant Field Values
-
SERVICE_META_NAME
static final String SERVICE_META_NAME
- See Also:
- Constant Field Values
-
SERVICE_META_HOST
static final String SERVICE_META_HOST
- See Also:
- Constant Field Values
-
SERVICE_META_PORT
static final String SERVICE_META_PORT
- See Also:
- Constant Field Values
-
SERVICE_META_ZONE
static final String SERVICE_META_ZONE
- See Also:
- Constant Field Values
-
SERVICE_META_PROTOCOL
static final String SERVICE_META_PROTOCOL
- See Also:
- Constant Field Values
-
SERVICE_META_PATH
static final String SERVICE_META_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
Map<String,String> getMetadata()
Gets a key/value metadata associated with the service.
-
matches
default boolean matches(ServiceDefinition other)
Check if a service definition matches.
-
-