C# Class TSystems.RELOAD.Transport.MessageTransport

Afficher le fichier Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Méthodes publiques

Méthode Description
AppAttachProcedure ( Destination dest ) : IEnumerator
AppAttachProcedure ( Destination dest, NodeId viaGateWay, string overlayName ) : IEnumerator

Proprietary: Starts an AppAttachProcedure which is routed through the viaGateWay Node into the "overlayName" Overlay

AttachFinger ( TSystems.RELOAD.Topology.TopologyPlugin.RoutingTable.FTableEntry finger, Port attachNext ) : IEnumerator

Attaches to a node needed to enrich the finger table.

AttachProcedure ( Destination dest, NodeId NextHopId, AttachOption attach_option ) : IEnumerator
CheckAndSetAdmittingPeer ( Node node ) : System.Boolean
EvaluateReplicas ( ) : void
Fetch ( ) : IEnumerator
Fetch ( string resourceName, List specifiers ) : IEnumerator

The Fetch request retrieves one or more data elements stored at a given Resource-ID. A single Fetch request can retrieve multiple different kinds. RELOAD base -13 p.92 --alex

Fetch ( string resourceName, List specifiers, NodeId viaGateWay ) : IEnumerator

Proprietary: Tries to fetch the Data specified by the StoredDataSpecifier List from different RELOAD overlay using viaGateWay as gateway

GetForwardingAndLinkManagementLayer ( ) : IForwardLinkManagement
HandoverKeys ( bool fSendLeaveFirst ) : IEnumerator

Handover key if: 1. leave overlay 2. I'm AP while a join req happens.

InboundClose ( NodeId nodeid ) : void
Init ( System.Machine machine ) : void
Leave ( ) : IEnumerator

Just the leaving Procedure

NextHopToDestination ( Destination dest, bool &direct ) : Node
PreJoinProdecure ( List BootstrapServerList ) : IEnumerator
Send ( ReloadMessage reloadSendMsg, Node NextHopNode ) : IEnumerator
SendPing ( Destination dest, PingOption pingOption ) : IEnumerator
SendUpdate ( Node node, Node nexthopnode ) : IEnumerator
Store ( string ResourceName, List kind_data ) : IEnumerator

Stores the Usage data in the RELOAD overlay

Store ( string ResourceName, List kind_data, NodeId viaGateWay ) : IEnumerator

Proprietary: Stores the Usage data in a different RELOAD overlay using viaGateWay as gateway

StoreReplicas ( NodeId node ) : IEnumerator

Store Replicas: My next two successors have changed. Replicate my data

create_app_attach_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
create_app_attach_req ( Destination destination ) : ReloadMessage
create_attach_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
create_attach_req ( Destination destination, System.Boolean fForceSendUpdate ) : ReloadMessage

Creates an Attach request

create_erro_reply ( Destination destination, RELOAD_ErrorCode error, string errmsg, System.UInt64 trans_id ) : ReloadMessage
create_join_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
create_join_req ( Destination destination ) : ReloadMessage
create_leave_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
create_leave_req ( Destination destination ) : ReloadMessage
create_ping_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
create_ping_req ( Destination destination ) : ReloadMessage
create_reload_message ( ReloadMessage reloadRequest ) : ReloadMessage
create_store_answ ( Destination dest, System.UInt64 trans_id, List skd, List replicas ) : ReloadMessage

Creates a StoreAns message accoriding to RELOAD base -12 p.90

create_store_req ( Destination destination, List stored_kind_data, bool replica ) : ReloadMessage

Creates a StoreReq according to RELOAD base -12 p.86

create_store_req ( Destination destination, ResourceId resourceId, List stored_kind_data, bool replica ) : ReloadMessage

Creates a StoreReq that can be directed a specific NodeId

create_update_answ ( Destination destination, System.UInt64 trans_id, RELOAD_ErrorCode result ) : ReloadMessage
create_update_req ( Destination destination, TopologyPlugin rt, ChordUpdateType type ) : ReloadMessage
receive_message ( ReloadMessage reloadMsg ) : void
reload_app_attach_inbound ( ReloadMessage recmsg ) : void
reload_attach_inbound ( ReloadMessage recmsg ) : void
rfm_ReloadFLMEventHandler ( object sender, ReloadFLMEventArgs args ) : ReloadFLMEventArgs

Private Methods

Méthode Description
OnFetchedData ( ResourceId res_id, List fetchKindResponses ) : void

On data fetch execute the Usages AppProcedure

create_fetch_answ ( Destination destination, System.UInt64 trans_id, List fetchKindResponses ) : ReloadMessage

Creates a FetchAns

create_fetch_req ( Destination destination, List specifiers ) : ReloadMessage

Creates a FetchReq using the given StoredDataSpecifiers

create_reload_message ( Destination destination, System.UInt64 trans_id, RELOAD_MessageBody reload_content ) : ReloadMessage
reload_fetch_inbound ( ReloadMessage recmsg ) : void

