Package org.lsst.ccs.messaging
Class MessagingAccessLayer
java.lang.Object
org.lsst.ccs.messaging.MessagingAccessLayer
Entry point for receiving messages from the buses.
Its name is used as a unique identifier on the buses.
- Author:
- emarin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMessagingAccessLayer.BusAccess<T extends BusMessage>Handler for processing received messages. -
Constructor Summary
ConstructorsConstructorDescriptionMessagingAccessLayer(AgentInfo agent, MessagingAccessLayer.BusAccess... buses) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBusMessagePreProcessor(BusMessagePreProcessor preProcessor) Add a BusMessagePreProcessor the the MessagingAccessLayer.Returns the descriptor of the associatedAgent.getBusAccess(Bus bus) This list of buses might be used by the messaging layer to determine on which buses the associated agent has to be connected to.getName()Returns the name of the associatedAgent.
-
Constructor Details
-
MessagingAccessLayer
-
-
Method Details
-
getName
Returns the name of the associatedAgent. This name must be unique on the buses. The uniqueness is enforced when connecting with the messaging layer.- Returns:
- Agent name.
-
getAgentInfo
Returns the descriptor of the associatedAgent.- Returns:
- Agent descriptor.
-
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
-
addBusMessagePreProcessor
Add a BusMessagePreProcessor the the MessagingAccessLayer. The ButMessagePreProcessor is added here to the appropriate Bus.- Parameters:
preProcessor- The BysMessagePreProcessor to be added.
-