Contains information about a cluster resource.
#include <ncssdk.h> typedef struct NCS_RESOURCE { UINT8 name[ MAX_RDN_CHARS+1]; UINT32 loadWait; UINT32 unloadWait; UINT32 failOver; UINT32 failBack; UINT32 ignore_quorum; UINT32 revision; UINT8 fail_order[MAX_NODES]; UINT8 *loadScript; UINT8 *unloadScript; UINT8 uniObjName[MAX_DN_CHARS * 2 + 4]; UINT32 incarnation; NCS_STATE state; NCS_ALERT alert; UINT32 location; UINT32 fromTo; UINT32 res_fail_cnt; BYTE dateAndTime[ 24]; }NCS_RESOURCE;
Contains the resource name filled by NCS_ListResources or NCS_FindResource.
Contains the load wait time. Filled by NCS_ReadResource.
Contains the unload wait time. Filled by the NCS_ReadResource.
Contains the failover policy. Filled by the NCS_ReadResource.
Contains the failback policy. Filled by the NCS_ReadResource.
Contains the value that constitutes a quorum. Filled by the NCS_ReadResource. If true, the cluster resources will ignore quorum; if false, quorum not ignored. (For more information, see Cluster Container and Configuration Settings in the Novell Cluster Services product documentation.)
Contains the revision. Filled by the NCS_ReadResource.
Designates the preferred nodes list for this cluster resource. Filled by the NCS_ReadResource.
Contains the load script. Filled by the NCS_ReadResource.
Contains an internal unload script. Filled by the NCS_ReadResource.
Contains the FDN (Unicode).
Contains the resource incarnation number.
Resource state, as described in Section 6.3, NCSSDK Resource States.)
Contains the resource alert, as described in Section 6.4, Cluster Services API Resource Alerts.
Specifies the node number of the node where the resource is currently running.
Contains the node number to migrate to. Used for online or migrate online. –1 here means “go to preferred node.”
Contains the number of times the resource has failed.
Contains the date and time the resource was last brought on line.
NOTE:Internally, this is called upSince.
Dynamic state runtime data from the resource callback or the resource control function include (see the defined field Elements):
incarnation
state
alert
location
fromTo
res_fail_cnt
dateAndTime