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()
ServiceDefinition
getName
in interface ServiceDefinition
public String getHost()
ServiceDefinition
getHost
in interface ServiceDefinition
public int getPort()
ServiceDefinition
getPort
in interface ServiceDefinition
public ServiceHealth getHealth()
ServiceDefinition
getHealth
in interface ServiceDefinition
public Map<String,String> getMetadata()
ServiceDefinition
getMetadata
in interface ServiceDefinition
Apache Camel