This class contains public mirroring methods which are accessable from any namespace. More...
Static Public Member Functions | |
_.Library.List | GetMemberStatus (_.Library.String MirrorName) |
This class contains public mirroring methods which are accessable from any namespace. More... | |
_.Library.String | GetMemberType () |
GetMemberType() returns the mirror member type of this instance. More... | |
_.Library.String | GetMirrorNames () |
_.Library.String | GetStatus (_.Library.String MirrorName) |
_.Library.Boolean | IsAsyncMember () |
_.Library.Boolean | IsBackup () |
_.Library.Integer | IsMember () |
_.Library.Boolean | IsPrimary () |
_.Library.String | MirrorName () |
![]() | |
_.Library.String | Help (_.Library.String method) |
This is a helper class that is used by the various SYSTEM classes to provide a Help method. More... | |
This class contains public mirroring methods which are accessable from any namespace.
These methods can be invoked either via ##class(SYSTEM.Mirror).(< methodname >) or via $SYSTEM.Mirror.(< methodname >). Most of the public API for mirroring is in the <class>SYS.Mirror</class> class however that class is only accessable to programs running in SYS.
|
static |
This class contains public mirroring methods which are accessable from any namespace.
These methods can be invoked either via ##class(SYSTEM.Mirror).(< methodname >) or via $SYSTEM.Mirror.(< methodname >). Most of the public API for mirroring is in the <class>SYS.Mirror</class> class however that class is only accessable to programs running in SYS.
GetMemberStatus(MirrorName) returns the current status of this mirror member based
on the result from <method>GetStatus</method>. The values returned here are more suitable for displaying to a user.
On failover members, and non-failover members which track only a single mirror, the MirrorName is optional. On instances which track more than one mirror, omitting the MirrorName (or passing "") returns summary information regarding the connection status (eg. m/n connected). Specifying the MirrorName returns the detailed information below regarding that mirror.
Return values are in $LIST format. The 1st item in the list is the current status of the member. In the future some status values may have additional pieces which carry more information.
The values for $LG(status,1) are:
|
static |
GetMemberType() returns the mirror member type of this instance.
The values returned are:
|
static |
Returns the names of the mirrors the instance is a member of in $LIST format, or NULL if the instance is not a mirror member.
|
static |
GetStatus([MirrorName]) returns the current status of this mirror member.
On failover members, and non-failover members which track only a single mirror, the MirrorName is optional. On instances which track more than one mirror, omitting the MirrorName (or passing "") returns summary information regarding the connection status. Specifying the MirrorName returns the detailed information below regarding that mirror. <method>GetMemberStatus</method> returns the same information in a for more suitable for displaying to a user. The form returned here may be more suitiable for testing against in a program.
Return Value:
|
static |
Test whether this system is connected to a primary as an async mirror member.
This reports true when this node has a data channel established to a primary mirror member as an async member. The node can be configured as an async member but this will report false if it does not have any data channels established at the time.
Return Value:
      TRUE = node is currently connected to a mirror as an async member
      FALSE = node is not currently connected to a mirror as an async member
|
static |
Test whether this system is a backup mirror member.
A failover mirror member might report false for both IsPrimary and IsBackup if it is in the process of connecting or has failed to connect for some reason. IsBackup() is only true while the mirror data channel exists.
Return Value:
      TRUE = node is currently connected to a mirror as a backup
      FALSE = node is not currently connected to a mirror as a backup
|
static |
Test whether this system is configured to join a mirror.
This method is useful when a site has code that should only be run on the Primary node when the node is a mirror member. This could be used in ^ZSTART or ^ZSTU to skip this code during startup when the node is a mirror member (startup code for mirrors should go in NotifyBecomePrimary^ZMIRROR).
This is also useful in conjunction with <method>$SYSTEM.Mirror.IsPrimary</method> in other code, such as code that is run periodically via the TaskManager, to skip running the code on non-primary mirror members as in
      quit:($SYSTEM.Mirror.IsMember() & '$SYSTEM.Mirror.IsPrimary())
Return Value:
      0 - Node is not configured to join a mirror
      1 - Node is configured as a failover mirror member
      2 - Node is configured as an async mirror member
|
static |
Test whether this system is the primary mirror member.
Return Value:
      1 = node is the primary
      0 = node is not the primary
|
static |
Returns the name of the mirror if the instance is configured as a failover mirror member or NULL if it is not.