Oracle® Objects for OLE Developer's Guide 11g Release 2 (11.2) for Microsoft Windows Part Number E17727-03 |
|
|
PDF · Mobi · ePub |
Registers the failover notification handler of the application.
OraDatabase.MonitorForFailover FOSink, FOCtx
The arguments for the method are:
Arguments | Description |
---|---|
[in ] FOSink |
An IDispatch interface implementing the OnFailover method which is notified in event of a failover. |
[in ] FOCtx |
Context-specific information that the application wants passed into the OnFailover method in the event of a failover. |
To receive failover notifications, a notification handler must be registered with the MonitorForFailover
method. The notification handler must be an automation object (a class module in Visual Basic) that implements the OnFailover
method.
The syntax of the method is:
Public Function OnFailover(Ctx As Variant, fo_type As Variant,fo_event as Variant, fo_OraDB as Variant)
Variants | Description |
---|---|
[in] Ctx |
Passed into the MonitorForFailover method by the application. Context-sensitive information that the application wants passed in event of a failover. |
[in] fo_type |
Failover type. This is the type of failover that the client has requested. The values are:
|
[in]
|
Failover event. This indicates the state of the failover. It has several possible values:
|
[in] fo_OraDB |
The OraDatabase object of the user session that is being failed over. Valid only when the fo_event variant is OO4O_FO_REAUTH . |
See Example: Failover Notification.
See Also:
"Application Failover Notifications"