#import <CommandServiceManager.h>
Detailed Description
CommandServiceManager is a singleton using as Phoenix interface
Member Function Documentation
- (void) cancelRequest: |
|
(uint32_t) |
CSID |
|
Cancel a request by client session id
- Parameters:
-
CSID | the client session id wanted to cancel |
- (void) deleteSession: |
|
(uint32_t) |
CSID |
|
Delete a session from database by client session id
- Parameters:
-
CSID | the client session id wanted to delete |
Pop request from queue
- Returns:
- the highest priorty request in queue
Execute a request, will put in to queue and start executor if it's idle
- Parameters:
-
CSID | the client session id wanted to delete |
- Returns:
- Client session id of the request
- (NSArray *) getAllOrphanedSession |
|
|
|
Get all client session ids that payload is not finished yet
- Returns:
- array of client session id that payload_ready_flag=0
- (NSArray *) getAllPendingSession |
|
|
|
Get all client session ids that payload is finished
- Returns:
- array of client session id that payload_ready_flag=1
- (void) resume: |
|
(uint32_t) |
CSID |
withDelegate: |
|
(id<CommandDelegate>) |
delegate |
|
|
| |
Resume a request that have this client session id and set callback object
- Parameters:
-
CSID | client session id that wanted to resume |
delegate | callback object |
Get singleton CommandServiceManager object
- Returns:
- shared CommandServiceManager instance
- Warning:
- don't use this, it does not set db path for session manager. Use sharedManagerWithPayloadPath:withDBPath: instead
+ (CommandServiceManager *) sharedManagerWithPayloadPath: |
|
(NSString *) |
PLPath |
withDBPath: |
|
(NSString *) |
DBPath |
|
|
| |
Get singleton CommandServiceManager object then set payload path and database path at that time
- Returns:
- shared CommandServiceManager instance that have payload path and database path
- Parameters:
-
PLPath | writable path to save payload file |
DBPath | writable path to crate/read/update database file |
- (void) testCancelRequest |
|
|
|
For test cancel flow it will cancel the first request in the queue
Property Documentation
The documentation for this class was generated from the following files: