C# 클래스 PBCaGw.Workers.WorkerChain

Stores a processing chain composed of workers
상속: IDisposable
파일 보기 프로젝트 열기: ISISComputingGroup/EPICS-epicssharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Add() 공개 메소드

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
리턴 void

Dispose() 공개 메소드

Dispose the current chain.
public Dispose ( ) : void
리턴 void

NbClientConn() 공개 정적인 메소드

public static NbClientConn ( ) : int
리턴 int

NbServerConn() 공개 정적인 메소드

public static NbServerConn ( ) : int
리턴 int

RemoveLast() 공개 메소드

public RemoveLast ( ) : void
리턴 void

TcpChain() 공개 정적인 메소드

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
리턴 WorkerChain

TcpResponseChain() 공개 정적인 메소드

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
리턴 WorkerChain

UdpBeaconReceiver() 공개 정적인 메소드

public static UdpBeaconReceiver ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server List
리턴 WorkerChain

UdpChain() 공개 정적인 메소드

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
리턴 WorkerChain

UdpResponseChain() 공개 정적인 메소드

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
리턴 WorkerChain

UseChain() 공개 메소드

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

this() 공개 메소드

public this ( int key ) : Worker
key int
리턴 Worker

프로퍼티 상세

ChannelCid 공개적으로 프로퍼티

public ConcurrentDictionary ChannelCid
리턴 uint>.ConcurrentDictionary

ChannelSubscriptions 공개적으로 프로퍼티

public ConcurrentDictionary ChannelSubscriptions
리턴 uint>.ConcurrentDictionary

Channels 공개적으로 프로퍼티

public ObservableConcurrentBag Channels
리턴 ObservableConcurrentBag

ClientEndPoint 공개적으로 프로퍼티

public IPEndPoint,System.Net ClientEndPoint
리턴 System.Net.IPEndPoint

Gateway 공개적으로 프로퍼티

public Gateway Gateway
리턴 Gateway

IsDisposed 공개적으로 프로퍼티

public bool IsDisposed
리턴 bool

IsDisposing 공개적으로 프로퍼티

public bool IsDisposing
리턴 bool

LastMessage 공개적으로 프로퍼티

public DateTime,System LastMessage
리턴 System.DateTime

ServerEndPoint 공개적으로 프로퍼티

public IPEndPoint,System.Net ServerEndPoint
리턴 System.Net.IPEndPoint

Subscriptions 공개적으로 프로퍼티

public ConcurrentDictionary Subscriptions
리턴 uint>.ConcurrentDictionary