Package com.qfs.distribution
Interface IApplicationManager
- All Known Implementing Classes:
AApplicationManager
public interface IApplicationManager
Manages the messages received.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new application to the list of discovered applications.booleancheckApplication(GoodbyeMessage message) Checks the application id of the message against the list of known applications.booleancheckApplication(IInitialDiscoveryMessage message) Checks the application id of the message against the list of known applications.booleanChecks the application id of the message against the list of known applications.booleanisDiscoveryApplied(String applicationId) Returns true if the given applicationID corresponds to a discovery message that has been received and processed.booleanisReady()Returns true if this manager is ready to handle incoming messages.voidstop()Stop the application manager.
-
Method Details
-
isReady
boolean isReady()Returns true if this manager is ready to handle incoming messages. -
isDiscoveryApplied
Returns true if the given applicationID corresponds to a discovery message that has been received and processed. -
addNewApplication
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- anIInitialDiscoveryMessagereceived by aIDistributedHierarchyManager.
-
checkApplication
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
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
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.
-