alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Akka/Scala example source code file (association_lifecycle.svg)

This example Akka source code file (association_lifecycle.svg) is included in my "Source Code Warehouse" project. The intent of this project is to help you more easily find Akka and Scala source code examples by using tags.

All credit for the original source code belongs to akka.io; I'm just trying to make examples easier to find. (For my Scala work, see my Scala examples and tutorials.)

Akka tags/keywords

all, arrow2lend, arrow2lstart, bold, c, gothic, m, quarantined, remote, successful

The association_lifecycle.svg Akka example source code

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="642.48157"
   height="649.93738"
   id="svg2"
   version="1.1"
   inkscape:version="0.48.2 r9819"
   sodipodi:docname="association_lifecycle.svg"
   inkscape:export-filename="D:\workspace\akka\association_lifecycle.png"
   inkscape:export-xdpi="86.823746"
   inkscape:export-ydpi="86.823746">
  <defs
     id="defs4">
    <marker
       inkscape:stockid="Arrow2Lstart"
       orient="auto"
       refY="0"
       refX="0"
       id="Arrow2Lstart"
       style="overflow:visible">
      <path
         id="path3946"
         style="font-size:12px;fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 C 6.97309,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z"
         transform="matrix(1.1,0,0,1.1,1.1,0)"
         inkscape:connector-curvature="0" />
    </marker>
    <marker
       inkscape:stockid="Arrow2Lend"
       orient="auto"
       refY="0"
       refX="0"
       id="Arrow2Lend"
       style="overflow:visible">
      <path
         id="path3949"
         style="font-size:12px;fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 C 6.97309,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z"
         transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
         inkscape:connector-curvature="0" />
    </marker>
  </defs>
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.94342858"
     inkscape:cx="319.2676"
     inkscape:cy="328.22305"
     inkscape:document-units="px"
     inkscape:current-layer="layer1"
     showgrid="false"
     inkscape:window-width="1600"
     inkscape:window-height="838"
     inkscape:window-x="-8"
     inkscape:window-y="-8"
     inkscape:window-maximized="1"
     fit-margin-top="40"
     fit-margin-left="20"
     fit-margin-right="20"
     fit-margin-bottom="20" />
  <metadata
     id="metadata7">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title />
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1"
     transform="translate(-52.77964,-42.189247)">
    <rect
       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:4;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
       id="rect3777"
       width="205.52536"
       height="179.72238"
       x="358.72018"
       y="490.40427"
       rx="10.392074"
       ry="10.392074" />
    <text
       xml:space="preserve"
       style="font-size:28px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans Bold"
       x="374.21671"
       y="524.16431"
       id="text3779"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3781"
         x="374.21671"
         y="524.16431">Quarantined</tspan></text>
    <rect
       ry="10.392074"
       rx="10.392074"
       y="86.890343"
       x="131.78986"
       height="54.048653"
       width="85.145142"
       id="rect3783"
       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3.99999952;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
    <text
       sodipodi:linespacing="125%"
       id="text3785"
       y="122.42919"
       x="148.2804"
       style="font-size:28px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans Bold"
       xml:space="preserve"><tspan
         y="122.42919"
         x="148.2804"
         id="tspan3787"
         sodipodi:role="line">Idle</tspan></text>
    <rect
       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3.99999976;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
       id="rect3789"
       width="195.46362"
       height="115.50124"
       x="360.57117"
       y="84.669167"
       rx="10.392074"
       ry="10.392074" />
    <text
       xml:space="preserve"
       style="font-size:28px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans Bold"
       x="377.24457"
       y="120.20802"
       id="text3791"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         x="377.24457"
         y="120.20802"
         id="tspan3795">Active</tspan></text>
    <rect
       ry="10.392074"
       rx="10.392074"
       y="278.65201"
       x="74.77964"
       height="107.12277"
       width="199.16559"
       id="rect3799"
       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:4;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
    <text
       sodipodi:linespacing="125%"
       id="text3801"
       y="314.19086"
       x="88.425385"
       style="font-size:28px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans Bold"
       xml:space="preserve"><tspan
         id="tspan3803"
         y="314.19086"
         x="88.425385"
         sodipodi:role="line">Gated</tspan></text>
    <text
       xml:space="preserve"
       style="font-size:20px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans Bold"
       x="105.87613"
       y="319.3736"
       id="text3809"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3811"
         x="105.87613"
         y="319.3736" /></text>
    <text
       xml:space="preserve"
       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans Bold"
       x="142.89577"
       y="169.8143"
       id="text3815"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3817"
         x="142.89577"
         y="169.8143" /></text>
    <text
       xml:space="preserve"
       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="117.73823"
       y="253.59573"
       id="text3819"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3821"
         x="117.73823"
         y="253.59573">Gate time </tspan><tspan
         sodipodi:role="line"
         x="117.73823"
         y="268.59573"
         id="tspan3853">elapses</tspan></text>
    <text
       xml:space="preserve"
       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="226.32596"
       y="72.187294"
       id="text3825"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3827"
         x="226.32596"
         y="72.187294">● Message send to</tspan><tspan
         sodipodi:role="line"
         x="226.32596"
         y="87.187294"
         id="tspan3829">remote system</tspan><tspan
         sodipodi:role="line"
         x="226.32596"
         y="102.18729"
         id="tspan3072">● Successful inbound</tspan><tspan
         sodipodi:role="line"
         x="226.32596"
         y="117.18729"
         id="tspan3074">connection</tspan></text>
    <path
       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
       d="M 394.62921,200.17039 C 393.60715,201.53315 376.11707,230.87967 348.73727,254.97352 316.61464,283.241 273.94523,306.78692 273.94523,306.78692"
       id="path3831"
       inkscape:connector-curvature="0"
       sodipodi:nodetypes="csc" />
    <text
       xml:space="preserve"
       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="290.97424"
       y="310.48886"
       id="text3833"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3835"
         x="290.97424"
         y="310.48886">Communication</tspan><tspan
         sodipodi:role="line"
         x="290.97424"
         y="325.48886"
         id="tspan3837">failure:</tspan><tspan
         sodipodi:role="line"
         x="290.97424"
         y="340.48886"
         id="tspan6955">● Failed TCP connection</tspan><tspan
         sodipodi:role="line"
         x="290.97424"
         y="355.48886"
         id="tspan3839">● Transport FD trigger</tspan><tspan
         sodipodi:role="line"
         x="290.97424"
         y="370.48886"
         id="tspan3841">● Name lookup failure</tspan><tspan
         sodipodi:role="line"
         x="290.97424"
         y="385.48886"
         id="tspan3843">● Remote system shutdown</tspan></text>
    <text
       xml:space="preserve"
       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#555753;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="376.8598"
       y="141.97742"
       id="text3845"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3847"
         x="376.8598"
         y="141.97742">(Connecting or Connected)</tspan><tspan
         sodipodi:role="line"
         x="376.8598"
         y="159.47742"
         id="tspan3849">Messages are delivered</tspan><tspan
         sodipodi:role="line"
         x="376.8598"
         y="176.97742"
         id="tspan3851">or buffered if needed</tspan></text>
    <path
       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
       d="M 231.74286,278.652 C 231.74286,278.652 274.94957,227.53908 296.73868,210.51012 318.52778,193.48115 359.09037,174.99705 359.09037,174.99705"
       id="path3855"
       inkscape:connector-curvature="0"
       sodipodi:nodetypes="czc" />
    <text
       xml:space="preserve"
       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="252.03088"
       y="171.36469"
       id="text3857"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3859"
         x="252.03088"
         y="171.36469">Successful</tspan><tspan
         sodipodi:role="line"
         x="252.03088"
         y="186.36469"
         id="tspan3861">inbound </tspan><tspan
         sodipodi:role="line"
         x="252.03088"
         y="201.36469"
         id="tspan3885">connection</tspan></text>
    <text
       xml:space="preserve"
       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#555753;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="89.587494"
       y="334.18146"
       id="text3863"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3865"
         x="89.587494"
         y="334.18146">All outbound messages </tspan><tspan
         sodipodi:role="line"
         x="89.587494"
         y="351.68146"
         id="tspan3869">destined to the gated system</tspan><tspan
         sodipodi:role="line"
         x="89.587494"
         y="369.18146"
         id="tspan3867">are dropped</tspan></text>
    <text
       xml:space="preserve"
       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="520.59717"
       y="221.50888"
       id="text3877"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         x="520.59717"
         y="221.50888"
         id="tspan6941">Catastrophic communication</tspan><tspan
         sodipodi:role="line"
         x="520.59717"
         y="236.50888"
         id="tspan6945">failure:</tspan><tspan
         sodipodi:role="line"
         x="520.59717"
         y="251.50888"
         id="tspan6939">● Remote DeathWatch trigger</tspan><tspan
         sodipodi:role="line"
         x="520.59717"
         y="266.50888"
         id="tspan3881">● System message </tspan><tspan
         sodipodi:role="line"
         x="520.59717"
         y="281.50888"
         id="tspan3883">delivery failure</tspan><tspan
         sodipodi:role="line"
         x="520.59717"
         y="296.50888"
         id="tspan3887">● Cluster MemberRemoved </tspan><tspan
         sodipodi:role="line"
         x="520.59717"
         y="311.50888"
         id="tspan3062">event</tspan></text>
    <text
       xml:space="preserve"
       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#555753;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="375.36417"
       y="545.63568"
       id="text3889"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3891"
         x="375.36417"
         y="545.63568">All outbound and inbound</tspan><tspan
         sodipodi:role="line"
         x="375.36417"
         y="563.13568"
         id="tspan3893">messages arriving from the</tspan><tspan
         sodipodi:role="line"
         x="375.36417"
         y="580.63568"
         id="tspan3895">quarantined system are</tspan><tspan
         sodipodi:role="line"
         x="375.36417"
         y="598.13568"
         id="tspan3897">dropped. Remote system</tspan><tspan
         sodipodi:role="line"
         x="375.36417"
         y="615.63568"
         id="tspan6949">must be restarted to be able</tspan><tspan
         sodipodi:role="line"
         x="375.36417"
         y="633.13568"
         id="tspan6951">establish communication </tspan><tspan
         sodipodi:role="line"
         x="375.36417"
         y="650.63568"
         id="tspan6953">again.</tspan></text>
    <path
       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#Arrow2Lstart);marker-end:none"
       d="M 173.25185,141.67938 173.25185,280.13278"
       id="path3899"
       inkscape:connector-curvature="0" />
    <path
       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
       d="M 216.19462,124.28486 359.83076,124.28486"
       id="path3901"
       inkscape:connector-curvature="0" />
    <path
       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
       d="M 513.83241,198.68961 513.83241,488.92348"
       id="path3903"
       inkscape:connector-curvature="0" />
    <path
       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#Arrow2Lstart);marker-end:none"
       d="M 470.88964,200.17039 470.88964,489.66387"
       id="path3905"
       inkscape:connector-curvature="0" />
    <text
       xml:space="preserve"
       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Franklin Gothic Medium;-inkscape-font-specification:Sans"
       x="350.03479"
       y="432.1474"
       id="text3907"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3909"
         x="350.03479"
         y="432.1474">Successful</tspan><tspan
         sodipodi:role="line"
         x="350.03479"
         y="447.1474"
         id="tspan3915">inbound our outbound</tspan><tspan
         sodipodi:role="line"
         x="350.03479"
         y="462.1474"
         id="tspan3913">connection from/to </tspan><tspan
         sodipodi:role="line"
         x="350.03479"
         y="477.1474"
         id="tspan3923"><tspan
   style="font-style:oblique;-inkscape-font-specification:'Franklin Gothic Medium, Oblique'"
   id="tspan6947">restarted</tspan> system</tspan></text>
  </g>
</svg>

Other Akka source code examples

Here is a short list of links related to this Akka association_lifecycle.svg source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.