Class Registrator

java.lang.Object
org.openwms.tms.routing.app.Registrator

@Profile("ASYNCHRONOUS") @RefreshScope @Component class Registrator extends Object
A Registrator.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • exchangeName

      private final String exchangeName
    • locationReplicaRegistration

      private final org.openwms.common.location.api.commands.LocationReplicaRegistration locationReplicaRegistration
    • amqpTemplate

      private final org.springframework.amqp.core.AmqpTemplate amqpTemplate
  • Constructor Details

    • Registrator

      Registrator(@Value("${owms.commands.common.registration.exchange-name}") String exchangeName, @Value("${spring.application.name}") String applicationName, @Value("${owms.routing.registration.location-request-removal-path}") String locationRequestRemovalPath, @Value("${owms.routing.registration.location-removal-path}") String locationRemovalPath, org.springframework.amqp.core.AmqpTemplate amqpTemplate)
  • Method Details

    • onContextStarted

      @EventListener public void onContextStarted(org.springframework.context.event.ContextStartedEvent cse)
    • onContextStopped

      @EventListener public void onContextStopped(org.springframework.context.event.ContextClosedEvent cse)
    • onTimer

      @Scheduled(fixedDelay=30000L) public void onTimer()