C# Class Brunet.Messaging.ReqrepManager

Inheritance: SimpleSource, IDataHandler
Datei anzeigen Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_info string
_inst_tab_sync object
_instance_table ReqrepManager>.WeakValueTable
_prefix Brunet.Util.PType
_reply_cache Brunet.Collections.Cache
_reply_id_table UidGenerator
_req_state_table UidGenerator
_to_mgr TimeOutManager

Public Methods

Method Description
GetInstance ( string context ) : ReqrepManager
HandleData ( MemBlock p, ISender from, object state ) : void
LookupReplyStateByUri ( object ctx, string uri ) : ReplyState
ReqrepManager ( string info ) : System
ReqrepManager ( string info, PType prefix ) : System
RequestActive ( int request_id ) : bool
SendRequest ( ISender sender, ReqrepType reqt, ICopyable data, IReplyHandler reply, object state ) : int
StopRequest ( int request_id, IReplyHandler handler ) : void
TimeoutChecker ( object o, EventArgs args ) : void

Protected Methods

Method Description
GenerateReplyState ( PType prefix, RequestKey rk ) : ReplyState
HandleError ( ReqrepType rt, int idnum, MemBlock err_data, ISender ret_path ) : void
HandleReply ( ReqrepType rt, int idnum, MemBlock rest, ISender ret_path ) : void
HandleReplyAck ( ReqrepType rt, int idnum, MemBlock err_data, ISender ret_path ) : void
HandleReplyCacheEviction ( object cache, EventArgs ev_args ) : void
HandleRequest ( ReqrepType rt, int idnum, MemBlock rest, ISender retpath ) : void
HandleRequestAck ( ReqrepType rt, int idnum, MemBlock rest, ISender ret_path ) : void
MakeRequest ( ReqrepType rt, int next_rep, ICopyable data ) : ICopyable
ReleaseReplyState ( ReplyState rs ) : void

Private Methods

Method Description
ReqrepManager ( ) : System

Method Details

GenerateReplyState() protected method

protected GenerateReplyState ( PType prefix, RequestKey rk ) : ReplyState
prefix Brunet.Util.PType
rk RequestKey
return ReplyState

GetInstance() public static method

public static GetInstance ( string context ) : ReqrepManager
context string
return ReqrepManager

HandleData() public method

public HandleData ( MemBlock p, ISender from, object state ) : void
p Brunet.Util.MemBlock
from ISender
state object
return void

HandleError() protected method

protected HandleError ( ReqrepType rt, int idnum, MemBlock err_data, ISender ret_path ) : void
rt ReqrepType
idnum int
err_data Brunet.Util.MemBlock
ret_path ISender
return void

HandleReply() protected method

protected HandleReply ( ReqrepType rt, int idnum, MemBlock rest, ISender ret_path ) : void
rt ReqrepType
idnum int
rest Brunet.Util.MemBlock
ret_path ISender
return void

HandleReplyAck() protected method

protected HandleReplyAck ( ReqrepType rt, int idnum, MemBlock err_data, ISender ret_path ) : void
rt ReqrepType
idnum int
err_data Brunet.Util.MemBlock
ret_path ISender
return void

HandleReplyCacheEviction() protected method

protected HandleReplyCacheEviction ( object cache, EventArgs ev_args ) : void
cache object
ev_args System.EventArgs
return void

HandleRequest() protected method

protected HandleRequest ( ReqrepType rt, int idnum, MemBlock rest, ISender retpath ) : void
rt ReqrepType
idnum int
rest Brunet.Util.MemBlock
retpath ISender
return void

HandleRequestAck() protected method

protected HandleRequestAck ( ReqrepType rt, int idnum, MemBlock rest, ISender ret_path ) : void
rt ReqrepType
idnum int
rest Brunet.Util.MemBlock
ret_path ISender
return void

LookupReplyStateByUri() public static method

public static LookupReplyStateByUri ( object ctx, string uri ) : ReplyState
ctx object
uri string
return ReplyState

MakeRequest() protected method

protected MakeRequest ( ReqrepType rt, int next_rep, ICopyable data ) : ICopyable
rt ReqrepType
next_rep int
data ICopyable
return ICopyable

ReleaseReplyState() protected method

protected ReleaseReplyState ( ReplyState rs ) : void
rs ReplyState
return void

ReqrepManager() public method

public ReqrepManager ( string info ) : System
info string
return System

ReqrepManager() public method

public ReqrepManager ( string info, PType prefix ) : System
info string
prefix Brunet.Util.PType
return System

RequestActive() public method

public RequestActive ( int request_id ) : bool
request_id int
return bool

SendRequest() public method

public SendRequest ( ISender sender, ReqrepType reqt, ICopyable data, IReplyHandler reply, object state ) : int
sender ISender
reqt ReqrepType
data ICopyable
reply IReplyHandler
state object
return int

StopRequest() public method

public StopRequest ( int request_id, IReplyHandler handler ) : void
request_id int
handler IReplyHandler
return void

TimeoutChecker() public method

public TimeoutChecker ( object o, EventArgs args ) : void
o object
args System.EventArgs
return void

Property Details

_info protected_oe property

protected string _info
return string

_inst_tab_sync protected_oe static_oe property

protected static object _inst_tab_sync
return object

_instance_table protected_oe static_oe property

protected static WeakValueTable _instance_table
return ReqrepManager>.WeakValueTable

_prefix protected_oe property

protected PType,Brunet.Util _prefix
return Brunet.Util.PType

_reply_cache protected_oe property

protected Cache,Brunet.Collections _reply_cache
return Brunet.Collections.Cache

_reply_id_table protected_oe property

protected UidGenerator _reply_id_table
return UidGenerator

_req_state_table protected_oe property

protected UidGenerator _req_state_table
return UidGenerator

_to_mgr protected_oe property

protected TimeOutManager _to_mgr
return TimeOutManager