NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CWNCTConnectionFactory Class Reference

Search Toolkit Book for CWNCTConnectionFactory

+ Inheritance diagram for CWNCTConnectionFactory:
+ Collaboration diagram for CWNCTConnectionFactory:

Public Member Functions

 CWNCTConnectionFactory (CWorkerNodeControlServer &server, unsigned short &start_port, unsigned short end_port)
virtual IServer_ConnectionHandlerCreate (void)
virtual EListenAction OnFailure (unsigned short *port)
 Return desired action if the port, mentioned in AddListener is busy. More...
- Public Member Functions inherited from IServer_ConnectionFactory
virtual ~IServer_ConnectionFactory ()

Private Attributes

unsigned short & m_Port
unsigned short m_EndPort

Additional Inherited Members

- Public Types inherited from IServer_ConnectionFactory
enum  EListenAction { eLAFail = 0 , eLAIgnore = 1 , eLARetry = 2 }
 What to do if the port is busy. More...

Detailed Description

Definition at line 379 of file grid_control_thread.cpp.

Constructor & Destructor Documentation

◆ CWNCTConnectionFactory()

CWNCTConnectionFactory::CWNCTConnectionFactory ( CWorkerNodeControlServer server,
unsigned short &  start_port,
unsigned short  end_port 

Definition at line 382 of file grid_control_thread.cpp.

Member Function Documentation

◆ Create()

virtual IServer_ConnectionHandler* CWNCTConnectionFactory::Create ( void  )
a new instance of handler for connection

Implements IServer_ConnectionFactory.

Definition at line 386 of file grid_control_thread.cpp.

References m_Server.

◆ OnFailure()

virtual EListenAction CWNCTConnectionFactory::OnFailure ( unsigned short *  )

Return desired action if the port, mentioned in AddListener is busy.

If the action is eLARetry, provide new port. The

Reimplemented from IServer_ConnectionFactory.

Definition at line 389 of file grid_control_thread.cpp.

References IServer_ConnectionFactory::eLAFail, IServer_ConnectionFactory::eLARetry, m_EndPort, and m_Port.

Member Data Documentation

◆ m_EndPort

unsigned short CWNCTConnectionFactory::m_EndPort

Definition at line 400 of file grid_control_thread.cpp.

Referenced by OnFailure().

◆ m_Port

unsigned short& CWNCTConnectionFactory::m_Port

Definition at line 399 of file grid_control_thread.cpp.

Referenced by OnFailure().

◆ m_Server

CWorkerNodeControlServer& CWNCTConnectionFactory::m_Server

Definition at line 398 of file grid_control_thread.cpp.

Referenced by Create().

The documentation for this class was generated from the following file:
Modified on Wed Apr 24 14:18:08 2024 by rev. 669887