|
|
XGResource |
| Inherits from: | |
| Declared In: |
This is the base class of all objects that represent a (remote) grid resource. You never deal with instances of XGResource, only subclasses. The XGResource interface exposes the concept of "updating" whereby the local (proxy) object updates it's internal state to match the remote resource the object represents.
Returns the XGActionMonitor instances currently monitoring an action for the receiver.
Returns the connection associated with the receiver's controller.
Returns the XGController instance responsible for the resource represented by the receiver.
Returns the unique identifier of the receiver's resource.
Returns YES if the receiver has successfully updated at least once since the connection opened.
Returns YES if the receiver is in the process of updating.
Causes the receiver to attempt to perform the action.
Returns the state of the receiver.
actionMonitors |
Returns the XGActionMonitor instances currently monitoring an action for the receiver.
- (NSArray *)actionMonitors;
The array of XGActionMonitor instances.
connection |
Returns the connection associated with the receiver's controller.
- (XGConnection *)connection;
The receiver's connection.
controller |
Returns the XGController instance responsible for the resource represented by the receiver.
- (XGController *)controller;
The responsible XGController instance.
identifier |
Returns the unique identifier of the receiver's resource.
- (NSString *)identifier;
The unique identifier of the receiver's resource.
The identifier is a unique string assigned to the resouce by the Xgrid controller. All resources managed by a particular Xgrid controller are guaranteed to have a unique identifier, but no guarantee of uniqueness is made between multiple Xgrid controllers.
isUpdated |
Returns YES if the receiver has successfully updated at least once since the connection opened.
- (BOOL)isUpdated;
Whether or not the receiver is updated.
isUpdating |
Returns YES if the receiver is in the process of updating.
- (BOOL)isUpdating;
Whether or not the receiver is updating.
performAction:withParameters: |
Causes the receiver to attempt to perform the action.
- (XGActionMonitor *)performAction:(XGResourceAction)action withParameters:(NSDictionary *)parameters;
actionThe action to perform.
parametersThe parameters to include with the action request.
An XGActionMonitor instance initialized to monitor the action.
The returned XGActionMonitor object may be used to monitor the progress, success, or failure of the action. The parameters are specific to the action being taken, and may be nil.
state |
Returns the state of the receiver.
- (XGResourceState)state;
The state of the receiver.
Last Updated: 2009-08-12