Class MessagingAccessLayer

java.lang.Object
org.lsst.ccs.messaging.MessagingAccessLayer

public class MessagingAccessLayer extends Object
Entry point for receiving messages from the buses. Its name is used as a unique identifier on the buses.
Author:
emarin
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns the name of the associated Agent. This name must be unique on the buses. The uniqueness is enforced when connecting with the messaging layer.
      Returns:
      Agent name.
    • getAgentInfo

      public AgentInfo getAgentInfo()
      Returns the descriptor of the associated Agent.
      Returns:
      Agent descriptor.
    • getBusAccesses

      public Collection<MessagingAccessLayer.BusAccess> getBusAccesses()
      This list of buses might be used by the messaging layer to determine on which buses the associated agent has to be connected to.
      Returns:
      The list of Buses the layer has to be registered on.
    • getBusAccess

      public MessagingAccessLayer.BusAccess getBusAccess(Bus bus)
    • addBusMessagePreProcessor

      public void addBusMessagePreProcessor(BusMessagePreProcessor preProcessor)
      Add a BusMessagePreProcessor the the MessagingAccessLayer. The ButMessagePreProcessor is added here to the appropriate Bus.
      Parameters:
      preProcessor - The BysMessagePreProcessor to be added.