TIBCO FTL®
|
Factory for IGroup objects. More...
Public Types | |
enum | GroupMemberEvent { GroupMemberEvent.JOINED = 0, GroupMemberEvent.LEFT, GroupMemberEvent.DISCONNECTED } |
Group member event; enumeration. More... | |
enum | GroupMemberServerConnection { GroupMemberServerConnection.UNAVAILABLE = 0, GroupMemberServerConnection.AVAILABLE } |
Group member connection to group server; enumeration. More... | |
Static Public Member Functions | |
static IGroup | Join (IRealm realm, string groupName, ITibProperties props) |
Join a group, and create a group object. More... | |
Static Public Attributes | |
static readonly string | ADVISORY_FIELD_GROUP = "group" |
Group name (field name). More... | |
static readonly string | ADVISORY_FIELD_ORDINAL = "ordinal" |
Group member ordinal (field name). More... | |
static readonly string | ADVISORY_MODULE_GROUP = "GROUP" |
The advisory message pertains to the group library implementation code (module). More... | |
static readonly string | ADVISORY_NAME_GROUP_STATUS = "GROUP_STATUS" |
The advisory message reports a group status update. More... | |
static readonly string | ADVISORY_NAME_ORDINAL_UPDATE = "ORDINAL_UPDATE" |
The advisory message reports an ordinal update. More... | |
static readonly string | FIELD_GROUP_MEMBER_DESCRIPTOR = "group_member_descriptor" |
Group member descriptor (field name). More... | |
static readonly string | FIELD_GROUP_MEMBER_EVENT = "group_member_event" |
Group member event (field name). More... | |
static readonly string | FIELD_GROUP_MEMBER_STATUS_LIST = "group_member_status_list" |
Group member status list (field name). More... | |
static readonly string | FIELD_GROUP_SERVER_AVAILABLE = "group_server_available" |
Group member connection to group server (field name). More... | |
static readonly string | PROPERTY_BOOLEAN_OBSERVER = "com.tibco.ftl.group.observer" |
Property name to monitor a group as an observer. More... | |
static readonly string | PROPERTY_DOUBLE_ACTIVATION_INTERVAL = "com.tibco.ftl.group.activationinterval" |
Property name for group activation interval; double. More... | |
static readonly string | PROPERTY_MESSAGE_MEMBER_DESCRIPTOR = "com.tibco.ftl.group.memberdescriptor" |
Property name for group member descriptor. More... | |
Properties | |
static String | Version [get] |
Release string identifying the FTL group class library. More... | |
Factory for IGroup objects.
Group member event; enumeration.
The group member event field of a member status submessage can contain a value of this enumerated type.
Group member connection to group server; enumeration.
The group server available field of a group status advisory message can contain a value of this enumerated type.
Enumerator | |
---|---|
UNAVAILABLE |
The application is not connected to the group server. |
AVAILABLE |
The application is connected to the group server. |
|
inlinestatic |
Join a group, and create a group object.
The group object connects to the group server.
In best practice, programs first subscribe to the ORDINAL_UPDATE
advisory, and then join a group.
realm | The call contacts the group server, which operates inside the realm server for this realm object. Furthermore, the group facility raises advisory messages within this realm. |
groupName | The program supplies a string. |
props | Optional; to omit, supply NULL . Properties configure interaction with the group server and with other group members.
Properties configure interaction with the group server. |
|
static |
Group name (field name).
The string value of the group
name field is the name of the group to which the advisory pertains.
|
static |
Group member ordinal (field name).
The positive long value of the ordinal
field represents the new ordinal of the group member.
The value -1 indicates that the group object is disconnected from the group server. The group object automatically attempts to reconnect, and continues until the program explicitly destroys it. Meanwhile, the group server could reassign the member's previous ordinal to another group member.
Zero is a reserved value.
|
static |
The advisory message pertains to the group library implementation code (module).
This string value can appear in the module
field.
|
static |
The advisory message reports a group status update.
This string value can appear in the name
field.
|
static |
The advisory message reports an ordinal update.
This string value can appear in the name
field.
|
static |
Group member descriptor (field name).
This field can can appear in a member status submessage. Its value is a group member descriptor, that is, a message that identifies a group member.
|
static |
Group member event (field name).
This field can appear in a member status submessage. Its value is a GroupMemberEvent, that is, a long value that indicates the group member's current state or recent state change.
|
static |
Group member status list (field name).
This field can appear in group status advisory messages. Its value is an array of member status submessages. Each submessage reports the status of one group member.
|
static |
Group member connection to group server (field name).
This field can appear in a group status message. Its value is a GroupMemberServerConnection, that is, a long value that indicates whether the application process is connected to the group server.
|
static |
Property name to monitor a group as an observer.
To monitor a group as an observer, supply this optional property with value true
to Join.
An observer never receives an ordinal, and does not trigger group member events.
|
static |
Property name for group activation interval; double.
Supply this (optional) property to Join, which derives heartbeat and timeout intervals from this property value (in seconds). When absent, the default value is 5 seconds.
|
static |
Property name for group member descriptor.
To identify a group member to the other members, supply this optional property to Join.
The application programmer determines the content of the descriptor message. In best practice, each group member process supplies a unique descriptor.
|
staticget |
Release string identifying the FTL group class library.
Programs can use this string to output the FTL group version in a start banner or in debug output.