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
public class BlacklistServiceFilter extends Object implements org.apache.camel.cloud.ServiceFilter
-
-
Constructor Summary
Constructors Constructor Description BlacklistServiceFilter()
BlacklistServiceFilter(List<org.apache.camel.cloud.ServiceDefinition> blacklist)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addServer(String serverString)
Add a server to the known list of servers to blacklist.void
addServer(org.apache.camel.cloud.ServiceDefinition server)
Add a server to the known list of servers.List<org.apache.camel.cloud.ServiceDefinition>
apply(List<org.apache.camel.cloud.ServiceDefinition> services)
static BlacklistServiceFilter
forServices(Collection<org.apache.camel.cloud.ServiceDefinition> definitions)
static BlacklistServiceFilter
forServices(org.apache.camel.cloud.ServiceDefinition... definitions)
void
removeServer(Predicate<org.apache.camel.cloud.ServiceDefinition> condition)
Remove an existing server from the list of known servers.void
setServers(String servers)
Set the servers to blacklist.void
setServers(List<String> servers)
Set the servers to blacklist.
-
-
-
Constructor Detail
-
BlacklistServiceFilter
public BlacklistServiceFilter()
-
BlacklistServiceFilter
public BlacklistServiceFilter(List<org.apache.camel.cloud.ServiceDefinition> blacklist)
-
-
Method Detail
-
setServers
public void setServers(List<String> servers)
Set the servers to blacklist.- Parameters:
servers
- server in the format: [service@]host:port.
-
setServers
public void setServers(String servers)
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
public void addServer(String serverString)
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
public void removeServer(Predicate<org.apache.camel.cloud.ServiceDefinition> condition)
Remove an existing server from the list of known servers.
-
apply
public List<org.apache.camel.cloud.ServiceDefinition> apply(List<org.apache.camel.cloud.ServiceDefinition> services)
- Specified by:
apply
in 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)
-
-