C# Class PBCaGw.Workers.WorkerChain

Stores a processing chain composed of workers
Inheritance: IDisposable
Afficher le fichier Open project: ISISComputingGroup/EPICS-epicssharp Class Usage Examples

Méthodes publiques

Свойство Type Description
ChannelCid uint>.ConcurrentDictionary
ChannelSubscriptions uint>.ConcurrentDictionary
Channels ObservableConcurrentBag
ClientEndPoint System.Net.IPEndPoint
Gateway Gateway
IsDisposed bool
IsDisposing bool
LastMessage System.DateTime
ServerEndPoint System.Net.IPEndPoint
Subscriptions uint>.ConcurrentDictionary

Méthodes publiques

Méthode Description
Add ( Worker worker ) : void

Adds the next Worker to the chain and register it to the previous Worker to the ReceiveData event.

Dispose ( ) : void

Dispose the current chain.

NbClientConn ( ) : int
NbServerConn ( ) : int
RemoveLast ( ) : void
TcpChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain

Creates a request TCP chain

TcpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain

Creates a response TCP chains

UdpBeaconReceiver ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
UdpChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain

Creates a request UDP chain

UdpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain

Creates a request UDP chain

UseChain ( WorkerChain chain ) : void

Link 2 chains together (a client which is connected to an IOC)

this ( int key ) : Worker

Private Methods

Méthode Description
GatewayTenSecJobs ( object sender, EventArgs e ) : void

Cleanup server chains (IOC) which are not used since more than Gateway.IOC_KEEP_ALIVE_CONNECTION

PopulateChain ( Gateway gateway, ChainSide side, IEnumerable workersNeeded, IPEndPoint client, IPEndPoint server ) : WorkerChain

Used to populate the chain based on a list of types

WorkerChain ( ) : System

Method Details

Add() public méthode

Adds the next Worker to the chain and register it to the previous Worker to the ReceiveData event.
public Add ( Worker worker ) : void
worker Worker
Résultat void

Dispose() public méthode

Dispose the current chain.
public Dispose ( ) : void
Résultat void

NbClientConn() public static méthode

public static NbClientConn ( ) : int
Résultat int

NbServerConn() public static méthode

public static NbServerConn ( ) : int
Résultat int

RemoveLast() public méthode

public RemoveLast ( ) : void
Résultat void

TcpChain() public static méthode

Creates a request TCP chain
public static TcpChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server System.Net.IPEndPoint
Résultat WorkerChain

TcpResponseChain() public static méthode

Creates a response TCP chains
public static TcpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server System.Net.IPEndPoint
Résultat WorkerChain

UdpBeaconReceiver() public static méthode

public static UdpBeaconReceiver ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server List
Résultat WorkerChain

UdpChain() public static méthode

Creates a request UDP chain
public static UdpChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server List
Résultat WorkerChain

UdpResponseChain() public static méthode

Creates a request UDP chain
public static UdpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server List
Résultat WorkerChain

UseChain() public méthode

Link 2 chains together (a client which is connected to an IOC)
public UseChain ( WorkerChain chain ) : void
chain WorkerChain
Résultat void

this() public méthode

public this ( int key ) : Worker
key int
Résultat Worker

Property Details

ChannelCid public_oe property

public ConcurrentDictionary ChannelCid
Résultat uint>.ConcurrentDictionary

ChannelSubscriptions public_oe property

public ConcurrentDictionary ChannelSubscriptions
Résultat uint>.ConcurrentDictionary

Channels public_oe property

public ObservableConcurrentBag Channels
Résultat ObservableConcurrentBag

ClientEndPoint public_oe property

public IPEndPoint,System.Net ClientEndPoint
Résultat System.Net.IPEndPoint

Gateway public_oe property

public Gateway Gateway
Résultat Gateway

IsDisposed public_oe property

public bool IsDisposed
Résultat bool

IsDisposing public_oe property

public bool IsDisposing
Résultat bool

LastMessage public_oe property

public DateTime,System LastMessage
Résultat System.DateTime

ServerEndPoint public_oe property

public IPEndPoint,System.Net ServerEndPoint
Résultat System.Net.IPEndPoint

Subscriptions public_oe property

public ConcurrentDictionary Subscriptions
Résultat uint>.ConcurrentDictionary