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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(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>
    List<io.kestra.core.server.ServiceInstance>
    findAllInstancesBetween(io.kestra.core.server.Service.ServiceType type, Instant from, Instant to)
    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.ServiceInstance
    save(io.kestra.core.server.ServiceInstance service)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface

    mayTransitionServiceTo, mayTransitionServiceTo, sortMapping
  • Constructor Details

    • MemoryServiceInstanceRepository

      public MemoryServiceInstanceRepository()
  • Method Details

    • findById

      public Optional<io.kestra.core.server.ServiceInstance> findById(String id)
      Specified by:
      findById in interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface
    • findAll

      public List<io.kestra.core.server.ServiceInstance> findAll()
      Specified by:
      findAll in interface io.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:
      find in interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface
    • delete

      public void delete(io.kestra.core.server.ServiceInstance service)
      Specified by:
      delete in interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface
    • save

      public io.kestra.core.server.ServiceInstance save(io.kestra.core.server.ServiceInstance service)
      Specified by:
      save in interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface
    • findAllInstancesInState

      public List<io.kestra.core.server.ServiceInstance> findAllInstancesInState(io.kestra.core.server.Service.ServiceState state)
      Specified by:
      findAllInstancesInState in interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface
    • findAllInstancesInStates

      public List<io.kestra.core.server.ServiceInstance> findAllInstancesInStates(Set<io.kestra.core.server.Service.ServiceState> states)
      Specified by:
      findAllInstancesInStates in interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface
    • findAllInstancesBetween

      public List<io.kestra.core.server.ServiceInstance> findAllInstancesBetween(io.kestra.core.server.Service.ServiceType type, Instant from, Instant to)
      Specified by:
      findAllInstancesBetween in interface io.kestra.core.repositories.ServiceInstanceRepositoryInterface