[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah...
From: |
Hermanni Hyytiälä |
Subject: |
[Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah... |
Date: |
Mon, 07 Jul 2003 06:20:18 -0400 |
CVSROOT: /cvsroot/storm
Module name: storm
Branch:
Changes by: Hermanni Hyytiälä <address@hidden> 03/07/07 06:20:18
Modified files:
doc/pegboard/storm_with_tapestry--hemppah: peg.rst
Log message:
more pseudo
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/storm/storm/doc/pegboard/storm_with_tapestry--hemppah/peg.rst.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: storm/doc/pegboard/storm_with_tapestry--hemppah/peg.rst
diff -u storm/doc/pegboard/storm_with_tapestry--hemppah/peg.rst:1.7
storm/doc/pegboard/storm_with_tapestry--hemppah/peg.rst:1.8
--- storm/doc/pegboard/storm_with_tapestry--hemppah/peg.rst:1.7 Mon Jul 7
04:21:44 2003
+++ storm/doc/pegboard/storm_with_tapestry--hemppah/peg.rst Mon Jul 7
06:20:18 2003
@@ -5,8 +5,8 @@
:Authors: Hermanni Hyytiälä
:Date-Created: 2003-07-03
-:Last-Modified: $Date: 2003/07/07 08:21:44 $
-:Revision: $Revision: 1.7 $
+:Last-Modified: $Date: 2003/07/07 10:20:18 $
+:Revision: $Revision: 1.8 $
:Status: Incomplete
.. :Stakeholders:
@@ -161,7 +161,7 @@
object identified by a BlockIDTag, dispatch a
ostore.tapestry.api.TapestryLocateMsg that contains a BlockIDQuery
- - StormQueryMsg class (extends ostore.tapestry.api.TapestryLocateMsg,
+ - StormLocateMsg class (extends ostore.tapestry.api.TapestryLocateMsg,
implements ostore.util.QuickSerializable) for locating Storm blocks
identified by a BlockIDTag in a Tapestry overlay
@@ -236,8 +236,12 @@
// the *messages* we want receive through Tapestry
array message_types = {
- "ostore.apps.test.StormQueryMsg",
- "ostore.apps.test.StormResponseMsg"
+ "ostore.tapestry.interweave.StormErrorMsg",
+ "ostore.tapestry.interweave.StormLocateMsg",
+ "ostore.tapestry.interweave.StormResponseMsg",
+ "ostore.tapestry.interweave.StormBlockMsg",
+ "ostore.tapestry.interweave.StormBlockRequestMsg",
+ "ostore.tapestry.api.TapestryLocateFailure"
}
for (From i = 0 To numberOf(message_types)) {
@@ -268,20 +272,33 @@
// method gives an item this method
method handleEvent(QueueElementIF item) {
- if (item instanceof StormQueryMsg) {
- handleStormQueryMsg(item)
-
- } else if (item instanceof StormResponseMsg) {
- handleStormResponseMsg(item)
- } else {
- handleOtherMsg(item)
- ...
- }
+ if (item instanceof StagesInitializedSignal) {
+ // StagesInitializedSignal received
+
+ } else if (item instanceof TapestryReadyMsg) {
+ // connected
+
+ } else if (item instanceof TapestryDetachConfirm) {
+ // disconnected
+
+ } else if (item instanceof TapestryLocateFailure) {
+ // Search failed
+
+ } else if (item instanceof StormLocateMsg) {
+ handleStormLocateMsg(item)
+
+ } else if (item instanceof StormResponseMsg) {
+ handleStormResponseMsg(item)
+
+ } else if ( item instanceof XXX ) {
+ handleOtherMsg(item)
+ ...
+ }
}
- // handles a certain type of event(StormQueryMsg)
- method handleStormQueryMsg(item){
+ // handles a certain type of event(StormLocateMsg)
+ method handleStormLocateMsg(item){
results = performLocalSearch()
dispatch(results)
}
@@ -294,10 +311,10 @@
// create a Storm query to a Tapestry network
// Query tag is Storm block's GUID
- method query(){
+ method createQuery(){
blockTag = new BlockIDTag(blockGUID)
q = new StormQuery()
- queryMsg= new StormQueryMsg(blockTag, q)
+ queryMsg= new StormLocateMsg(blockTag, q)
dispatch(queryMsg)
}
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/03
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/03
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/04
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/04
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah...,
Hermanni Hyytiälä <=
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/07
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/08
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/08
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/08
- [Gzz-commits] storm/doc/pegboard/storm_with_tapestry--hemppah..., Hermanni Hyytiälä, 2003/07/08