Open Telecomunication Platform (OTP)
Upcoming SlideShare
Loading in...5
×
 

Open Telecomunication Platform (OTP)

on

  • 406 views

 

Statistics

Views

Total Views
406
Views on SlideShare
405
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://francesbagual.net 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Open Telecomunication Platform (OTP) Open Telecomunication Platform (OTP) Presentation Transcript

  • Large scale Fault TolerantDistributed application
  • Supervision tree
  • Behaviour
  • Non functional code
  • Functional Code
  • application gen_server (client/server)gen_fsm (finite state machine) gen_event (event handling) supervisor
  • Event Handlerslang_event_handler.erl
  • echo_server.erl
  • superVISORecho_supervisor.erl
  • Applicationecho_app.erl echo.app
  • 2> application:load(echo).ok3> application:loaded_applications().[{echo,"A dummy echo server with a simple slang detection :p", "0.0.1"}, {kernel,"ERTS CXC 138 10","2.14.3"}, {sasl,"SASL CXC 138 11","2.1.9.3"}, {stdlib,"ERTS CXC 138 10","1.17.3"}]4> application:start(echo).Starting supervisor.Alarm handler switched.Supervisor configuration:{ok, {{one_for_one, 3, 10}, [{echo_server1, {echo_server,start_link,[]}, permanent,5000,worker,[echo_server]}]}}echo_server startingok5> echo_server:echo("fuck you son of a bitch").=INFO REPORT==== 12-Aug-2012::18:26:23 ===Dont send slangs mother fucker!=INFO REPORT==== 12-Aug-2012::18:26:23 ===Dont send slangs son of a bitch!"fuck you son of a bitch"
  • Monitoring
  • Thank you!toff63