public class MachineList extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MachineList.InetAddressFactory
InetAddressFactory is used to obtain InetAddress from host.
|
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
static String |
WILDCARD_VALUE |
| Constructor and Description |
|---|
MachineList(Collection<String> hostEntries) |
MachineList(Collection<String> hostEntries,
MachineList.InetAddressFactory addressFactory)
Accepts a collection of ip/cidr/host addresses
|
MachineList(String hostEntries) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getCollection()
returns the contents of the MachineList as a Collection
|
boolean |
includes(String ipAddress)
Accepts an ip address and return true if ipAddress is in the list
|
public static final org.slf4j.Logger LOG
public static final String WILDCARD_VALUE
public MachineList(String hostEntries)
hostEntries - comma separated ip/cidr/host addressespublic MachineList(Collection<String> hostEntries)
hostEntries - collection of separated ip/cidr/host addressespublic MachineList(Collection<String> hostEntries, MachineList.InetAddressFactory addressFactory)
hostEntries - addressFactory - addressFactory to convert host to InetAddresspublic boolean includes(String ipAddress)
ipAddress - public Collection<String> getCollection()
Copyright © 2022 Apache Software Foundation. All rights reserved.