public class StaticServiceDiscovery extends DefaultServiceDiscovery
| Constructor and Description |
|---|
StaticServiceDiscovery() |
StaticServiceDiscovery(List<org.apache.camel.cloud.ServiceDefinition> servers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServer(org.apache.camel.cloud.ServiceDefinition server)
Add a server to the known list of servers.
|
void |
addServer(String serverString)
Add a server to the known list of servers.
|
void |
addServers(String serviceName,
List<String> servers) |
static StaticServiceDiscovery |
forServices(Collection<org.apache.camel.cloud.ServiceDefinition> definitions) |
static StaticServiceDiscovery |
forServices(org.apache.camel.cloud.ServiceDefinition... definitions) |
List<org.apache.camel.cloud.ServiceDefinition> |
getServices(String name) |
void |
removeServer(Predicate<org.apache.camel.cloud.ServiceDefinition> condition)
Remove an existing server from the list of known servers.
|
void |
setServers(List<String> servers)
Set the servers.
|
void |
setServers(String servers)
Set the servers.
|
doStart, doStop, getCamelContext, setCamelContextbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic StaticServiceDiscovery()
public StaticServiceDiscovery(List<org.apache.camel.cloud.ServiceDefinition> servers)
public void setServers(List<String> servers)
servers - server in the format: [service@]host:port.public void setServers(String servers)
servers - servers separated by comma in the format: [service@]host:port,[service@]host2:port,[service@]host3:port and so on.public void addServer(org.apache.camel.cloud.ServiceDefinition server)
public void addServer(String serverString)
serverString - servers separated by comma in the format: [service@]host:port,[service@]host2:port,[service@]host3:port and so on.public void removeServer(Predicate<org.apache.camel.cloud.ServiceDefinition> condition)
public List<org.apache.camel.cloud.ServiceDefinition> getServices(String name)
getServices in interface org.apache.camel.cloud.ServiceDiscoverygetServices in class DefaultServiceDiscoverypublic static StaticServiceDiscovery forServices(Collection<org.apache.camel.cloud.ServiceDefinition> definitions)
public static StaticServiceDiscovery forServices(org.apache.camel.cloud.ServiceDefinition... definitions)
Apache Camel