at:tutorial:distribution
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
at:tutorial:distribution [2009/01/29 15:21] – elisag | at:tutorial:distribution [2009/01/29 15:36] – elisag | ||
---|---|---|---|
Line 19: | Line 19: | ||
</ | </ | ||
- | ===== Exporting and discovering objects | + | ===== Exporting and Discovering Objects |
AmbientTalk provides language support to make some objects available to other objects residing in remote actors by means of the '' | AmbientTalk provides language support to make some objects available to other objects residing in remote actors by means of the '' | ||
Line 233: | Line 233: | ||
More information pertaining to the API of the leased references language module can be found in the appendix. | More information pertaining to the API of the leased references language module can be found in the appendix. | ||
- | ===== Taking | + | ===== Taking |
AmbientTalk distributed memory management scheme has been based on [[http:// | AmbientTalk distributed memory management scheme has been based on [[http:// | ||
Line 257: | Line 257: | ||
Additionally, | Additionally, | ||
+ | < | ||
when: messenger takenOffline: | when: messenger takenOffline: | ||
system.println(" | system.println(" | ||
//clean certain resources associated to the buddy | //clean certain resources associated to the buddy | ||
}; | }; | ||
+ | </ | ||
- | + | The construct takes as parameter a far reference and a block of code that is executed when the taken offline event is notified to the virtual machine. '' | |
- | The construct takes as parameter a far reference and a block of code that is executed when the taken offline event is notified to the virtual machine. '' | + | |
< | < | ||
Line 269: | Line 270: | ||
</ | </ | ||
- | ====Distributed unit testing and '' | + | ====Distributed unit testing and takeOffline==== |
As previously mentioned, the '' | As previously mentioned, the '' | ||
+ | |||
This semantics are useful for unit test purposes. The unit testing framework shipped with AmbinentTalk has support to perform asynchronous invocations which can be used to perform concurrent or distributed unit tests. However, distributed unit tests couldn' | This semantics are useful for unit test purposes. The unit testing framework shipped with AmbinentTalk has support to perform asynchronous invocations which can be used to perform concurrent or distributed unit tests. However, distributed unit tests couldn' | ||
- | |||
- | |||
- | < | ||
- | The complete implementation of the instant messenger application explained along this chapter can be found in the file '' | ||
- | </ |
at/tutorial/distribution.txt · Last modified: 2009/01/30 16:13 by tvcutsem