Chapter16

  • 85 views
Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
85
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 16. OTP Introduction Erlang TFT
  • 2. • OPT• Server – Basic• Server – Transaction• Server – Hot Code Swapping• Server – More Fun• gen_server• gen_server Template• my_bank.erl
  • 3. OTP• Open Telecom Platform : Application Framework• Behavior – 비기능적인 부분 ex) 무정지 기능 , Hot Code Swapping … )• Callback – 비즈니스 로직
  • 4. Server – Basic • Client Interface • Callback
  • 5. Server – Transaction • 서버 변경 • 콜백은 그대로 유지
  • 6. Server – Hot Code Swapping
  • 7. Server – More Fun
  • 8. gen_server http://www.erlang.org/doc/man/gen_server.html1.Callback Module Name my_bank2.Write Interface Routines start(), stop(), new_account(Who), deposit(Who, Amount), withdraw(Who, Amount)3.Write Callback Routines init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3
  • 9. gen_server Template
  • 10. my_bank.erl