Handles incoming fetch requests

reload_join_inbound ( ReloadMessage recmsg ) : void
reload_leave_inbound ( ReloadMessage recmsg ) : void
reload_ping_inbound ( ReloadMessage recmsg ) : void
reload_store_inbound ( ReloadMessage recmsg ) : void

Handles incoming StoreReq messages.

reload_update_inbound ( ReloadMessage recmsg ) : void
send ( ReloadMessage reloadMsg, Node NextHopNode ) : void

Method Details

AppAttachProcedure() public méthode

public AppAttachProcedure ( Destination dest ) : IEnumerator
dest Destination
Résultat IEnumerator

AppAttachProcedure() public méthode

Proprietary: Starts an AppAttachProcedure which is routed through the viaGateWay Node into the "overlayName" Overlay
public AppAttachProcedure ( Destination dest, NodeId viaGateWay, string overlayName ) : IEnumerator
dest Destination Destination to appattach to
viaGateWay TSystems.RELOAD.Utils.NodeId Node Id of the GateWay into interconnection Overlay
overlayName string Name of the Overlay the other Peer is participating. Needed by the Gateway for further routing.
Résultat IEnumerator

AttachFinger() public méthode

Attaches to a node needed to enrich the finger table.
public AttachFinger ( TSystems.RELOAD.Topology.TopologyPlugin.RoutingTable.FTableEntry finger, Port attachNext ) : IEnumerator
finger TSystems.RELOAD.Topology.TopologyPlugin.RoutingTable.FTableEntry
attachNext Port
Résultat IEnumerator

AttachProcedure() public méthode

public AttachProcedure ( Destination dest, NodeId NextHopId, AttachOption attach_option ) : IEnumerator
dest Destination
NextHopId TSystems.RELOAD.Utils.NodeId
attach_option AttachOption
Résultat IEnumerator

CheckAndSetAdmittingPeer() public méthode

public CheckAndSetAdmittingPeer ( Node node ) : System.Boolean
node TSystems.RELOAD.Topology.Node
Résultat System.Boolean

EvaluateReplicas() public méthode

public EvaluateReplicas ( ) : void
Résultat void

Fetch() public méthode

public Fetch ( ) : IEnumerator
Résultat IEnumerator

Fetch() public méthode

The Fetch request retrieves one or more data elements stored at a given Resource-ID. A single Fetch request can retrieve multiple different kinds. RELOAD base -13 p.92 --alex
public Fetch ( string resourceName, List specifiers ) : IEnumerator
resourceName string The resouces name (human readable)
specifiers List StoredSpecifier objects
Résultat IEnumerator

Fetch() public méthode

Proprietary: Tries to fetch the Data specified by the StoredDataSpecifier List from different RELOAD overlay using viaGateWay as gateway
public Fetch ( string resourceName, List specifiers, NodeId viaGateWay ) : IEnumerator
resourceName string
specifiers List
viaGateWay TSystems.RELOAD.Utils.NodeId
Résultat IEnumerator

GetForwardingAndLinkManagementLayer() public méthode

public GetForwardingAndLinkManagementLayer ( ) : IForwardLinkManagement
Résultat IForwardLinkManagement

HandoverKeys() public méthode

Handover key if: 1. leave overlay 2. I'm AP while a join req happens.
public HandoverKeys ( bool fSendLeaveFirst ) : IEnumerator
fSendLeaveFirst bool
Résultat IEnumerator

InboundClose() public méthode

public InboundClose ( NodeId nodeid ) : void
nodeid TSystems.RELOAD.Utils.NodeId
Résultat void

Init() public méthode

public Init ( System.Machine machine ) : void
machine System.Machine
Résultat void

Leave() public méthode

Just the leaving Procedure
public Leave ( ) : IEnumerator
Résultat IEnumerator

NextHopToDestination() public méthode

public NextHopToDestination ( Destination dest, bool &direct ) : Node
dest Destination
direct bool
Résultat TSystems.RELOAD.Topology.Node

PreJoinProdecure() public méthode

public PreJoinProdecure ( List BootstrapServerList ) : IEnumerator
BootstrapServerList List
Résultat IEnumerator

Send() public méthode

public Send ( ReloadMessage reloadSendMsg, Node NextHopNode ) : IEnumerator
reloadSendMsg ReloadMessage
NextHopNode TSystems.RELOAD.Topology.Node
Résultat IEnumerator

SendPing() public méthode

public SendPing ( Destination dest, PingOption pingOption ) : IEnumerator
dest Destination
pingOption PingOption
Résultat IEnumerator

SendUpdate() public méthode

public SendUpdate ( Node node, Node nexthopnode ) : IEnumerator
node TSystems.RELOAD.Topology.Node
nexthopnode TSystems.RELOAD.Topology.Node
Résultat IEnumerator

Store() public méthode

Stores the Usage data in the RELOAD overlay
public Store ( string ResourceName, List kind_data ) : IEnumerator
ResourceName string
kind_data List
Résultat IEnumerator

