From 59d971dc751b0414c5b38c9df4b552e45f5641be Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 4 Aug 2016 09:25:37 -0800 Subject: PLT-2899 adding clustering of app servers (#3682) * PLT-2899 adding clustering of app servers * PLT-2899 base framework * PLT-2899 HA backend * PLT-2899 Fixing config file * PLT-2899 adding config syncing * PLT-2899 set System console to readonly when clustering enabled. * PLT-2899 Fixing publish API * PLT-2899 fixing strings --- webapp/stores/admin_store.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'webapp/stores/admin_store.jsx') diff --git a/webapp/stores/admin_store.jsx b/webapp/stores/admin_store.jsx index b135d9485..3be89c10b 100644 --- a/webapp/stores/admin_store.jsx +++ b/webapp/stores/admin_store.jsx @@ -22,6 +22,7 @@ class AdminStoreClass extends EventEmitter { this.logs = null; this.audits = null; this.config = null; + this.clusterId = null; this.teams = {}; this.complianceReports = null; } @@ -86,6 +87,14 @@ class AdminStoreClass extends EventEmitter { this.removeListener(ALL_TEAMS_EVENT, callback); } + getClusterId() { + return this.clusterId; + } + + saveClusterId(clusterId) { + this.clusterId = clusterId; + } + getLogs() { return this.logs; } @@ -163,6 +172,7 @@ AdminStoreClass.dispatchToken = AppDispatcher.register((payload) => { break; case ActionTypes.RECEIVED_CONFIG: AdminStore.saveConfig(action.config); + AdminStore.saveClusterId(action.clusterId); AdminStore.emitConfigChange(); break; case ActionTypes.RECEIVED_ALL_TEAMS: -- cgit v1.2.3-1-g7c22