Package io.kestra.repository.memory
Class MemoryServiceInstanceRepository
java.lang.Object
io.kestra.repository.memory.MemoryServiceInstanceRepository
- All Implemented Interfaces:
io.kestra.core.repositories.ServiceInstanceRepositoryInterface
@Singleton
@MemoryRepositoryEnabled
public class MemoryServiceInstanceRepository
extends Object
implements io.kestra.core.repositories.ServiceInstanceRepositoryInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(io.kestra.core.server.ServiceInstance service) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.server.ServiceInstance>find(io.micronaut.data.model.Pageable pageable, Set<io.kestra.core.server.Service.ServiceState> states, Set<io.kestra.core.server.Service.ServiceType> types) List<io.kestra.core.server.ServiceInstance>findAll()List<io.kestra.core.server.ServiceInstance>findAllInstancesInState(io.kestra.core.server.Service.ServiceState state) List<io.kestra.core.server.ServiceInstance>findAllInstancesInStates(Set<io.kestra.core.server.Service.ServiceState> states) Optional<io.kestra.core.server.ServiceInstance>io.kestra.core.server.ServiceInstancesave(io.kestra.core.server.ServiceInstance service) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface
mayTransitionServiceTo, mayTransitionServiceTo, sortMapping
-
Constructor Details
-
MemoryServiceInstanceRepository
public MemoryServiceInstanceRepository()
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceio.kestra.core.repositories.ServiceInstanceRepositoryInterface
-
findAll
- Specified by:
findAllin interfaceio.kestra.core.repositories.ServiceInstanceRepositoryInterface
-
find
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.server.ServiceInstance> find(io.micronaut.data.model.Pageable pageable, Set<io.kestra.core.server.Service.ServiceState> states, Set<io.kestra.core.server.Service.ServiceType> types) - Specified by:
findin interfaceio.kestra.core.repositories.ServiceInstanceRepositoryInterface
-
delete
public void delete(io.kestra.core.server.ServiceInstance service) - Specified by:
deletein interfaceio.kestra.core.repositories.ServiceInstanceRepositoryInterface
-
save
public io.kestra.core.server.ServiceInstance save(io.kestra.core.server.ServiceInstance service) - Specified by:
savein interfaceio.kestra.core.repositories.ServiceInstanceRepositoryInterface
-
findAllInstancesInState
public List<io.kestra.core.server.ServiceInstance> findAllInstancesInState(io.kestra.core.server.Service.ServiceState state) - Specified by:
findAllInstancesInStatein interfaceio.kestra.core.repositories.ServiceInstanceRepositoryInterface
-
findAllInstancesInStates
public List<io.kestra.core.server.ServiceInstance> findAllInstancesInStates(Set<io.kestra.core.server.Service.ServiceState> states) - Specified by:
findAllInstancesInStatesin interfaceio.kestra.core.repositories.ServiceInstanceRepositoryInterface
-