All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.6e61897c-113.472622149827c1587209.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/pages/ShowNodePage.jsx"],"names":["NodesStore","StoreProvider","getStore","ClusterOverviewStore","PluginsStore","InputStatesStore","InputTypesStore","ShowNodePage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","mixins","Reflux","connectFilter","state","nodes","this","props","nodeId","clusterOverview","undefined","connect","getInitialState","jvmInformation","plugins","UNSAFE_componentWillMount","Promise","all","jvm","then","setState","list","inputStates","inputIds","Object","keys","filteredInputStates","forEach","inputId","inputObject","push","errors","_isLoading","node","systemOverview","render","title","short_node_id","hostname","is_master","inputDescriptions","withParams"],"mappings":"4GAAA,+KA0BMA,EAAaC,IAAcC,SAAS,SACpCC,EAAuBF,IAAcC,SAAS,mBAC9CE,EAAeH,IAAcC,SAAS,WACtCG,EAAmBJ,IAAcC,SAAS,eAC1CI,EAAkBL,IAAcC,SAAS,cAU/C,IAAMK,EAAeC,IAAiB,CACpCC,YAAa,eAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,YAG3BC,OAAQ,CACNC,IAAOC,cAAcjB,EAAY,QAhBrC,SAAoBkB,GAClB,OAAOA,EAAMC,MAAQD,EAAMC,MAAMC,KAAKC,MAAMV,OAAOW,QAAUJ,EAAMC,SAgBjEH,IAAOC,cAAcd,EAAsB,kBAb/C,SAA+Be,GAC7B,OAAOA,EAAMK,gBAAkBL,EAAMK,gBAAgBH,KAAKC,MAAMV,OAAOW,aAAUE,KAa/ER,IAAOS,QAAQnB,IAGjBoB,gBAboC,WAclC,MAAO,CACLC,oBAAgBH,EAChBI,aAASJ,IAIbK,0BApBoC,WAoBR,WAC1BC,QAAQC,IAAI,CACV5B,EAAqB6B,IAAIZ,KAAKC,MAAMV,OAAOW,QACxCW,MAAK,SAACN,GAAD,OAAoB,EAAKO,SAAS,CAAEP,eAAgBA,OAC5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program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport StoreProvider from 'injection/StoreProvider';\nimport { NodeMaintenanceDropdown, NodeOverview } from 'components/nodes';\nimport { DocumentTitle, PageErrorOverview, PageHeader, Spinner } from 'components/common';\nimport withParams from 'routing/withParams';\n\nconst NodesStore = StoreProvider.getStore('Nodes');\nconst ClusterOverviewStore = StoreProvider.getStore('ClusterOverview');\nconst PluginsStore = StoreProvider.getStore('Plugins');\nconst InputStatesStore = StoreProvider.getStore('InputStates');\nconst InputTypesStore = StoreProvider.getStore('InputTypes');\n\nfunction nodeFilter(state) {\n  return state.nodes ? state.nodes[this.props.params.nodeId] : state.nodes;\n}\n\nfunction clusterOverviewFilter(state) {\n  return state.clusterOverview ? state.clusterOverview[this.props.params.nodeId] : undefined;\n}\n\nconst ShowNodePage = createReactClass({\n  displayName: 'ShowNodePage',\n\n  propTypes: {\n    params: PropTypes.object.isRequired,\n  },\n\n  mixins: [\n    Reflux.connectFilter(NodesStore, 'node', nodeFilter),\n    Reflux.connectFilter(ClusterOverviewStore, 'systemOverview', clusterOverviewFilter),\n    Reflux.connect(InputTypesStore),\n  ],\n\n  getInitialState() {\n    return {\n      jvmInformation: undefined,\n      plugins: undefined,\n    };\n  },\n\n  UNSAFE_componentWillMount() {\n    Promise.all([\n      ClusterOverviewStore.jvm(this.props.params.nodeId)\n        .then((jvmInformation) => this.setState({ jvmInformation: jvmInformation })),\n      PluginsStore.list(this.props.params.nodeId).then((plugins) => this.setState({ plugins: plugins })),\n      InputStatesStore.list().then((inputStates) => {\n        // We only want the input states for the current node\n        const inputIds = Object.keys(inputStates);\n        const filteredInputStates = [];\n\n        inputIds.forEach((inputId) => {\n          const inputObject = inputStates[inputId][this.props.params.nodeId];\n\n          if (inputObject) {\n            filteredInputStates.push(inputObject);\n          }\n        });\n\n        this.setState({ inputStates: filteredInputStates });\n      }),\n    ]).then(() => {}, (errors) => this.setState({ errors: errors }));\n  },\n\n  _isLoading() {\n    return !(this.state.node && this.state.systemOverview);\n  },\n\n  render() {\n    if (this.state.errors) {\n      return ;\n    }\n\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { node } = this.state;\n    const title = Node {node.short_node_id} / {node.hostname};\n\n    return (\n      \n        
\n \n \n This page shows details of a Graylog server node that is active and reachable in your cluster.\n \n \n {node.is_master ? This is the master node. : This is not the master node.}\n \n \n \n \n
\n
\n );\n },\n});\n\nexport default withParams(ShowNodePage);\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy