|
Database Signage BRIGADOON-0012
Update Signage in Open Simulator from Database
|
Script to send a Heartbeat signal to the Signage Table. More...
Go to the source code of this file.
Functions | |
| rdProcessFailureMessage (string FailureMessage) | |
| Convert error messages into something that is more readable. | |
| integer | rdGetVersionNumber (string VersionString) |
| Convert Version String into an Integer. | |
| rdSaveNewTeleportNotecard (list teleport_list) | |
| Save the Teleportation Destinations into a Notecard. | |
| rdSendHeartbeatMessage () | |
Variables | |
| string | VERSION_STRING = "0.0.1" |
| float | MINIMUM_HEARTBEAT_PERIOD = 0.1 |
| The fastest allowable heartbeat. | |
| string | CONFIG_NOTECARD_NAME = "brigadoon_signage.config" |
| Script(s) Configuration Notecard. | |
| string | COMMENT_PREAMBLE = "//" |
| Preamble for a comment line in the configuration file. | |
| integer | COMMENT_PREAMBLE_LENGTH = 2 |
| THe number of characters in the comment preamble Menu Item = [17:16] Nothing Found! | |
| string | DATABASE_INTERFACE = "DATABASE_INTERFACE" |
| The Configuration File Identifier for the Database Interface URL. | |
| string | HEARTBEAT_PERIOD = "HEARTBEAT_PERIOD" |
| The Configuration File Identifier for the Heartbeat Period. | |
| float | TIMER_OFF = 0.0 |
| Set the Timer delay to 0.0 which turns off the timer events. | |
| float | MINIMUM_HEARTBEAT_INTERVAL = 600 |
| float | MINIMUM_OFFSET = 0.5 |
| Minimum allowable offset. | |
| key | heartbeat_key |
| The Heatbeat HTTP Requrest Key. | |
| string | database_interface |
| The address of the database interface. | |
| float | heartbeat_period |
| Interval in seconds between Heartbeat messages. | |
| integer | version_number |
| Version number as integer. | |
Script to send a Heartbeat signal to the Signage Table.
Additional Information: https://www.little-sense.au/project_dynamic/BRIGADOON-0012/html/index.html
NOTE: The file extension ".osl" indicates the script uses the Open Simulator Script language (OSSL) and will not function in the Second Life environment. If the script will function using just the Linden Scripting Language (LSL), it will have a a file extension of ".lsl".
Definition in file signage_heartbeat.osl.
| integer rdGetVersionNumber | ( | string | VersionString | ) |
Convert Version String into an Integer.
| Version | String to be converted |
Definition at line 150 of file signage_heartbeat.osl.
| rdProcessFailureMessage | ( | string | FailureMessage | ) |
Convert error messages into something that is more readable.
| The | error message string to be decoded |
This routine takes the abbreviated error message and expands this to an error message that should be more readable by a user not familar with how the program operates.
Definition at line 124 of file signage_heartbeat.osl.
| rdSaveNewTeleportNotecard | ( | list | teleport_list | ) |
Save the Teleportation Destinations into a Notecard.
| telport_list | List of telportation destinations |
This routine will remove the Teleportation Notecard and make a new Notecard.
Definition at line 168 of file signage_heartbeat.osl.
| rdSendHeartbeatMessage | ( | ) |
\break Send a heartbeat to the database via the webserver
This message sends a heartbeat command to the program controlling the database. The message contains the following information:
This message serves two purposes. First, it confirms that the teleporter still exists and is operational. Secondly, it confirms, and updates if necessary, the information about the Teleporter.
This information allows the database program to automatically delete destinations where the teleporter and by inference, the regions has disappeared.
Definition at line 202 of file signage_heartbeat.osl.
References database_interface, and heartbeat_key.
| string COMMENT_PREAMBLE = "//" |
Preamble for a comment line in the configuration file.
The configuration file only allows comments which take up the complete lilne in the file.
Definition at line 44 of file signage_heartbeat.osl.
| integer COMMENT_PREAMBLE_LENGTH = 2 |
THe number of characters in the comment preamble Menu Item = [17:16] Nothing Found!
Definition at line 51 of file signage_heartbeat.osl.
| string CONFIG_NOTECARD_NAME = "brigadoon_signage.config" |
Script(s) Configuration Notecard.
This notecard is used to configure the brigadoon_teleporter.osl and the teleporter_heartbeat.osl scripts.
Definition at line 36 of file signage_heartbeat.osl.
| string DATABASE_INTERFACE = "DATABASE_INTERFACE" |
The Configuration File Identifier for the Database Interface URL.
Definition at line 57 of file signage_heartbeat.osl.
| string database_interface |
The address of the database interface.
Definition at line 96 of file signage_heartbeat.osl.
Referenced by rdSendHeartbeatMessage().
| key heartbeat_key |
The Heatbeat HTTP Requrest Key.
Definition at line 90 of file signage_heartbeat.osl.
Referenced by rdSendHeartbeatMessage().
| string HEARTBEAT_PERIOD = "HEARTBEAT_PERIOD" |
The Configuration File Identifier for the Heartbeat Period.
Definition at line 63 of file signage_heartbeat.osl.
| float heartbeat_period |
Interval in seconds between Heartbeat messages.
Definition at line 103 of file signage_heartbeat.osl.
| float MINIMUM_HEARTBEAT_INTERVAL = 600 |
Definition at line 78 of file signage_heartbeat.osl.
| float MINIMUM_HEARTBEAT_PERIOD = 0.1 |
The fastest allowable heartbeat.
This is the minimum interval allowed between heartbeats. This is set to prevent the script from flooding the databse webserver with heartbeat messages, in what would essentially be a denial of service attack.
Definition at line 27 of file signage_heartbeat.osl.
| float MINIMUM_OFFSET = 0.5 |
Minimum allowable offset.
Definition at line 84 of file signage_heartbeat.osl.
| float TIMER_OFF = 0.0 |
Set the Timer delay to 0.0 which turns off the timer events.
Definition at line 70 of file signage_heartbeat.osl.
| integer version_number |
Version number as integer.
This integer takes the version string like "1.2.3" into a single integer. The integer is calculated using:
(1 * 10000) + (2 * 100) + 3 => 10023
Definition at line 114 of file signage_heartbeat.osl.
| string VERSION_STRING = "0.0.1" |
Definition at line 17 of file signage_heartbeat.osl.