|
|
XGActionMonitor |
| Inherits from: | |
| Declared In: |
This class allows you to initiate and monitor an action performed on a resource. You normally do not instantiate this class directly, rather you obtain an instance from a performXXXAction method of a resource. Action monitors obtained from a resource have alreadying had the performAction method called upon them. If you create your own action monitors you must call performAction to initiate the action. Once an action monitor's action has either succeeded or failed the outcome of the action monitor changes. Following a change in the outcome the results dictionary contains the result of the action, if any.
Returns the XGResourceAction being monitored.
Returns whether or not the action failed.
Returns whether or not the action succeeded.
Returns an instance initialized with a resource and an action.
Returns an instance initialized with a resource, action, and parameters.
Returns an instance initialized with a resource, action, and parameters.
Returns the NSError from the results dictionary, if any.
Initializes a XGActionMonitor object.
Returns the XGActionMonitorOutcome of the action being monitored.
Returns the parameters of the action being monitored.
Initates the action being monitored.
Returns the XGResource instance the monitored action is being performed on.
Returns the results of the action being monitored.
action |
Returns the XGResourceAction being monitored.
- (XGResourceAction)action;
The XGResourceAction.
actionDidFail |
Returns whether or not the action failed.
- (BOOL)actionDidFail;
The failure of the action.
actionDidSucceed |
Returns whether or not the action succeeded.
- (BOOL)actionDidSucceed;
The success of the action.
actionMonitorWithResource:action: |
Returns an instance initialized with a resource and an action.
+ (id)actionMonitorWithResource:(XGResource *)resource action:(XGResourceAction)action;
actionMonitorWithResource:action: |
Returns an instance initialized with a resource, action, and parameters.
See Also:+ (id)actionMonitorWithResource:(XGResource *)resource action:(XGResourceAction)action parameters:(NSDictionary *)parameters;
actionMonitorWithResource:action:parameters: |
Returns an instance initialized with a resource, action, and parameters.
See Also:+ (id)actionMonitorWithResource:(XGResource *)resource action:(XGResourceAction)action parameters:(NSDictionary *)parameters;
error |
Returns the NSError from the results dictionary, if any.
- (NSError *)error;
The NSError instance.
initWithResource:action:parameters: |
Initializes a XGActionMonitor object.
- (id)initWithResource:(id)resource action:(XGResourceAction)action parameters:(NSDictionary *)parameters;
resourceThe resource upon which the action is to be performed. Must not be nil.
actionThe action to perform on the resource.
parametersThe parameters to perform the action with.
An initialized XGActionMonitor object.
outcome |
Returns the XGActionMonitorOutcome of the action being monitored.
- (XGActionMonitorOutcome)outcome;
The XGActionMonitorOutcome.
parameters |
Returns the parameters of the action being monitored.
- (NSDictionary *)parameters;
The parameters dictionary.
performAction |
Initates the action being monitored.
- (void)performAction;
This method does not need to be called on XGActionMonitor instances that are returned by XGResource performXXXAction methods.
resource |
Returns the XGResource instance the monitored action is being performed on.
- (XGResource *)resource;
The XGResource instance.
results |
Returns the results of the action being monitored.
- (NSDictionary *)results;
The results dictionary.
Last Updated: 2009-08-12