public class DefaultServiceDefinition extends Object implements ServiceDefinition
| Constructor and Description |
|---|
DefaultServiceDefinition(String name,
String host,
int port) |
DefaultServiceDefinition(String name,
String host,
int port,
Map<String,String> meta) |
DefaultServiceDefinition(String name,
String host,
int port,
Map<String,String> meta,
ServiceHealth health) |
DefaultServiceDefinition(String name,
String host,
int port,
ServiceHealth health) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ServiceHealth |
getHealth()
Gets the health.
|
String |
getHost()
Gets the IP or hostname of the server hosting the service.
|
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.
|
int |
hashCode() |
String |
toString() |
public DefaultServiceDefinition(String name, String host, int port)
public DefaultServiceDefinition(String name, String host, int port, ServiceHealth health)
public DefaultServiceDefinition(String name, String host, int port, Map<String,String> meta)
public DefaultServiceDefinition(String name, String host, int port, Map<String,String> meta, ServiceHealth health)
public String getName()
ServiceDefinitiongetName in interface ServiceDefinitionpublic String getHost()
ServiceDefinitiongetHost in interface ServiceDefinitionpublic int getPort()
ServiceDefinitiongetPort in interface ServiceDefinitionpublic ServiceHealth getHealth()
ServiceDefinitiongetHealth in interface ServiceDefinitionpublic Map<String,String> getMetadata()
ServiceDefinitiongetMetadata in interface ServiceDefinitionApache Camel