Lines Matching full:this

16       this.server_health = Constants.SERVER_HEALTH.unknown;
17 this.server_state = 'Unreachable';
18 this.LED_state = Constants.LED_STATE_TEXT.off;
19 this.last_updated = new Date();
21 this.loading = false;
22 this.server_unreachable = false;
23 this.showNavigation = false;
24 this.bodyStyle = {};
25 this.path = '';
27 this.hostname = '';
28 this.mac_address = '';
29 this.defaultgateway = '';
31 this.ignoreHttpError = false;
32 this.systemName = '';
34 this.configJson = require('../../../config.json');
36 this.getServerId = function() {
37 return this.host.replace(/^https?\:\/\//ig, '');
40 this.reloadServerId = function() {
41 this.server_id = this.getServerId();
44 this.getHost = function() {
56 this.setHost = function(hostWithPort) {
62 this.host = hostURL;
63 this.reloadServerId();
66 this.getUser = function() {
70 this.host = this.getHost();
71 this.server_id = this.getServerId();
73 this.setNetworkInfo = function(data) {
75 this.hostname = data.hostname;
76 this.defaultgateway = data.defaultgateway;
77 this.mac_address = data.mac_address;
78 this.network_interfaces = formatted.interfaces || [];
81 this.setPowerOnState = function() {
82 this.server_state = Constants.HOST_STATE_TEXT.on;
85 this.setPowerOffState = function() {
86 this.server_state = Constants.HOST_STATE_TEXT.off;
89 this.setErrorState = function() {
90 this.server_state = Constants.HOST_STATE_TEXT.error;
93 this.setUnreachableState = function() {
94 this.server_state = Constants.HOST_STATE_TEXT.unreachable;
97 this.updateServerHealth = function(logs) {
101 this.server_health = Constants.SERVER_HEALTH.good;
104 this.server_health = Constants.SERVER_HEALTH.critical;
107 this.server_health = Constants.SERVER_HEALTH.warning;
112 this.setSystemName = function(sysName) {
113 this.systemName = sysName;