#include <CvmBaseTask.h>
Inheritance diagram for cvm::CvmBaseTask< Channel >:
Public Types | |
typedef Channel::Port | Port |
enum | { QUEUE_MAX = 16 * 1024 } |
Public Member Functions | |
CvmBaseTask () | |
TASK_STATE | state (void) |
std::string | my_name (void) |
std::string | chan_name (void) |
Channel * | my_chan (void) |
Port * | my_port (void) |
virtual channel::Status | prepare (void) |
Each app should implement the following 3 methods. | |
virtual channel::Status | cleanup (void) |
virtual int | work (void) |
virtual int | init (int argc, char *argv[]) |
virtual int | fini () |
virtual int | open (void *) |
virtual int | close (u_long) |
virtual int | put (ACE_Message_Block *mb, ACE_Time_Value *t) |
virtual int | info (char **strp, size_t length) const |
virtual int | suspend () |
virtual int | resume () |
virtual int | svc (void) |
Protected Member Functions | |
const ACE_TCHAR * | rtrv_task_name (void) |
Protected Attributes | |
std::string | chan_name_ |
settings configurable from svc.conf file | |
int | num_thr |
Channel * | my_chan_ |
Port * | my_port_ |
std::string | my_name_ |
default settings | |
TASK_STATE | my_state_ |
ACE_Thread_Semaphore | exit_sema_ |
ACE_Thread_Mutex | exit_lock_ |
Definition at line 53 of file CvmBaseTask.h.
|
Definition at line 55 of file CvmBaseTask.h. |
|
Definition at line 72 of file CvmBaseTask.h. |
|
Definition at line 74 of file CvmBaseTask.h. |
|
Definition at line 82 of file CvmBaseTask.h. |
|
Reimplemented in Ctrl_Task, Demo_Task, Ping_Task, Pong_Task, and Pong_Task. Definition at line 92 of file CvmBaseTask.h. |
|
Definition at line 211 of file CvmBaseTask.h. |
|
Reimplemented in Ctrl_Task. Definition at line 151 of file CvmBaseTask.h. |
|
Definition at line 231 of file CvmBaseTask.h. |
|
ACE hooks methods, most of them have default implememtations Definition at line 107 of file CvmBaseTask.h. |
|
Definition at line 83 of file CvmBaseTask.h. |
|
Definition at line 81 of file CvmBaseTask.h. Referenced by cvm::CvmBaseTask< Chan >::work(). |
|
Definition at line 84 of file CvmBaseTask.h. |
|
Definition at line 185 of file CvmBaseTask.h. |
|
Each app should implement the following 3 methods.
Reimplemented in Ctrl_Task, Demo_Task, Ping_Task, Pong_Task, and Pong_Task. Definition at line 87 of file CvmBaseTask.h. |
|
Definition at line 226 of file CvmBaseTask.h. |
|
Definition at line 251 of file CvmBaseTask.h. |
|
Definition at line 271 of file CvmBaseTask.h. |
|
Definition at line 80 of file CvmBaseTask.h. |
|
Definition at line 245 of file CvmBaseTask.h. |
|
Definition at line 259 of file CvmBaseTask.h. |
|
Reimplemented in Ctrl_Task, Demo_Task, Ping_Task, Pong_Task, and Pong_Task. Definition at line 97 of file CvmBaseTask.h. |
|
settings configurable from svc.conf file
Definition at line 59 of file CvmBaseTask.h. Referenced by cvm::CvmBaseTask< Chan >::chan_name(), and cvm::CvmBaseTask< Chan >::init(). |
|
Definition at line 69 of file CvmBaseTask.h. |
|
Definition at line 68 of file CvmBaseTask.h. |
|
Definition at line 62 of file CvmBaseTask.h. Referenced by cvm::CvmBaseTask< Chan >::CvmBaseTask(), and cvm::CvmBaseTask< Chan >::my_chan(). |
|
default settings
Definition at line 66 of file CvmBaseTask.h. Referenced by cvm::CvmBaseTask< Chan >::my_name(). |
|
Definition at line 63 of file CvmBaseTask.h. Referenced by cvm::CvmBaseTask< Chan >::CvmBaseTask(), and cvm::CvmBaseTask< Chan >::my_port(). |
|
Definition at line 67 of file CvmBaseTask.h. Referenced by cvm::CvmBaseTask< Chan >::init(), and cvm::CvmBaseTask< Chan >::state(). |
|
Definition at line 60 of file CvmBaseTask.h. Referenced by cvm::CvmBaseTask< Chan >::CvmBaseTask(), and cvm::CvmBaseTask< Chan >::init(). |