Package com.qfs.distribution
Interface IApplicationManager
-
- All Known Implementing Classes:
AApplicationManager
public interface IApplicationManagerManages the messages received.- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNewApplication(IInitialDiscoveryMessage msg)Adds 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.booleancheckApplication(ITransactionCommittedMessage message)Checks 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 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.
-
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- anIInitialDiscoveryMessagereceived by aIDistributedHierarchyManager.
-
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.
-
-