Package com.qfs.distribution
Interface IDistributedComponent
- All Known Implementing Classes:
DataNode,DistributedActivePivotBase
public interface IDistributedComponent
Object that can communicate with other
IDistributedComponent via their IDistributedMessenger.- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionReturns the messenger associated to this component that is used for communicating with the otherinstances.default voidRegister the given agent to theIDistributedMessenger.default voidstartMessenger(IMessengerDefinition messengerDefinition) Start thegetMessenger()if it is the desired behavior.default voidStop thegetMessenger().
-
Method Details
-
getMessenger
IDistributedMessenger getMessenger()Returns the messenger associated to this component that is used for communicating with the otherinstances. -
startMessenger
Start thegetMessenger()if it is the desired behavior.- Parameters:
messengerDefinition- the definition of the messenger- Throws:
AgentException- if the call fails because of incorrect state- See Also:
-
stopMessenger
Stop thegetMessenger().- Throws:
AgentException- if the call fails because of incorrect state
-
registerDistributedAgent
Register the given agent to theIDistributedMessenger.- Parameters:
agent- the agent to register- See Also:
-