RedundantAppStatusMsg

Type

SwitchKit API message

Description

The LLC sends SK_RedundantAppStatusMsg to notify members of a Redundant Application Pool (RAP) about any changes to the state of the RAP.

This message is sent when an application first registers for membership and when the status of a member application changes. Status changes include the following:

An application registers for membership

An application sends the SK_ReselectPrimaryApp message

An application deregisters from membership in the RAP

An application changes to primary

Sent by

LLC

Arguments

You can modify the following arguments:

Argument

Description

AppName

AppName is the application name of the requesting application. The name can be obtained by calling sk_getConnectionName().

RedundantAppPoolID

The RedundantAppPoolID is a string that uniquely identifies the class of application wishing to be treated as redundant applications.

Notes: RAP IDs are case sensitive.

RedundancyStatus

Values defined for this argument are:

• SK_RED_STATUS_REMOVED ( 0) - The specified application has been removed from the redundant application.

• SK_RED_STATUS_PRIMARY (1) - The specified application is the primary app for the redundant app group.

• SK_RED_STATUS_SECONDARY (2) - The specified application is a secondary application for the redundant application group.

• SK_RED_STATUS_NO_PRIMARY (3) -There is no primary application for the redundant app group.

• SK_RED_STATUS_MONITOR (4) - The specified application is a monitoring application of the redundant application group.

C Structure

typedef struct {

int AppName;

char RedundantAppPoolID[32];

UBYTE RedundancyStatus;

} SK_RedundantAppStatusMsg;

C++ Class

class SKC_RedundantAppStatusMsg : public SKC_ToolkitInbound {

public:

int getAppName() const;

void setAppName(int x);

const char *getRedundantAppPoolID() const;

void setRedundantAppPoolID(const char *x);

UBYTE getRedundancyStatus() const;

void setRedundancyStatus(UBYTE x);

};