C# 클래스 RedisQueue.Net.ServiceProvider.Old.QueueMonitor

파일 보기 프로젝트 열기: e-travel/RedisQueue.Net 1 사용 예제들

공개 메소드들

메소드 설명
QueueMonitor ( ) : System

Ctor. Creates and consumes a new {RedisQueueClient} instance.

QueueMonitor ( QueueClient queue ) : System

Ctor. Requires a {RedisQueueClient} instance.

SignalNewTasksArrived ( ) : void

Lets the main process know that more tasks are available.

Start ( ) : void

The main work method, signalling the monitor to start observing the queue defined in configuration.

Stop ( ) : void

보호된 메소드들

메소드 설명
Run ( ) : void

The main monitor run method. What it does is try to reserve a task and dispatch it in a separate application domain. A couple of notes follow: AppDomain load / unload policy The current policy is pretty straightforward. As long as the monitor finds tasks in the queue, it will re-use the application domain. As soon as the queue is empty, it will attempt to unload the application domain. Stuck tasks ...will currently hang the service. Probable TODO: Monitor the AppDomain and kill / fail stuck tasks.

비공개 메소드들

메소드 설명
initAppDomain ( ) : void
releaseAppDomain ( ) : bool
resolvePath ( string workerAssemblyPath ) : string

메소드 상세

QueueMonitor() 공개 메소드

Ctor. Creates and consumes a new {RedisQueueClient} instance.
public QueueMonitor ( ) : System
리턴 System

QueueMonitor() 공개 메소드

Ctor. Requires a {RedisQueueClient} instance.
public QueueMonitor ( QueueClient queue ) : System
queue RedisQueue.Net.Clients.QueueClient
리턴 System

Run() 보호된 메소드

The main monitor run method. What it does is try to reserve a task and dispatch it in a separate application domain. A couple of notes follow: AppDomain load / unload policy The current policy is pretty straightforward. As long as the monitor finds tasks in the queue, it will re-use the application domain. As soon as the queue is empty, it will attempt to unload the application domain. Stuck tasks ...will currently hang the service. Probable TODO: Monitor the AppDomain and kill / fail stuck tasks.
protected Run ( ) : void
리턴 void

SignalNewTasksArrived() 공개 메소드

Lets the main process know that more tasks are available.
public SignalNewTasksArrived ( ) : void
리턴 void

Start() 공개 메소드

The main work method, signalling the monitor to start observing the queue defined in configuration.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void