The maintenance
plugin
The maintenance
plugin is a new plugin available since the 4.2 version of Servoy. It allows you to automatically perform administrative tasks, like:
- Sending notifications to connected clients
- Killing connected clients
- Retriving information about connected clients
- Putting the server into maintenance mode, and bringing it out of maintenance mode
- Creating and deleting tables in databases.
- Adding and removing columns to/from tables in databases.
Function |
getConnectedClients |
---|---|
Description |
Returns an array of IClientInformation elements describing the clients connected to the server. |
Syntax
Parameters
Example |
var clients = plugins.maintenance.getConnectedClients(); application.output("There are " + clients.length + " connected clients."); for (var i = 0; i < clients.length; i++) application.output("Client has clientId '" + clients[i].getClientId() + "' and has connected from host '" + clients[i].getHostAddress() + "'."); |
Overview
Content Tools
Activity