Click here for NewsObjects Overview
FaultStrategy Property (Connect Control)
Windows - Visual C++


read/write

Description
The FaultStrategy property returns or sets the fault strategy. 

Syntax
long value = GetFaultStrategy();
void SetFaultStrategy(long value);

The FaultStrategy syntax has these parts: 

Part

Description

value

A Long integer containing the fault strategy.

 

Strategy

Description

1

Disconnect only. User must exit program and restart.

2

First try Restart, then try Transfer, then Disconnect.

3

If FAULT_ADMIN_OPERATION_PRIMARY (i.e. compressing the database), then first try Restart, then try Transfer, then try Disconnect; else first try Transfer, then try Restart, then try Disconnect.

4

First try Transfer, then try Restart, then try Disconnect. Default.

5

Use strategy from chart on page 4-40 of the NSI 3.2 Programmer Guide

Remarks:
For more details about fault options, refer to the News Service Interface Programmer Guide.

See Also: Reconnecting the Application During Failover

Back to: Connect Properties