C# Class TSystems.RELOAD.Machine

RELOAD main worker thread, major state machine is implemented here
Datei anzeigen Open project: RELOAD-NET/RELOAD.NET

Public Methods

Method Description
CommandCheckTask ( ) : IEnumerator
CommandTask ( String sCommand ) : IEnumerator
Contains ( List list, List bsslist ) : bool
Finish ( ) : void
GatherCommands ( string command, Usage_Code_Point codePoint, int type ) : void

This method gathers all Kinds that will be sent withon one single request. @precondition: The storing data MUST have the same Resource Name. @precondition: The the command MUST be the same. (e.g., ONLY store | fetch)

GatherCommandsInQueue ( string command, Usage_Code_Point codePoint, int type, NodeId viaGateway, bool CommandFinished = false ) : void
Init ( ) : bool
Machine ( ) : System
Maintenance ( ) : IEnumerator
Reporting ( ) : IEnumerator
SendCommand ( String sCommand ) : void
SetTracer ( ) : void
StartWorker ( ) : void
StopWorker ( ) : void
Store ( ) : void
StoreTask ( ) : IEnumerator
UpdateCycle ( ) : IEnumerator

Private Methods

Method Description
BootStrapConfig ( ) : void
CheckObsoletConnections ( ) : void
Completed ( object sender, RunWorkerCompletedEventArgs e ) : void
DoWork ( object sender, DoWorkEventArgs e ) : void
FixFingers ( ) : void
ForceOnline ( ) : void
IgnoreSSLErrors ( ) : void
InitUsageManager ( ) : void
PrintNodeInfo ( TopologyPlugin topology, bool extended ) : void
ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
SendPingToAllNeighbors ( ) : void
onStateUpdate ( ReloadConfig state ) : void

Method Details

CommandCheckTask() public method

public CommandCheckTask ( ) : IEnumerator
return IEnumerator

CommandTask() public method

public CommandTask ( String sCommand ) : IEnumerator
sCommand String
return IEnumerator

Contains() public method

public Contains ( List list, List bsslist ) : bool
list List
bsslist List
return bool

Finish() public method

public Finish ( ) : void
return void

GatherCommands() public method

This method gathers all Kinds that will be sent withon one single request. @precondition: The storing data MUST have the same Resource Name. @precondition: The the command MUST be the same. (e.g., ONLY store | fetch)
public GatherCommands ( string command, Usage_Code_Point codePoint, int type ) : void
command string Store | Fetch
codePoint Usage_Code_Point The Identifier for the Usage to be performed
type int Some Usages define differents types (see sip usage). Place here that value in Usage spec.
return void

GatherCommandsInQueue() public method

public GatherCommandsInQueue ( string command, Usage_Code_Point codePoint, int type, NodeId viaGateway, bool CommandFinished = false ) : void
command string
codePoint Usage_Code_Point
type int
viaGateway TSystems.RELOAD.Utils.NodeId
CommandFinished bool
return void

Init() public method

public Init ( ) : bool
return bool

Machine() public method

public Machine ( ) : System
return System

Maintenance() public method

public Maintenance ( ) : IEnumerator
return IEnumerator

Reporting() public method

public Reporting ( ) : IEnumerator
return IEnumerator

SendCommand() public method

public SendCommand ( String sCommand ) : void
sCommand String
return void

SetTracer() public method

public SetTracer ( ) : void
return void

StartWorker() public method

public StartWorker ( ) : void
return void

StopWorker() public method

public StopWorker ( ) : void
return void

Store() public method

public Store ( ) : void
return void

StoreTask() public method

public StoreTask ( ) : IEnumerator
return IEnumerator

UpdateCycle() public method

public UpdateCycle ( ) : IEnumerator
return IEnumerator