server-state-button Add-on | Vaadin

A button containing graphical information about CPU and RAM usage aswell as logged in users

This is a button containing some graphical information about the CPU load and RAM usage aswell as the logged in users. The constructor takes a boolean which distinguishes between horizontal and vertical layout.

The methos setServerName takes a string parameter which identifies the server by a name in case multiple buttons are used.

The method setMaxRam takes an int Parameter which defines the max ram the server can use

The method The method updateServerInfo takes 3 parameters: #1(String) the ammount of logged in users #2(double) value < 1 which inidcates the CPU usage #3(int) the amount of RAM which is used. This value should be from the same unit as the value which is set using the method setMaxRam. The unit is not displayed.

Following Styles can be adjusted:

The button itself: server-state-button The name: server-state-server-name The caption of the bars and the users: server-state-caption The label of the logged in users: server-state-users The borders of the bars: bar-border


Link to this version
ExperimentalReleased 08 August 2016Apache License 2.0
Framework Support
Vaadin 7.6+
Install with
Release notes - Version 1.0

Initial Release