Package org.apache.camel.impl.cloud
Class BlacklistServiceFilter
java.lang.Object
org.apache.camel.impl.cloud.BlacklistServiceFilter
- All Implemented Interfaces:
org.apache.camel.cloud.ServiceFilter
-
Constructor Summary
ConstructorsConstructorDescriptionBlacklistServiceFilter(List<org.apache.camel.cloud.ServiceDefinition> blacklist) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a server to the known list of servers to blacklist.voidaddServer(org.apache.camel.cloud.ServiceDefinition server) Add a server to the known list of servers.List<org.apache.camel.cloud.ServiceDefinition>static BlacklistServiceFilterforServices(Collection<org.apache.camel.cloud.ServiceDefinition> definitions) static BlacklistServiceFilterforServices(org.apache.camel.cloud.ServiceDefinition... definitions) voidremoveServer(Predicate<org.apache.camel.cloud.ServiceDefinition> condition) Remove an existing server from the list of known servers.voidsetServers(String servers) Set the servers to blacklist.voidsetServers(List<String> servers) Set the servers to blacklist.
-
Constructor Details
-
BlacklistServiceFilter
public BlacklistServiceFilter() -
BlacklistServiceFilter
-
-
Method Details
-
setServers
Set the servers to blacklist.- Parameters:
servers- server in the format: [service@]host:port.
-
setServers
Set the servers to blacklist.- Parameters:
servers- servers separated by comma in the format: [service@]host:port,[service@]host2:port,[service@]host3:port and so on.
-
addServer
public void addServer(org.apache.camel.cloud.ServiceDefinition server) Add a server to the known list of servers. -
addServer
Add a server to the known list of servers to blacklist.- Parameters:
serverString- servers separated by comma in the format: [service@]host:port,[service@]host2:port,[service@]host3:port and so on.
-
removeServer
Remove an existing server from the list of known servers. -
apply
public List<org.apache.camel.cloud.ServiceDefinition> apply(org.apache.camel.Exchange exchange, List<org.apache.camel.cloud.ServiceDefinition> services) - Specified by:
applyin interfaceorg.apache.camel.cloud.ServiceFilter
-
forServices
public static BlacklistServiceFilter forServices(Collection<org.apache.camel.cloud.ServiceDefinition> definitions) -
forServices
public static BlacklistServiceFilter forServices(org.apache.camel.cloud.ServiceDefinition... definitions)
-