Store() public méthode

Proprietary: Stores the Usage data in a different RELOAD overlay using viaGateWay as gateway
public Store ( string ResourceName, List kind_data, NodeId viaGateWay ) : IEnumerator
ResourceName string
kind_data List
viaGateWay TSystems.RELOAD.Utils.NodeId
Résultat IEnumerator

StoreReplicas() public méthode

Store Replicas: My next two successors have changed. Replicate my data
public StoreReplicas ( NodeId node ) : IEnumerator
node TSystems.RELOAD.Utils.NodeId
Résultat IEnumerator

create_app_attach_answ() public méthode

public create_app_attach_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
destination Destination
trans_id System.UInt64
Résultat ReloadMessage

create_app_attach_req() public méthode

public create_app_attach_req ( Destination destination ) : ReloadMessage
destination Destination
Résultat ReloadMessage

create_attach_answ() public méthode

public create_attach_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
destination Destination
trans_id System.UInt64
Résultat ReloadMessage

create_attach_req() public méthode

Creates an Attach request
public create_attach_req ( Destination destination, System.Boolean fForceSendUpdate ) : ReloadMessage
destination Destination The destination of this attach
fForceSendUpdate System.Boolean Flag ForceSendUpdate
Résultat ReloadMessage

create_erro_reply() public méthode

public create_erro_reply ( Destination destination, RELOAD_ErrorCode error, string errmsg, System.UInt64 trans_id ) : ReloadMessage
destination Destination
error RELOAD_ErrorCode
errmsg string
trans_id System.UInt64
Résultat ReloadMessage

create_join_answ() public méthode

public create_join_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
destination Destination
trans_id System.UInt64
Résultat ReloadMessage

create_join_req() public méthode

public create_join_req ( Destination destination ) : ReloadMessage
destination Destination
Résultat ReloadMessage

create_leave_answ() public méthode

public create_leave_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
destination Destination
trans_id System.UInt64
Résultat ReloadMessage

create_leave_req() public méthode

public create_leave_req ( Destination destination ) : ReloadMessage
destination Destination
Résultat ReloadMessage

create_ping_answ() public méthode

public create_ping_answ ( Destination destination, System.UInt64 trans_id ) : ReloadMessage
destination Destination
trans_id System.UInt64
Résultat ReloadMessage

create_ping_req() public méthode

public create_ping_req ( Destination destination ) : ReloadMessage
destination Destination
Résultat ReloadMessage

create_reload_message() public méthode

public create_reload_message ( ReloadMessage reloadRequest ) : ReloadMessage
reloadRequest ReloadMessage
Résultat ReloadMessage

create_store_answ() public méthode

Creates a StoreAns message accoriding to RELOAD base -12 p.90
public create_store_answ ( Destination dest, System.UInt64 trans_id, List skd, List replicas ) : ReloadMessage
dest Destination
trans_id System.UInt64 The transaction ID corresponding to the StoreReq
skd List
replicas List
Résultat ReloadMessage

create_store_req() public méthode

Creates a StoreReq according to RELOAD base -12 p.86
public create_store_req ( Destination destination, List stored_kind_data, bool replica ) : ReloadMessage
destination Destination The store destination
stored_kind_data List
replica bool
Résultat ReloadMessage

create_store_req() public méthode

Creates a StoreReq that can be directed a specific NodeId
public create_store_req ( Destination destination, ResourceId resourceId, List stored_kind_data, bool replica ) : ReloadMessage
destination Destination The store destination NodeId
resourceId TSystems.RELOAD.Utils.ResourceId The Id of the resource to store
stored_kind_data List
replica bool
Résultat ReloadMessage

create_update_answ() public méthode

public create_update_answ ( Destination destination, System.UInt64 trans_id, RELOAD_ErrorCode result ) : ReloadMessage
destination Destination
trans_id System.UInt64
result RELOAD_ErrorCode
Résultat ReloadMessage

create_update_req() public méthode

public create_update_req ( Destination destination, TopologyPlugin rt, ChordUpdateType type ) : ReloadMessage
destination Destination
rt TSystems.RELOAD.Topology.TopologyPlugin
type ChordUpdateType
Résultat ReloadMessage

receive_message() public méthode

public receive_message ( ReloadMessage reloadMsg ) : void
reloadMsg ReloadMessage
Résultat void

reload_app_attach_inbound() public méthode

public reload_app_attach_inbound ( ReloadMessage recmsg ) : void
recmsg ReloadMessage
Résultat void

reload_attach_inbound() public méthode

public reload_attach_inbound ( ReloadMessage recmsg ) : void
recmsg ReloadMessage
Résultat void

rfm_ReloadFLMEventHandler() public méthode

public rfm_ReloadFLMEventHandler ( object sender, ReloadFLMEventArgs args ) : ReloadFLMEventArgs
sender object
args ReloadFLMEventArgs
Résultat ReloadFLMEventArgs