v1.0
Revision History | ||
---|---|---|
Revision 1.0 | 6 September 2008 | dn |
split from qore docs |
Note that the code in this module is not available with the PO_NO_NETWORK
parse option.
To use this module, include the following line in the qore program to load the module:
%requires tibrv
The tibrv module provides direct TIBCO Rendezvous functionality, including support for reliable and certified messaging, secure daemon support, fault tolerant group membership and monitoring, and distributed queues. For ActiveEnterprise functionality, see the tibae
module. All classes and constants provided by this module can be found in the Tibrv
namespace.
Qore data sent on the Rendezvous bus is automatically serialized to TIBCO Rendezvous formats based on information in the following table. Because Rendezvous supports many more data types than Qore has basic types, serializion can be overridden by using the functions in tibrv functions. For example:
$msg = ( "field" : tibrv_xml($xmlstr) );
The preceding example will override the default serialization to TIBRVMSG_STRING and send the XML string data (assuming the variable $xmlstr contains an xml string) as TIBRVMSG_XML data.
Table 1. Default Serialization of Qore Data -> TIBCO Rendezvous Format
Qore Type | Rendezvous Type | Notes |
---|---|---|
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| When compiled with Qore 0.8.0+, date/time values are serialized as UTC in a manner consistent with ActiveEnterprise adapters |
Received Rendezvous data is automatically deserialized to Qore data structures based on information in the following table.
Because Qore integers are 64-bit signed numbers, conversions from the TIBRVMSG_U64 type can mean a loss of precision if the high-bit is set in the number. In this case the qore number will erroneously appear to be negative.
Table 2. Default Serialization of TIBCO Rendezvous -> Qore Data Structures
Rendezvous Type | Qore Type | Notes |
---|---|---|
|
| direct conversion |
|
| loss of precision possible as qore only supports signed 64-bit integer values |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| When compiled with Qore 0.8.0+, date/time values are assumed to be in UTC in a manner consistent with ActiveEnterprise adapters usage of this data type |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion |
|
| direct conversion to an integer value |
|
| direct conversion to a string |
Table 3. Classes provided by the tibrv module
Class | Description |
---|---|
For sending messages using Rendezvous' reliable protocol. | |
For receiving messages using Rendezvous' reliable protocol. | |
For sending messages using Rendezvous' certified messaging protocol. | |
For receiving messages using Rendezvous' certified messaging protocol. | |
Used to join a Rendezvous fault-tolerant group. | |
Used to monitor a Rendezvous fault-tolerant group. | |
Used to participate in a Rendezvous distributed queue. |
Table 4. Constants provided by the tibrv module
Name | Type | Description |
---|---|---|
|
| Fault tolerant action code indicating that an activation message could be pending. |
|
| Fault toleration action code indicating that the fault tolerant member should activate immedatitely. |
|
| Fault tolerant action code indicating that the fault tolerant member should deactivate immedaitely. |
|
| Qore extension to the fault tolerant action codes meaning that the fault tolerant event loop should terminate immediately. |
Table 5. Functions provided by the tibrv module
Function Name |
Ret Type |
Exception |
Brief Description |
---|---|---|---|
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I8 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U8 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I16 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U16 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I32 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U32 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I64 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U64 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_F32 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_F64 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_IPPORT16 data. | |
|
N |
Creates a hash structure to ensure that a qore string (ex. "192.168.1.1") is serialized as Rendezvous TIBRV_IPADDR32 data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_XML data. | |
|
N |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_BOOL data. |
The TibrvSender object is used to send messages using the TIBCO Rendezvous reliable messaging protocol. Each TibrvSender object is set with a string encoding value, which is by default set to the default encoding for qore. Any strings received by this object will be assumed to be in this encoding and any strings sent will be convert to this encoding if necessary. To set or check the encoding for TibrvSender objects, see the TibrvSender::setStringEncoding() and TibrvSender::getStringEncoding() methods.
Table 6. TibrvSender Class Method Overview
Method |
Except? |
Description |
---|---|---|
Y |
Creates the TibrvSender object based on the parameters passed. | |
N |
Destroys the TibrvSender object. | |
Y |
Copying object of this class is not supported, an exception will be thrown. | |
Y |
Sends a message using the reliable protocol to the given subject. | |
Y |
Sends a message using the reliable protocol to the given subject and returns the reply. | |
Y |
Sets the string encoding for the object; any strings serialized with this object will be converted to this character encoding if necessary. | |
N |
Returns the encoding used for the object |
Creates the TibrvSender object based on the parameters passed.
new TibrvSender([desc], [service], [network], [daemon]
)
Table 7. Arguments for TibrvSender::constructor()
Argument |
Type |
Description |
---|---|---|
|
|
The description for this transport object. |
|
|
The service port number as a string |
|
|
The network value |
|
|
The remote rvd daemon's IP address |
Table 8. Return Values for TibrvSender::constructor()
Return Type |
Description |
---|---|
Object |
The TibrvSender object is returned |
Table 9. Exceptions thrown by TibrvSender::constructor()
err |
desc |
---|---|
|
there was an error creating the transport object |
Destroys the TibrvSender object.
delete lvalue
Table 10. Arguments for TibrvSender::destructor()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 11. Return Values for TibrvSender::destructor()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Copying objects of this class is not supported, an exception will be thrown.
Table 12. Exceptions thrown by TibrvSender::copy()
err |
desc |
---|---|
|
objects of this class may not be copied |
Sends a message using the reliable protocol to the given subject.
TibrvSender::sendSubject(subject, message, [reply_subject]
)
Table 13. Arguments for TibrvSender::sendSubject()
Argument |
Type |
Description |
---|---|---|
|
|
The subject name for the message. |
|
|
The message to send as a hash |
|
|
An optional subject to be used for the reply. |
Table 14. Return Values for TibrvSender::sendSubject()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 15. Exceptions thrown by TibrvSender::sendSubject()
err |
desc |
---|---|
|
missing subject or message parameter |
|
There was an error serializing the qore data to Tibco Rendezvous format |
|
There was an error sending the message |
Sends a message using the reliable protocol to the given subject and returns the reply. A timeout value in milliseconds can be optionally included as the third parameter to the method. If no reply is received within the timeout period, NOTHING is returned. If a reply is received, the reply is convert to a qore data structure and returned in the form of a hash with the following keys: 'msg' containing the reply data, 'subject' giving the subject of the reply message, and optionally 'replySubject' giving a subject name for a subsequent reply.
TibrvSender::sendSubjectWithSyncReply(subject, message, [timeout]
)
Table 16. Arguments for TibrvSender::sendSubjectWithSyncReply()
Argument |
Type |
Description |
---|---|---|
|
|
The subject name for the message. |
|
|
The message to send as a hash |
|
|
The timeout value in milliseconds. Can also be a relative time (i.e. |
Table 17. Return Values for TibrvSender::sendSubjectWithSyncReply()
Return Type |
Description |
---|---|
|
The return hash will have the following keys: 'msg' containing the return message data, 'subject' giving the subject of the reply message, and optionally 'replySubject' giving a subject name for a subsequent reply message |
|
In the case of a timeout, |
Table 18. Exceptions thrown by TibrvSender::sendSubjectWithSyncReply()
err |
desc |
---|---|
|
missing subject or message parameter |
|
There was an error serializing the qore data to Tibco Rendezvous format |
|
There was an error deserializing the Tibco Rendezvous data to qore data structures |
|
There was an error sending the message |
Sets the string encoding for the object; any strings serialized with this object will be converted to this character encoding if necessary.
TibrvSender::setStringEncoding(encoding
)
Table 19. Arguments for TibrvSender::setStringEncoding()
Argument |
Type |
Description |
---|---|---|
|
|
The string encoding to use for this object. |
Table 20. Return Values for TibrvSender::setStringEncoding()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 21. Exceptions thrown by TibrvSender::setStringEncoding()
err |
desc |
---|---|
|
missing encoding parameter from method call |
Returns the encoding used for the object
TibrvSender::getStringEncoding()
Table 22. Arguments for TibrvSender::getStringEncoding()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 23. Return Values for TibrvSender::getStringEncoding()
Return Type |
Description |
---|---|
|
The encoding used for the object. |
The TibrvListener object is used to receive messages using the TIBCO Rendezvous reliable messaging protocol. To send messages, use the TibrvSender Class. Each TibrvListener object is set with a string encoding value, which is by default set to the default encoding for qore. Any strings received by this object will be assumed to be in this encoding. To set or check the encoding for TibrvListener objects, see the TibrvListener::setStringEncoding() and TibrvListener::getStringEncoding() methods.
Table 24. TibrvListener Class Method Overview
Method |
Except? |
Description |
---|---|---|
Y |
Creates the TibrvListener object based on the parameters passed. | |
N |
Destroys the TibrvListener object. | |
Y |
Copying objects of this class is not supported, an exception will be thrown. | |
Y | Waits for a message event matching the subject string for this object. | |
Y | Returns the number of messages in the queue. | |
Y |
Creates a subject name that will be delivered by a point-to-point message directly to this listener object when used as a replySubject in an outgoing message. | |
Y |
Sets the string encoding for the object; any strings deserialized with this object will be tagged with this character encoding. | |
N |
Returns the character encoding used for the object |
Creates the TibrvListener object based on the parameters passed.
new TibrvListener(subject, [desc], [service], [network], [daemon]
)
Table 25. Arguments for TibrvListener::constructor()
Argument |
Type |
Description |
---|---|---|
|
|
The subject to listen for (may contain wildcards, i.e. 'TEST.ADAPTER.>') |
|
|
The description for this transport object. |
|
|
The service port number as a string |
|
|
The network value |
|
|
The remote rvd daemon's IP address |
Table 26. Return Values for TibrvListener::constructor()
Return Type |
Description |
---|---|
Object |
The TibrvListener object is returned |
Table 27. Exceptions thrown by TibrvListener::constructor()
err |
desc |
---|---|
|
there was an error creating the transport object |
|
there was an error creating the listener object (ex: invalid subject, etc) |
Destroys the TibrvListener object.
delete lvalue
Table 28. Arguments for TibrvListener::destructor()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 29. Return Values for TibrvListener::destructor()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Copying objects of this class is not supported, an exception will be thrown.
Table 30. Exceptions thrown by TibrvListener::copy()
err |
desc |
---|---|
|
objects of this class may not be copied |
Waits for a message event matching the subject string passed. If a timeout value is passed, then if no suitable event is received within the timeout period, NOTHING is returned. Note that this method may return before the timeout period has expired in case that an event is posted to the queue that does not contain message data. In this case the method returns as with a normal timeout.
TibrvListener::getMessage([timeout]
)
Table 31. Arguments for TibrvListener::getMessage()
Argument |
Type |
Description |
---|---|---|
|
|
The timeout value in milliseconds. Can also be a relative time (i.e. |
Table 32. Return Values for TibrvListener::getMessage()
Return Type |
Description |
---|---|
|
The return hash will have the following keys: 'msg' containing the return message data, 'subject' giving the subject of the reply message, and optionally 'replySubject' giving a subject name for a subsequent reply message |
|
In the case of a timeout, |
Table 33. Exceptions thrown by TibrvListener::getMessage()
err |
desc |
---|---|
|
There was an error dispatching the event on the internal queue |
|
There was an error deserializing the Tibco Rendezvous data to a qore data structore |
Returns the number of messages in the queue.
TibrvListener::getQueueSize()
Table 34. Arguments for TibrvListener::getQueueSize()
Argument |
Type |
Description |
---|---|---|
n/a | n/a | This method takes no arguments. |
Table 35. Return Values for TibrvListener::getQueueSize()
Return Type |
Description |
---|---|
|
The number of messages in the queue. |
Table 36. Exceptions thrown by TibrvListener::getQueueSize()
err |
desc |
---|---|
|
An internal error occurred. |
Creates a subject name that will be delivered by a point-to-point message directly to this listener object when used as a replySubject in an outgoing message.
TibrvListener::createInboxName()
Table 37. Arguments for TibrvListener::createInboxName()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 38. Return Values for TibrvListener::createInboxName()
Return Type |
Description |
---|---|
|
The string to use as a replySubject in an outgoing message to ensure that any reply will be a point-to-point reply directly to this listener object |
Table 39. Exceptions thrown by TibrvListener::createInboxName()
err |
desc |
---|---|
|
An error occurred creating the inbox name |
Sets the string encoding for the object; any strings deserialized with this object will be tagged with this character encoding.
TibrvListener::setStringEncoding()
Table 40. Arguments for TibrvListener::setStringEncoding()
Argument |
Type |
Description |
---|---|---|
|
|
The string encoding to use for this object. |
Table 41. Return Values for TibrvListener::setStringEncoding()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 42. Exceptions thrown by TibrvListener::setStringEncoding()
err |
desc |
---|---|
|
missing encoding parameter from method call |
Returns the character encoding used for the object
TibrvListener::getStringEncoding()
Table 43. Arguments for TibrvListener::getStringEncoding()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 44. Return Values for TibrvListener::getStringEncoding()
Return Type |
Description |
---|---|
|
The character encoding used for the object. |
The TibrvCmSender object is used to send certified messages using the TIBCO Rendezvous certified messaging protocol. Each TibrvCmSender object is set with a string encoding value, which is by default set to the default encoding for qore. Any strings received by this object will be assumed to be in this encoding and any strings sent will be convert to this encoding if necessary. To set or check the encoding for TibrvSender objects, see the TibrvSender::setStringEncoding() and TibrvSender::getStringEncoding() methods.
Table 45. TibrvCmSender Class Method Overview
Method |
Except? |
Description |
---|---|---|
Y |
Creates the TibrvCmSender object based on the parameters passed. | |
N |
Destroys the TibrvCmSender object. | |
Y |
Copying objects of this class is not supported, an exception will be thrown. | |
Y |
Sends a certified message to the given subject. | |
Y |
Sends a certified message to the given subject and returns the reply. | |
Y |
Sets the string encoding for the object; any strings serialized with this object will be converted to this character encoding if necessary. | |
N |
Returns the encoding used for the object | |
Y |
Explicitly and asynchronously connect to the relay agent. | |
Y |
Explicitly and asynchronously disconnect from the relay agent. | |
Y |
Marks certified messages in the ledger as expired | |
Y |
Returns the correspondent name of the object. | |
Y |
Returns the time limit in milliseconds for outbound certified messages. | |
Y |
Sets the time limit in milliseconds for outbound certified messages; use zero for no time limit. | |
Y |
Query the ledger for items matching a subject name. | |
Y |
Remove sequence accounting for obsolete subjects | |
Y |
Flushes the ledger to its storage medium (only useful for file-based ledgers) |
Creates the TibrvCmSender object based on the parameters passed.
new TibrvCmSender([cmName], [requestOld], [ledgerName], [syncLedger], [relayAgent], [desc], [service], [network], [daemon]
)
Table 46. Arguments for TibrvCmSender::constructor()
Argument |
Type |
Description |
---|---|---|
|
|
The name for the persistent correspondent for this object. The name must conform to Rendezvous subject naming conventions. If this argument is not passed, then a unique, non-reusable name will be generated for the duration of this object. |
|
|
If True, then this object will require certified messages delivered to a previous instance with the same correspondent name without a confirmed delivery to be redelivered. |
|
|
If this argument is passed then the object will use a file-based ledger; if this argument is omitted the object will use a process-based ledger. |
|
|
If True no buffering will be made on changes to the ledger. |
|
|
If this argument is present, it must be a reusable name for the relay agent for this Rendezvous transport |
|
|
The description for this transport object. |
|
|
The service port number as a string |
|
|
The network value |
|
|
The remote rvd daemon's IP address |
Table 47. Return Values for TibrvCmSender::constructor()
Return Type |
Description |
---|---|
Object |
The TibrvCmSender object is returned |
Table 48. Exceptions thrown by TibrvCmSender::constructor()
err |
desc |
---|---|
|
there was an error creating the transport object |
|
there was an error creating the certified transport object |
Destroys the TibrvCmSender object.
delete lvalue
Table 49. Arguments for TibrvCmSender::destructor()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 50. Return Values for TibrvCmSender::destructor()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Copying objects of this class is not supported, an exception will be thrown.
Table 51. Exceptions thrown by TibrvCmSender::copy()
err |
desc |
---|---|
|
objects of this class may not be copied |
Sends a certified message to the given subject.
TibrvCmSender::sendSubject(subject, message
)
Table 52. Arguments for TibrvCmSender::sendSubject()
Argument |
Type |
Description |
---|---|---|
|
|
The subject name for the message. |
|
|
The message to send as a hash |
Table 53. Return Values for TibrvCmSender::sendSubject()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 54. Exceptions thrown by TibrvCmSender::sendSubject()
err |
desc |
---|---|
|
missing subject or message parameter |
|
There was an error serializing the qore data to Tibco Rendezvous format |
|
There was an error sending the message |
Sends a certified message to the given subject and returns the reply. A timeout value in milliseconds can be optionally included as the third parameter to the method. If no reply is received within the timeout period, NOTHING is returned. If a reply is received, the reply is convert to a qore data structure and returned in the form of a hash with the following keys: 'msg' containing the reply data, 'subject' giving the subject of the reply message, and optionally 'replySubject' giving a subject name for a subsequent reply.
TibrvCmSender::sendSubjectWithSyncReply(subject, message, [timeout]
)
Table 55. Arguments for TibrvCmSender::sendSubjectWithSyncReply()
Argument |
Type |
Description |
---|---|---|
|
|
The subject name for the message. |
|
|
The message to send as a hash |
|
|
The timeout value in milliseconds. Can also be a relative time (i.e. |
Table 56. Return Values for TibrvCmSender::sendSubjectWithSyncReply()
Return Type |
Description |
---|---|
|
The return hash will have the following keys: 'msg' containing the return message data, 'subject' giving the subject of the reply message, and optionally 'replySubject' giving a subject name for a subsequent reply message |
Table 57. Exceptions thrown by TibrvCmSender::sendSubjectWithSyncReply()
err |
desc |
---|---|
|
missing subject or message parameter |
|
There was an error serializing the qore data to Tibco Rendezvous format |
|
There was an error deserializing the Tibco Rendezvous data to qore data structures |
|
There was an error sending the message |
Sets the string encoding for the object; any strings serialized with this object will be converted to this character encoding if necessary.
TibrvCmSender::setStringEncoding(encoding
)
Table 58. Arguments for TibrvCmSender::setStringEncoding()
Argument |
Type |
Description |
---|---|---|
|
|
The string encoding to use for this object. |
Table 59. Return Values for TibrvCmSender::setStringEncoding()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 60. Exceptions thrown by TibrvCmSender::setStringEncoding()
err |
desc |
---|---|
|
missing encoding parameter from method call |
Returns the encoding used for the object
TibrvCmSender::getStringEncoding()
Table 61. Arguments for TibrvCmSender::getStringEncoding()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 62. Return Values for TibrvCmSender::getStringEncoding()
Return Type |
Description |
---|---|
|
The encoding used for the object. |
If a relay agent was specified in the object's constructor, this method will asynchronously connect to the relay agent.
TibrvCmSender::connectToRelayAgent()
Table 63. Arguments for TibrvCmSender::connectToRelayAgent()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 64. Return Values for TibrvCmSender::connectToRelayAgent()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 65. Exceptions thrown by TibrvCmSender::connectToRelayAgent()
err |
desc |
---|---|
|
An error occurred making this call (ex: no relay agent was specified in the constructor) |
If the transport is connected to the relay agent, this method will asynchronously disconnect from the relay agent.
TibrvCmSender::disconnectFromRelayAgent()
Table 66. Arguments for TibrvCmSender::disconnectFromRelayAgent()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 67. Return Values for TibrvCmSender::disconnectFromRelayAgent()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 68. Exceptions thrown by TibrvCmSender::disconnectFromRelayAgent()
err |
desc |
---|---|
|
An error occurred making this call (ex: not connected to the relay agent) |
Immediately marks certified messages matching both the subject name and the sequence number as expired
TibrvCmSender::expireMssages(subject, seq_no
)
Table 69. Arguments for TibrvCmSender::expireMssages()
Argument |
Type |
Description |
---|---|---|
|
|
The subject name (can contain wildcards) for messages to expire from the ledger. |
|
|
All messages less than or equal to this value (and matching the subject name) will be deleted. |
Table 70. Return Values for TibrvCmSender::expireMssages()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 71. Exceptions thrown by TibrvCmSender::expireMssages()
err |
desc |
---|---|
|
missing subject name parameter |
|
an error occured expiring messages |
Returns the correspondent name of the object.
TibrvCmSender::getName()
Table 72. Arguments for TibrvCmSender::getName()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 73. Return Values for TibrvCmSender::getName()
Return Type |
Description |
---|---|
|
The correspondent name of the object |
Table 74. Exceptions thrown by TibrvCmSender::getName()
err |
desc |
---|---|
|
An internal error occurred. |
Returns the time limit in milliseconds for outbound certified messages. Zero means no time limit is in effect.
TibrvCmSender::getDefaultTimeLimit()
Table 75. Arguments for TibrvCmSender::getDefaultTimeLimit()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 76. Return Values for TibrvCmSender::getDefaultTimeLimit()
Return Type |
Description |
---|---|
|
The correspondent name of the object |
Table 77. Exceptions thrown by TibrvCmSender::getDefaultTimeLimit()
err |
desc |
---|---|
|
An internal error occurred. |
Sets the time limit in milliseconds for outbound certified messages; use zero for no time limit.
TibrvCmSender::setDefaultTimeLimit(time_limit
)
Table 78. Arguments for TibrvCmSender::setDefaultTimeLimit()
Argument |
Type |
Description |
---|---|---|
|
|
time limit in milliseconds for outbound certified delivery; zero means no time limit. |
Table 79. Return Values for TibrvCmSender::setDefaultTimeLimit()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 80. Exceptions thrown by TibrvCmSender::setDefaultTimeLimit()
err |
desc |
---|---|
|
An internal error occurred. |
Query the ledger for items matching a subject name.
TibrvCmSender::reviewLedger(subject
)
Table 81. Arguments for TibrvCmSender::reviewLedger()
Argument |
Type |
Description |
---|---|---|
|
|
Subject name (wildcards accepted) for ledger review. |
Table 82. Return Values for TibrvCmSender::reviewLedger()
Return Type |
Description |
---|---|
|
The list of matching messages in the ledger. |
Table 83. Exceptions thrown by TibrvCmSender::reviewLedger()
err |
desc |
---|---|
|
missing subject parameter |
|
An internal error occurred. |
Remove sequence accounting for obsolete subjects
TibrvCmSender::removeSendState(subject
)
Table 84. Arguments for TibrvCmSender::removeSendState()
Argument |
Type |
Description |
---|---|---|
|
|
Subject name (wildcards accepted) for subject names to reset. |
Table 85. Return Values for TibrvCmSender::removeSendState()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 86. Exceptions thrown by TibrvCmSender::removeSendState()
err |
desc |
---|---|
|
An internal error occurred. |
Flushes the ledger to its storage medium (only useful for file-based ledgers)
TibrvCmSender::syncLedger()
Table 87. Arguments for TibrvCmSender::syncLedger()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 88. Return Values for TibrvCmSender::syncLedger()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 89. Exceptions thrown by TibrvCmSender::syncLedger()
err |
desc |
---|---|
|
An internal error occurred. |
The TibrvCmListener object is used to receive certified messages. To send certified messages, use the TibrvCmSender Class. Each TibrvCmListener object is set with a string encoding value, which is by default set to the default encoding for qore. Any strings received by this object will be assumed to be in this encoding. To set or check the encoding for TibrvCmListener objects, see the TibrvCmListener::setStringEncoding() and TibrvCmListener::getStringEncoding() methods.
Table 90. TibrvCmListener Class Method Overview
Method |
Except? |
Description |
---|---|---|
Y |
Creates the TibrvCmListener object based on the parameters passed. | |
N |
Destroys the TibrvCmListener object. | |
Y |
Copying objects of this class is not supported, an exception will be thrown. | |
Y |
Waits for a message event matching the subject string for this object. | |
Y |
Returns the number of messages in the queue. | |
Y |
Creates a subject name that will be delivered by a point-to-point message directly to this listener object when used as a replySubject in an outgoing message. | |
Y |
Sets the string encoding for the object; any strings deserialized with this object will be tagged with this character encoding. | |
N |
Returns the character encoding used for the object | |
Y |
Returns the correspondent name of the object. | |
Y |
Flushes the ledger to its storage medium (only useful for file-based ledgers) |
Creates the TibrvCmListener object based on the parameters passed.
new TibrvCmListener(subject, [cmName], [requestOld], [ledgerName], [syncLedger], [relayAgent], [desc], [service], [network], [daemon]
)
Table 91. Arguments for TibrvCmListener::constructor()
Argument |
Type |
Description |
---|---|---|
|
|
The subject to listen for (may contain wildcards, i.e. 'TEST.ADAPTER.>') |
|
|
The name for the persistent correspondent for this object. The name must conform to Rendezvous subject naming conventions. If this argument is not passed, then a unique, non-reusable name will be generated for the duration of this object. |
|
|
If True, then this object will require certified messages delivered to a previous instance with the same corres pondent name without a confirmed delivery to be redelivered. |
|
|
If this argument is passed then the object will use a file-based ledger; if this argument is omitted the object will use a process-based ledger. |
|
|
If True no buffering will be made on changes to the ledger. |
|
|
If this argument is present, it must be a reusable name for the relay agent for this Rendezvous transport |
|
|
The description for this transport object. |
|
|
The service port number as a string |
|
|
The network value |
|
|
The remote rvd daemon's IP address |
Table 92. Return Values for TibrvCmListener::constructor()
Return Type |
Description |
---|---|
Object |
The TibrvCmListener object is returned |
Table 93. Exceptions thrown by TibrvCmListener::constructor()
err |
desc |
---|---|
|
there was an error creating the transport object |
|
there was an error creating the certified listener object (ex: invalid subject, etc) |
Destroys the TibrvCmListener object.
delete lvalue
Table 94. Arguments for TibrvCmListener::destructor()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 95. Return Values for TibrvCmListener::destructor()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Copying objects of this class is not supported, an exception will be thrown.
Table 96. Exceptions thrown by TibrvCmListener::copy()
err |
desc |
---|---|
|
objects of this class may not be copied |
Waits for a message event matching the subject string passed. If a timeout value is passed, then if no suitable event is received within the timeout period, NOTHING is returned. Note that this method may return before the timeout period has expired in case that an event is posted to the queue that does not contain message data. In this case the method returns as with a normal timeout.
TibrvCmListener::getMessage([timeout]
)
Table 97. Arguments for TibrvCmListener::getMessage()
Argument |
Type |
Description |
---|---|---|
|
|
The timeout value in milliseconds. Can also be a relative time (i.e. |
Table 98. Return Values for TibrvCmListener::getMessage()
Return Type |
Description |
---|---|
|
The return hash will have the following keys: 'msg' containing the return message data, 'subject' giving the subject of the reply message, optionally 'replySubject' giving a subject name for a subsequent reply message, 'cmSender' giving the name of the certified sender, and 'cmSequence' giving the integer sequence number for this certified message. |
Table 99. Exceptions thrown by TibrvCmListener::getMessage()
err |
desc |
---|---|
|
There was an error dispatching the event on the internal queue |
|
There was an error deserializing the Tibco Rendezvous data to a qore data structore |
Returns the number of messages in the queue.
TibrvCmListener::getQueueSize()
Table 100. Arguments for TibrvCmListener::getQueueSize()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 101. Return Values for TibrvCmListener::getQueueSize()
Return Type |
Description |
---|---|
|
The number of messages in the queue. |
Table 102. Exceptions thrown by TibrvCmListener::getQueueSize()
err |
desc |
---|---|
|
An internal error occurred. |
Creates a subject name that will be delivered by a point-to-point message directly to this listener object when used as a replySubject in an outgoing message.
TibrvCmListener::createInboxName()
Table 103. Arguments for TibrvCmListener::createInboxName()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 104. Return Values for TibrvCmListener::createInboxName()
Return Type |
Description |
---|---|
|
The string to use as a replySubject in an outgoing message to ensure that any reply will be a point-to-point reply directly to this listener object |
Table 105. Exceptions thrown by TibrvCmListener::createInboxName()
err |
desc |
---|---|
|
An error occurred creating the inbox name |
Sets the string encoding for the object; any strings deserialized with this object will be tagged with this character encoding.
TibrvCmListener::setStringEncoding(encoding
)
Table 106. Arguments for TibrvCmListener::setStringEncoding()
Argument |
Type |
Description |
---|---|---|
|
|
The string encoding to use for this object. |
Table 107. Return Values for TibrvCmListener::setStringEncoding()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 108. Exceptions thrown by TibrvCmListener::setStringEncoding()
err |
desc |
---|---|
|
missing encoding parameter from method call |
Returns the character encoding used for the object
TibrvCmListener::getStringEncoding()
Table 109. Arguments for TibrvCmListener::getStringEncoding()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 110. Return Values for TibrvCmListener::getStringEncoding()
Return Type |
Description |
---|---|
|
The character encoding used for the object. |
Returns the correspondent name of the object.
TibrvCmListener::getName()
Table 111. Arguments for TibrvCmListener::getName()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 112. Return Values for TibrvCmListener::getName()
Return Type |
Description |
---|---|
|
The correspondent name of the object |
Table 113. Exceptions thrown by TibrvCmListener::getName()
err |
desc |
---|---|
|
An internal error occurred. |
Flushes the ledger to its storage medium (only useful for file-based ledgers)
TibrvCmListener::syncLedger()
Table 114. Arguments for TibrvCmListener::syncLedger()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 115. Return Values for TibrvCmListener::syncLedger()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 116. Exceptions thrown by TibrvCmListener::syncLedger()
err |
desc |
---|---|
|
An internal error occurred. |
The TibrvFtMember object is required to function as member of a Rendezvous fault tolerant group. To monitor a fault-tolerant group from outside the group, use the TibrvFtMonitor Class.
Table 117. TibrvFtMember Class Method Overview
Method |
Except? |
Description |
---|---|---|
Y |
Creates the TibrvFtMember object based on the parameters passed. | |
N |
Stops and destroys the TibrvFtMember object. | |
Y |
Copying objects of this class is not supported, an exception will be thrown. | |
Y |
Waits for a fault-tolerant event and returns a hash representing the event if possible. | |
N |
Returns the name of the fault tolerant group. | |
Y |
Sets the member weight. Weight values must be between 1 and 65535; members with higher weight numbers take precedence over members with lower weight numbers. | |
N |
Signals fault-tolerant event processing to stop. |
Creates the TibrvFtMember object based on the parameters passed.
new TibrvFtMember(group_name, weight, activeGoal, heartbeatInterval, preparationInterval, activationInterval, [desc], [service], [network], [daemon]
)
Table 118. Arguments for TibrvFtMember::constructor()
Argument |
Type |
Description |
---|---|---|
|
|
The fault tolerant group name (must confirm to Rendezvous subject-naming conventions) |
|
|
The relative weight of this member, higher numbers take precendence over lower numbers. Weight must be between 1 and 65535. |
|
|
The number of active members for this group, must be between 1 and 65535. |
|
|
The interval in milliseconds for heartbeat messages for active members. This argument can also be specified with a relative date (for example, in milliseconds) to make the time units clear in the source code. |
|
|
The preparation interval in milliseconds (can also be specified with a relative date). |
|
|
The activation interval in milliseconds (can also be specified with a relative date). |
|
|
The description for this transport object. |
|
|
The service port number as a string |
|
|
The network value |
|
|
The remote rvd daemon's IP address |
Table 119. Return Values for TibrvFtMember::constructor()
Return Type |
Description |
---|---|
Object |
The TibrvFtMember object is returned |
Table 120. Exceptions thrown by TibrvFtMember::constructor()
err |
desc |
---|---|
|
there was an error creating the transport object |
|
parameter error, error creating the ftmember object (ex: invalid name, etc) |
Stops and destroys the TibrvFtMember object.
delete lvalue
Table 121. Arguments for TibrvFtMember::destructor()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 122. Return Values for TibrvFtMember::destructor()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Copying objects of this class is not supported, an exception will be thrown.
Table 123. Exceptions thrown by TibrvFtMember::copy()
err |
desc |
---|---|
|
objects of this class may not be copied |
Waits for a fault-tolerant event. If a timeout value is passed, then if no suitable event is received within the timeout period, NOTHING is returned. Note that this method may return before the timeout period has expired in case that an event is posted to the queue that is not applicable to fault-tolerant membership. In this case the method returns as with a normal timeout.
TibrvFtMember::getEvent([timeout]
)
Table 124. Arguments for TibrvFtMember::getEvent()
Argument |
Type |
Description |
---|---|---|
|
|
The timeout value in milliseconds. Can also be a relative time (i.e. |
Table 125. Return Values for TibrvFtMember::getEvent()
Return Type |
Description |
---|---|
|
The return hash will have the following keys: 'action' giving an action code as defined in the Tibrv Constants table, and 'group', a string giving the name of the fault-tolerant group. |
Table 126. Exceptions thrown by TibrvFtMember::getEvent()
err |
desc |
---|---|
|
There was an error posting the event on the internal queue |
Returns the name of the fault tolerant group.
TibrvFtMember::getGroupName()
Table 127. Arguments for TibrvFtMember::getGroupName()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 128. Return Values for TibrvFtMember::getGroupName()
Return Type |
Description |
---|---|
|
The name of the fault tolerant group. |
Sets the member weight. Weight values must be between 1 and 65535; members with higher weight numbers take precedence over members with lower weight numbers.
TibrvFtMember::setWeight(weight
)
Table 129. Arguments for TibrvFtMember::setWeight()
Argument |
Type |
Description |
---|---|---|
|
|
The weight to use for this member; must be between 1 and 65535. |
Table 130. Return Values for TibrvFtMember::setWeight()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 131. Exceptions thrown by TibrvFtMember::setWeight()
err |
desc |
---|---|
|
invalid weight value |
Signals fault-tolerant event processing to stop by placing the TIBRVFT_QORE_STOP message on the event queue. This message can be used, for example, when the event queue is processed in a dedicated thread; upon receiving this message the event thread should terminate.
TibrvFtMember::stop()
Table 132. Arguments for TibrvFtMember::stop()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 133. Return Values for TibrvFtMember::stop()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
The TibrvFtMonitor object is used to monitor a Rendezvous fault tolerant group. To join a fault-tolerant group, see the TibrvFtMember Class.
Table 134. TibrvFtMonitor Class Method Overview
Method |
Except? |
Description |
---|---|---|
Y |
Creates the TibrvFtMonitor object based on the parameters passed. | |
N |
Stops and destroys the TibrvFtMonitor object. | |
Y |
Copying objects of this class is not supported, an exception will be thrown. | |
Y |
Waits for a fault-tolerant event and returns a hash representing the event if possible. | |
N |
Returns the name of the fault tolerant group. | |
N |
Signals fault-tolerant monitoring event processing to stop. |
Creates the TibrvFtMonitor object based on the parameters passed.
new TibrvFtMonitor(group_name, lostInterval, [desc], [service], [network], [daemon]
)
Table 135. Arguments for TibrvFtMonitor::constructor()
Argument |
Type |
Description |
---|---|---|
|
|
The fault tolerant group name to monitor (must confirm to Rendezvous subject-naming conventions) |
|
|
When the heartbeat signal from a member has been silent for this interval in milliseconds (can also be specified with a relative date), the monitor object considers it lost. This value should be equal to the activation interval for group members. |
|
|
The description for this transport object. |
|
|
The service port number as a string |
|
|
The network value |
|
|
The remote rvd daemon's IP address |
Table 136. Return Values for TibrvFtMonitor::constructor()
Return Type |
Description |
---|---|
Object |
The TibrvFtMonitor object is returned |
Table 137. Exceptions thrown by TibrvFtMonitor::constructor()
err |
desc |
---|---|
|
there was an error creating the transport object |
|
parameter error, error creating the object (ex: invalid name, etc) |
Stops and destroys the TibrvFtMonitor object.
delete lvalue
Table 138. Arguments for TibrvFtMonitor::destructor()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 139. Return Values for TibrvFtMonitor::destructor()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Copying objects of this class is not supported, an exception will be thrown.
TibrvFtMonitor::copy()
Table 140. Arguments for TibrvFtMonitor::copy()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 141. Return Values for TibrvFtMonitor::copy()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 142. Exceptions thrown by TibrvFtMonitor::copy()
err |
desc |
---|---|
|
objects of this class may not be copied |
Waits for a fault-tolerant event. If a timeout value is passed, then if no suitable event is received within the timeout period, NOTHING is returned. Note that this method may return before the timeout period has expired in case that an event is posted to the queue that is not applicable to fault-tolerant membership monitoring. In this case the method returns as with a normal timeout.
TibrvFtMonitor::getEvent([timeout]
)
Table 143. Arguments for TibrvFtMonitor::getEvent()
Argument |
Type |
Description |
---|---|---|
|
|
The timeout value in milliseconds. Can also be a relative time (i.e. |
Table 144. Return Values for TibrvFtMonitor::getEvent()
Return Type |
Description |
---|---|
|
In the case of a normal monitoring message, the return hash will have the following keys: 'numActiveMembers', an integer giving the number of active members in the group, and 'group', a string giving the name of the fault-tolerant group. However in the case that the stop message has been placed on the queue, the hash will have an 'action' member having the value |
Table 145. Exceptions thrown by TibrvFtMonitor::getEvent()
err |
desc |
---|---|
|
There was an error posting the event on the internal queue |
Returns the name of the fault tolerant group.
TibrvFtMonitor::getGroupName()
Table 146. Arguments for TibrvFtMonitor::getGroupName()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 147. Return Values for TibrvFtMonitor::getGroupName()
Return Type |
Description |
---|---|
|
The name of the fault tolerant group. |
Signals fault-tolerant monitoring event processing to stop by placing the TIBRVFT_QORE_STOP message on the event queue. This message can be used, for example, when the event queue is processed in a dedicated thread; upon receiving this message the event thread should terminate.
TibrvFtMonitor::stop()
Table 148. Arguments for TibrvFtMonitor::stop()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 149. Return Values for TibrvFtMonitor::stop()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
The TibrvDistributedQueue object is used to participate in a distributed queue.
Table 150. TibrvDistributedQueue Class Method Overview
Method |
Except? |
Description |
---|---|---|
Y |
Creates the TibrvDistributedQueue object based on the parameters passed. | |
N |
Stops and destroys the TibrvDistributedQueue object. | |
Y |
Copying objects of this class is not supported, an exception will be thrown. | |
Y |
Returns the workerTasks value of this object. | |
Y |
Returns the workerWeight value of this object. | |
Y |
Sets a new workerTasks value for this object. | |
Y |
Sets a new workerWeight value for this object. |
Creates the TibrvDistributedQueue object based on the parameters passed.
new TibrvDistributedQueue(queue_name, [workerWeight], [workerTasks], [schedulerWeight], [schedulerHeartbeat], [schedulerActivation], [desc], [service], [network], [daemon]
)
Table 151. Arguments for TibrvDistributedQueue::constructor()
Argument |
Type |
Description |
---|---|---|
|
|
The distributed queue name (must confirm to Rendezvous subject-naming conventions) |
|
|
Higher worker weights take precendence over lower numbers. When omitted, the value is one. |
|
|
The maximum number of tasks a worker can accept. When omitted, the value is one. |
|
|
The ability of this worker to take on the role of the scheduler. Higher numbers take precedence over lower numbers. Zero means the worker can never be a scheduler. The default value is one. |
|
|
The heartbeat interval in milliseconds (relative date/time values can also be used). All members of the distributed queue must use the same heartbeat value. |
|
|
When the heartbeat value of the scheduler is silent for more than this number of milliseconds, a new scheduler will be assigned. |
|
|
The description for this transport object. |
|
|
The service port number as a string |
|
|
The network value |
|
|
The remote rvd daemon's IP address |
Table 152. Return Values for TibrvDistributedQueue::constructor()
Return Type |
Description |
---|---|
Object |
The TibrvDistributedQueue object is returned |
Table 153. Exceptions thrown by TibrvDistributedQueue::constructor()
err |
desc |
---|---|
|
there was an error creating the transport object |
|
parameter error, error creating the object (ex: invalid name, etc) |
Stops and destroys the TibrvDistributedQueue object.
delete lvalue
Table 154. Arguments for TibrvDistributedQueue::destructor()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 155. Return Values for TibrvDistributedQueue::destructor()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Copying objects of this class is not supported, an exception will be thrown.
Table 156. Exceptions thrown by TibrvDistributedQueue::copy()
err |
desc |
---|---|
|
objects of this class may not be copied |
Returns the workerTasks value of this object.
TibrvDistributedQueue::getWorkerTasks()
Table 157. Arguments for TibrvDistributedQueue::getWorkerTasks()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 158. Return Values for TibrvDistributedQueue::getWorkerTasks()
Return Type |
Description |
---|---|
|
The workerTasks value of this object. |
Table 159. Exceptions thrown by TibrvDistributedQueue::getWorkerTasks()
err |
desc |
---|---|
|
An internal error has occurred. |
Returns the workerWeight value of this object.
TibrvDistributedQueue::getWorkerWeight()
Table 160. Arguments for TibrvDistributedQueue::getWorkerWeight()
Argument |
Type |
Description |
---|---|---|
n/a |
n/a |
This method takes no arguments. |
Table 161. Return Values for TibrvDistributedQueue::getWorkerWeight()
Return Type |
Description |
---|---|
|
The workerWeight value of this object. |
Table 162. Exceptions thrown by TibrvDistributedQueue::getWorkerWeight()
err |
desc |
---|---|
|
An internal error has occurred. |
Sets a new workerTasks value for this object.
TibrvDistributedQueue::setWorkerTasks(workerTasks
)
Table 163. Arguments for TibrvDistributedQueue::setWorkerTasks()
Argument |
Type |
Description |
---|---|---|
|
|
The new workerTasks value of this object. |
Table 164. Return Values for TibrvDistributedQueue::setWorkerTasks()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 165. Exceptions thrown by TibrvDistributedQueue::setWorkerTasks()
err |
desc |
---|---|
|
An error occurred setting the new value. |
Sets a new workerWeight value for this object.
TibrvDistributedQueue::setWorkerWeight(workerWeight
)
Table 166. Arguments for TibrvDistributedQueue::setWorkerWeight()
Argument |
Type |
Description |
---|---|---|
|
|
The new workerWeight value of this object. |
Table 167. Return Values for TibrvDistributedQueue::setWorkerWeight()
Return Type |
Description |
---|---|
n/a |
This method returns no value |
Table 168. Exceptions thrown by TibrvDistributedQueue::setWorkerWeight()
err |
desc |
---|---|
|
An error occurred setting the new value. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I8 data.
tibrv_i8(integer
)
Table 169. Arguments and Return Values for tibrv_i8()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I8 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U8 data.
tibrv_u8(integer
)
Table 170. Arguments and Return Values for tibrv_u8()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U8 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I16 data.
tibrv_i16(integer
)
Table 171. Arguments and Return Values for tibrv_i16()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I16 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U16 data.
tibrv_u16(integer
)
Table 172. Arguments and Return Values for tibrv_u16()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U16 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I32 data.
tibrv_i32(integer
)
Table 173. Arguments and Return Values for tibrv_i32()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I32 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U32 data.
tibrv_u32(integer
)
Table 174. Arguments and Return Values for tibrv_u32()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U32 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I64 data.
tibrv_i64(integer
)
Table 175. Arguments and Return Values for tibrv_i64()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_I64 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U64 data.
tibrv_u64(integer
)
Table 176. Arguments and Return Values for tibrv_u64()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_U64 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_F32 data.
tibrv_f32(float
)
Table 177. Arguments and Return Values for tibrv_f32()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_F32 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_F64 data.
tibrv_f64(float
)
Table 178. Arguments and Return Values for tibrv_f64()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_F64 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_IPPORT16 data.
tibrv_ipport16(integer
)
Table 179. Arguments and Return Values for tibrv_ipport16()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_IPPORT16 data. |
Creates a hash structure to ensure that a qore string (ex. "192.168.1.1") is serialized as Rendezvous TIBRV_IPADDR32 data.
tibrv_ipaddr32(string
)
Table 180. Arguments and Return Values for tibrv_ipaddr32()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that a qore string (ex. "192.168.1.1") is serialized as Rendezvous TIBRV_IPADDR32 data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_XML data.
tibrv_xml(string
)
Table 181. Arguments and Return Values for tibrv_xml()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_XML data. |
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_BOOL data. Note that qore boolean values are automatically serialized as TIBRV_ BOOL values, so boolean() could be called as well with the same effect
tibrv_bool(integer
)
Table 182. Arguments and Return Values for tibrv_bool()
Argument Type |
Return Type |
Description |
---|---|---|
|
|
Creates a hash structure to ensure that qore data is serialized as Rendezvous TIBRV_BOOL data. |