
public interface AgentPresenceListener
| Modifier and Type | Method and Description |
|---|---|
default void |
connected(AgentInfo... agents)
All the provided
agents are fully connected to the buses, they
are OPERATIONAL and ready to receive commands. |
default void |
connecting(AgentInfo... agents)
Indicates that the list of agents represented by
agents is present on the
buses. |
default void |
disconnected(AgentInfo... agents)
Invoked when one or more agents are disconnected from this cluster, either
because the shutdown or because they were lost.
|
default void |
disconnecting(AgentInfo agent)
Deprecated.
use disconnected instead
|
default void connecting(AgentInfo... agents)
agents is present on the
buses.
This method is invoked when the listener is added with all the agents that
are already connected.
At this point not all services on the connecting agents
are guaranteed to have completely started. This method should be used only
to receive a notification that an agent is connecting.
For a guarantee that an agent information is fully present, please use the
#connected methods.
The implementation should return immediately : any blocking operations
should be scheduled on a separate thread.agents - @Deprecated default void disconnecting(AgentInfo agent)
agent has left the buses.
The implementation should return immediately : any blocking operations
should be scheduled on a separate thread.agent - default void disconnected(AgentInfo... agents)
agents - default void connected(AgentInfo... agents)
agents are fully connected to the buses, they
are OPERATIONAL and ready to receive commands.
This method is invoked when the listener is added with all the agents that
are already connected.
When this method is invoked the agent is in PhaseState::OPERATIONAL state
and all its services are guaranteed to have been properly initialized.
The implementation should return immediately : any blocking operations
should be scheduled on a separate thread.agents - Copyright © 2020 LSST. All rights reserved.