Interface IApplicationManager

  • All Known Implementing Classes:
    AApplicationManager

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

      • 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.
      • 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.