@Profile(value="!cli") @Component public class DhcpRepositoryMock extends Object implements DhcpRepository
| Constructor and Description |
|---|
DhcpRepositoryMock(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder objectMapperBuilder)
Instantiates a new dhcp repository mock.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,org.bremersee.dccon.model.DhcpLease> |
findActiveByHostName()
Find active by host name.
|
Map<String,org.bremersee.dccon.model.DhcpLease> |
findActiveByIp()
Find active by ip.
|
List<org.bremersee.dccon.model.DhcpLease> |
findAll()
Find all dhcp leases.
|
void |
init()
Init.
|
public DhcpRepositoryMock(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder objectMapperBuilder)
objectMapperBuilder - the object mapper builder@EventListener(value=org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
@Cacheable(cacheNames="dhcp-leases-by-ip") public Map<String,org.bremersee.dccon.model.DhcpLease> findActiveByIp()
DhcpRepositoryfindActiveByIp in interface DhcpRepository@Cacheable(cacheNames="dhcp-leases-by-name") public Map<String,org.bremersee.dccon.model.DhcpLease> findActiveByHostName()
DhcpRepositoryfindActiveByHostName in interface DhcpRepositorypublic List<org.bremersee.dccon.model.DhcpLease> findAll()
DhcpRepositoryfindAll in interface DhcpRepositoryCopyright © 2020 bremersee.org. All rights reserved.