Interface IApplicationManager

All Known Implementing Classes:
AApplicationManager

public interface IApplicationManager
Manages the messages received.
Author:
ActiveViam
  • Method Details

    • isReady

      boolean isReady()
      Returns true if this manager is ready to handle incoming messages.
    • isDiscoveryApplied

      boolean isDiscoveryApplied(String applicationId)
      Returns true if the given applicationID corresponds to a discovery message that has been received and processed.
    • addNewApplication

      void addNewApplication(IInitialDiscoveryMessage msg)
      Adds a new application to the list of discovered applications.

      One must ensure only known applications will be added. One can use checkApplication(IInitialDiscoveryMessage) to make sure of it.

      Parameters:
      msg - an IInitialDiscoveryMessage received by a IDistributedHierarchyManager.
    • checkApplication

      boolean checkApplication(IInitialDiscoveryMessage message)
      Checks the application id of the message against the list of known applications.
      Parameters:
      message - the message
      Returns:
      true if the application id of the message is known by this manager, false otherwise.
    • checkApplication

      boolean checkApplication(ITransactionCommittedMessage message)
      Checks the application id of the message against the list of known applications.
      Parameters:
      message - the message
      Returns:
      true if the application id of the message is known by this manager, false otherwise.
    • checkApplication

      boolean checkApplication(GoodbyeMessage message)
      Checks the application id of the message against the list of known applications.
      Parameters:
      message - the message
      Returns:
      true if the application id of the message is known by this manager, false otherwise.
    • stop

      void stop()
      Stop the application manager.