CommandServiceManager -1.00
Phoenix engine interface
CommandExecutor Class Reference

#import <CommandExecutor.h>

Public Member Functions

(void) - start
(void) - executeNewRequest:
(void) - executeResumeRequest:
(void) - cancelRunningRequest:

Static Public Member Functions

(CommandExecutor *) + sharedManager
(CommandExecutor *) + sharedManagerWithCSM:withSSM:

Properties

Requestrequest
ASIHTTPRequest * httpRequest
CommandServiceManagerCSM
SessionManagerSSM
BOOL isIdle
BOOL isThreadCreated
BOOL stopFlag

Detailed Description

Class that spawn a new thread fetch request from priority queue in CommandServiceManager then execute request


Member Function Documentation

- (void) cancelRunningRequest: (uint32_t)  CSID

Cancel running request by set flag to stop the request

Note:
It can not cancel if the payload is building or http request is sending, it will cancel before or after some operation.
- (void) executeNewRequest: (NewRequest *)  newRequest

Will be called by onThread method to execute new request

Parameters:
newRequest
- (void) executeResumeRequest: (ResumeRequest *)  resumeRequest

Will be called by onThread method to execute resume request

+ (CommandExecutor *) sharedManager

Get singleton CommandExecutor object

Returns:
shared CommandExecutor instance
Warning:
don't use this, it does not set CommandServiceManager and SessionManager shared instances use sharedManagerWithCSM:withSSM instead
+ (CommandExecutor *) sharedManagerWithCSM: (CommandServiceManager *)  csm
withSSM: (SessionManager *)  ssm 

Get singleton CommandServiceManager object then set payload path and database path at that time

Parameters:
csmshared command service manager
ssmshared sesssion manager
Returns:
shared CommandExecutor instance that have CommandServiceManager and SessionManager setted
- (void) start

Start executing


The documentation for this class was generated from the following files:
 All Data Structures Functions Properties