summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorchertier2008-04-23 10:16:43 +0000
committerchertier2008-04-23 10:16:43 +0000
commite68e92f6c4ace4e162adb3457ea5f1046de4a89e (patch)
tree392d34992b82560a9e7816b56cfc021c6cb754b7 /cesar
parent45cfc2f3899f9e0b05dd5cf630f6f4933db3c73e (diff)
update
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1879 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp2/cco/action/action.h7
-rw-r--r--cesar/cp2/cco/action/doc/cco_action.odtbin133670 -> 133474 bytes
-rw-r--r--cesar/cp2/cco/action/doc/cco_action.xmi63
3 files changed, 38 insertions, 32 deletions
diff --git a/cesar/cp2/cco/action/action.h b/cesar/cp2/cco/action/action.h
index 74ff4e3a28..974ce1d9d8 100644
--- a/cesar/cp2/cco/action/action.h
+++ b/cesar/cp2/cco/action/action.h
@@ -173,6 +173,8 @@ cp_cco_action_renew_tei_lease(cp_t *ctx, tei_t *p_tei);
*
* called by the cco action garbage-collector function for each TEI lease
* in the list of TEI lease
+ *
+ * for the given TEI lease, check whether current clock < (TEI creation time + TEI lease time)
*/
bool
cp_cco_action_check_tei_lease(cp_t *ctx, tei_t *p_tei);
@@ -229,9 +231,10 @@ cp_cco_action_check_and_release_elapsed_tei_leases(cp_t *ctx);
*
* \param ctx control plane context
*
- * 1) check and release elapsed TEI leases
+ * 1) check and release elapsed TEI leases (current clock < TEI creation time + TEI lease time)
* this is done by calling cp_cco_action_check_and_release_elapsed_tei_leases()
- * 2) TODO (other garbage actions of CCo's responsability ?)
+ * 2) check NEK expiration (current clock < NEK creation time + 1 hour)
+ * 3) TODO (other garbage actions of CCo's responsability ?)
*/
void
cp_cco_action_garbage(cp_t *ctx);
diff --git a/cesar/cp2/cco/action/doc/cco_action.odt b/cesar/cp2/cco/action/doc/cco_action.odt
index 370af617b8..321c7f9e54 100644
--- a/cesar/cp2/cco/action/doc/cco_action.odt
+++ b/cesar/cp2/cco/action/doc/cco_action.odt
Binary files differ
diff --git a/cesar/cp2/cco/action/doc/cco_action.xmi b/cesar/cp2/cco/action/doc/cco_action.xmi
index fb3bebf858..3dd81aed78 100644
--- a/cesar/cp2/cco/action/doc/cco_action.xmi
+++ b/cesar/cp2/cco/action/doc/cco_action.xmi
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<XMI xmlns:UML="http://schema.omg.org/spec/UML/1.3" verified="false" timestamp="2008-04-22T18:05:18" xmi.version="1.2" >
+<XMI xmlns:UML="http://schema.omg.org/spec/UML/1.3" verified="false" timestamp="2008-04-23T10:26:31" xmi.version="1.2" >
<XMI.header>
<XMI.documentation>
<XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
@@ -44,32 +44,32 @@
</UML:Package>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="BzDeGrof35i3" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="YbQVQHuPriSl" aggregation="aggregate" type="wuDYnfojrSWv" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="wH7Mm74JxVTq" aggregation="none" type="QCdiA5hU9IAb" name="" multiplicity="8" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="3XocOUBdzgt0" aggregation="aggregate" type="wuDYnfojrSWv" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="Kp8cMvgMqoAo" aggregation="none" type="wuDYnfojrSWv" name="" multiplicity="8" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="DWwHbcINxulG" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="F0pbyWJV7j0V" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="yutpaLZWcgtM" aggregation="none" type="wuDYnfojrSWv" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="fvscfn8jKwJg" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="RUJOABMV0S5K" aggregation="none" type="wuDYnfojrSWv" name="" multiplicity="1" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="UODsawo5TGgC" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="mxdhR6Ye4NF3" aggregation="aggregate" type="QCdiA5hU9IAb" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="uWYzFWTBPM1z" aggregation="none" type="wuDYnfojrSWv" name="" multiplicity="*" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="OjgCXp0DksnN" aggregation="aggregate" type="wuDYnfojrSWv" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ev6wqPdFuud4" aggregation="none" type="wuDYnfojrSWv" name="" multiplicity="*" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="c6v3mGeXVqXR" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="hYUHENdyIEej" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="LCLNXaOP6wPJ" aggregation="none" type="QCdiA5hU9IAb" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="5xX5QdQmK4ws" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="rw5ZnqxPk3La" aggregation="none" type="wuDYnfojrSWv" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="T1xzpUO46GR3" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="RsTqESnt0HAC" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="elBvzpeIz0eW" aggregation="none" type="wuDYnfojrSWv" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="RypJtQNwNt2l" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="UQVoSRgKMjt7" aggregation="none" type="wuDYnfojrSWv" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Package stereotype="folder" isSpecification="false" isLeaf="false" visibility="public" namespace="Logical View" xmi.id="3Vny4m2DHl2U" isRoot="false" isAbstract="false" name="Classes" >
@@ -145,7 +145,9 @@ it obtained implicitly earlier from that CCo)." isSpecification="false" isLeaf="
<UML:Operation comment="check for TEI lease expiration.
called by the cco action garbage-collector function for each TEI lease
-in the list of TEI lease " isSpecification="false" isLeaf="false" visibility="public" xmi.id="Mi2ghtQGosJT" isRoot="false" isAbstract="false" isQuery="false" name="check_tei_lease" >
+in the list of TEI lease
+
+for the given TEI lease, check whether current clock &lt; (TEI creation time + TEI lease time) " isSpecification="false" isLeaf="false" visibility="public" xmi.id="Mi2ghtQGosJT" isRoot="false" isAbstract="false" isQuery="false" name="check_tei_lease" >
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="UEQNb9LxqLcV" type="BsXuVmQldfSS" />
<UML:Parameter comment="pointer to TEI lease to be checked" isSpecification="false" visibility="private" xmi.id="0b76PW7uuNvQ" value="" type="Juk0lEFJo1DE" name="p_tei" />
@@ -189,9 +191,10 @@ change the NEK (providing it to all other STAs, except the STA to remove) ?
" isSpecification="false" isLeaf="false" visibility="public" xmi.id="SNOFlIDZamUD" isRoot="false" isAbstract="false" isQuery="false" name="check_and_release_elapsed_tei_leases" />
<UML:Operation comment="perform garbage actions of CCo's responsability.
-1) check and release elapsed TEI leases
+1) check and release elapsed TEI leases (current clock &lt; TEI creation time + TEI lease time)
this is done by calling cp_cco_action_check_and_release_elapsed_tei_leases()
-2) TODO (other garbage actions of CCo's responsability ?)
+2) check NEK expiration (current clock &lt; NEK creation time + 1 hour)
+3) TODO (other garbage actions of CCo's responsability ?)
" isSpecification="false" isLeaf="false" visibility="public" xmi.id="TgOyCXvyx6rl" isRoot="false" isAbstract="false" isQuery="false" name="garbage" />
<UML:Operation comment="generate a new NEK value.
@@ -246,33 +249,33 @@ within a received beacon.
</UML:Package>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="8xImlyaBNYwN" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="aVIjqU4eUGRl" aggregation="aggregate" type="QCdiA5hU9IAb" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="cRehaViWw1PN" aggregation="none" type="QCdiA5hU9IAb" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="5jmRRdYxS4FI" aggregation="aggregate" type="wuDYnfojrSWv" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="t5Xhi7Kl0w9n" aggregation="none" type="wuDYnfojrSWv" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="fVlZqtZMrzdT" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ypKx6tshMAOC" aggregation="aggregate" type="QCdiA5hU9IAb" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="fTo7hGsKhWzG" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="XH3Xx6z2olRD" aggregation="aggregate" type="wuDYnfojrSWv" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="OzAo1P6uSda8" aggregation="none" type="L2ASUCoHdFZ0" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="2uIgsGr4ejEG" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="zhmvgCGezZa5" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="SQkma7wDalKF" aggregation="none" type="QCdiA5hU9IAb" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="iutjq0WMIXrF" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="eqFQZedvdnke" aggregation="none" type="wuDYnfojrSWv" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="0UqhrhEJ8WDS" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="1AZghXweChYt" aggregation="aggregate" type="QCdiA5hU9IAb" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="rmVqL5tlVcX4" aggregation="none" type="QCdiA5hU9IAb" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="AoWcS6k81bpp" aggregation="aggregate" type="wuDYnfojrSWv" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="bL9tr06VoJtN" aggregation="none" type="wuDYnfojrSWv" name="" />
</UML:Association.connection>
</UML:Association>
<UML:DataType stereotype="datatype" isSpecification="false" isLeaf="false" visibility="public" namespace="Logical View" xmi.id="tGaBn52o26ZT" isRoot="false" isAbstract="false" name="signed long long" />
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="Vd6MhjybKlo7" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="F4RjgznNR2ee" aggregation="composite" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="aBsJFkgoZiZ3" aggregation="none" type="QCdiA5hU9IAb" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="nnOmMDaxXjrM" aggregation="composite" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ivrUFisAE9jX" aggregation="none" type="wuDYnfojrSWv" name="" multiplicity="1" />
</UML:Association.connection>
</UML:Association>
<UML:DataType stereotype="datatype" isSpecification="false" isLeaf="false" visibility="public" namespace="Logical View" xmi.id="v2bgoPxiwYdm" isRoot="false" isAbstract="false" name="unsigned long long" />
@@ -283,14 +286,14 @@ within a received beacon.
</UML:Class>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="JD1yKqZUviuE" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="uV5WFMmvPQzR" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="hk28KvldXBWo" aggregation="none" type="S1YLpeJh4oXt" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="8SBKZurhopdO" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ookaLri3ZmHz" aggregation="none" type="S1YLpeJh4oXt" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="Dv7QUbCmB2YY" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="BQPNibtc6z6J" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="LrCiFC8wuA3C" aggregation="none" type="XJ9zosl58k58" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="eq5SFiVN8fii" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ZXNNLyk7kSi3" aggregation="none" type="wuDYnfojrSWv" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="Logical View" xmi.id="5lh0iutyWvxs" isRoot="false" isAbstract="false" name="tei_alloc_t" >
@@ -319,7 +322,7 @@ Synchronize local STA clock by adjusting its clock divisor as needed
<widgets>
<classwidget usesdiagramfillcolor="0" width="309" showattsigs="601" x="86" fillcolor="#ffffc0" y="214" showopsigs="601" linewidth="none" height="288" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="L2ASUCoHdFZ0" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,75,0,0,0,0,0" linecolor="#ff0000" />
<classwidget usesdiagramfillcolor="0" width="209" showattsigs="601" x="69" fillcolor="#ffffc0" y="40" showopsigs="601" linewidth="none" height="40" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="S1YLpeJh4oXt" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" />
- <classwidget usesdiagramfillcolor="0" width="158" showattsigs="601" x="322" fillcolor="#ffffc0" y="40" showopsigs="601" linewidth="none" height="56" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="5lh0iutyWvxs" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,75,0,0,0,0,0" linecolor="#ff0000" />
+ <classwidget usesdiagramfillcolor="0" width="158" showattsigs="601" x="322" fillcolor="#ffffc0" y="40" showopsigs="601" linewidth="none" height="56" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="5lh0iutyWvxs" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" />
</widgets>
<messages/>
<associations>
@@ -334,7 +337,7 @@ Synchronize local STA clock by adjusting its clock divisor as needed
<startpoint startx="292" starty="214" />
<endpoint endx="401" endy="96" />
</linepath>
- <floatingtext usesdiagramfillcolor="1" width="66" x="350" fillcolor="none" y="153" linewidth="none" posttext="" role="710" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="MYzMaojEIE9W" text="tei_alloc" usesdiagramusefillcolor="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
+ <floatingtext usesdiagramfillcolor="1" width="66" x="350" fillcolor="none" y="153" linewidth="none" posttext="" role="710" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="iktA2c1mhoSb" text="tei_alloc" usesdiagramusefillcolor="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
</assocwidget>
</associations>
</diagram>