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

web-interface.assets.1255d548-1258.b179013e1fffe51a01dd.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"1255d548-1258.b179013e1fffe51a01dd.js","mappings":"uSA+DA,QAtCuB,IAAM,CAC3B,KAAM,CAAE,OAAAA,CAAO,KAAI,aAAU,EACvB,CAAE,MAAAC,CAAM,KAAI,KAAS,GAAU,EAC/B,CAACC,EAAYC,CAAa,KAAI,YAAS,EACvCC,EAAOH,GAAA,YAAAA,EAAQD,CAAM,EAQ3B,SANA,aAAU,IAAM,CACVA,GACF,IAAqB,WAAWA,CAAM,EAAE,KAAMK,GAAWF,EAAcE,CAAM,CAAC,CAElF,EAAG,CAACL,CAAM,CAAC,EAENI,EAKH,gBAAC,KAAa,CAAC,MAAO,uBAAuBA,EAAK,aAAa,MAAMA,EAAK,QAAQ,IAChF,gBAAC,WACC,gBAAC,KAAU,CAAC,MACV,gBAAC,YAAK,uBACiBA,EAAK,cAAc,MAAIA,EAAK,SAAS,OAE1D,gBAAC,aAAM,YAAS,gBAAC,KAAS,CAAC,SAAU,IAAI,IAAK,CAAG,CAAE,CACrD,EACC,EACH,gBAAC,MAAG,CAAC,UAAU,WACb,gBAAC,MAAG,CAAC,GAAI,IACNF,EACG,gBAAC,OAAI,UAAU,cAAcA,CAAW,EACxC,gBAAC,KAAO,IAAC,CACf,CACF,CACF,CACF,EArBO,gBAAC,KAAO,IAAC,CAuBpB,C,mLClCO,MAAMI,KAAuB,MAClC,uBACA,IAAM,gBAAmB,CACvB,UAAW,WACX,gBAAiB,OAEjB,MAAO,CACL,KAAK,QAAQ,EACb,KAAK,SAAS,IAAuB,KAAK,OAAO,EACjD,KAAK,SAAS,IAAyB,KAAK,OAAO,EACnD,KAAK,SAAS,IAAY,KAAK,OAAO,CACxC,EAEA,iBAAkB,CAChB,MAAO,CAAE,gBAAiB,KAAK,eAAgB,CACjD,EAEA,SAAU,CACR,MAAMC,KAA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O,KAAoB,GAAG,KAAK,UAAUZ,CAAM,CAAC,aAAaY,CAAM,EAAE,CAAC,EACpF,KACC,IAAM,CACJ,KAAK,QAAQ,CAAC,CAAC,EACf,IAAiB,QAAQ,iDAAiDA,CAAM,cAAcZ,CAAM,GAAG,CACzG,EACCS,GAAU,CACT,IAAiB,MAAM,qCAAqCT,CAAM,aAAaS,CAAK,GAClF,6CAA6CG,CAAM,cAAcZ,CAAM,GAAG,CAC9E,CACF,CACJ,CACF,CAAC,CACH,C,mIClBO,MAAMa,KAAwB,MACnC,wBACA,IAAM,gBAAmB,CACvB,UAAYb,GAAW,YAAYA,CAAM,cAEzC,MAAMA,EAAQ,CACZ,SAAO,MAAM,OAAQ,KAAoB,GAAG,KAAK,UAAUA,CAAM,CAAC,QAAQ,CAAC,EACxE,KACC,IAAM,CACJ,KAAK,QAAQ,CAAC,CAAC,EACf,IAAiB,QAAQ,8CAA8CA,CAAM,GAAG,CAClF,EACCS,GAAU,CACT,IAAiB,MAAM,kCAAkCT,CAAM,aAAaS,CAAK,GAC/E,+CAA+CT,CAAM,GAAG,CAC5D,CACF,CACJ,EAEA,OAAOA,EAAQ,CACb,SAAO,MAAM,OAAQ,KAAoB,GAAG,KAAK,UAAUA,CAAM,CAAC,SAAS,CAAC,EACzE,KACC,IAAM,CACJ,KAAK,QAAQ,CAAC,CAAC,EACf,IAAiB,QAAQ,+CAA+CA,CAAM,GAAG,CACnF,EACCS,GAAU,CACT,IAAiB,MAAM,mCAAmCT,CAAM,aAAaS,CAAK,GAChF,gDAAgDT,CAAM,GAAG,CAC7D,CACF,CACJ,CACF,CAAC,CACH,C","sources":["webpack://graylog-web-interface/./src/pages/ThreadDumpPage.tsx","webpack://graylog-web-interface/./src/stores/cluster/ClusterOverviewStore.js","webpack://graylog-web-interface/./src/stores/load-balancer/SystemLoadBalancerStore.js","webpack://graylog-web-interface/./src/stores/system-processing/SystemProcessingStore.js"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This 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 React, { useEffect, useState } from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport { Row, Col } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner, Timestamp } from 'components/common';\nimport { ClusterOverviewStore } from 'stores/cluster/ClusterOverviewStore';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport { useStore } from 'stores/connect';\n\nconst ThreadDumpPage = () => {\n  const { nodeId } = useParams();\n  const { nodes } = useStore(NodesStore);\n  const [threadDump, setThreadDump] = useState();\n  const node = nodes?.[nodeId];\n\n  useEffect(() => {\n    if (nodeId) {\n      ClusterOverviewStore.threadDump(nodeId).then((result) => setThreadDump(result));\n    }\n  }, [nodeId]);\n\n  if (!node) {\n    return ;\n  }\n\n  return (\n    \n      
\n \n Thread dump of node {node.short_node_id} / {node.hostname}\n  \n Taken at \n \n )} />\n \n \n {threadDump\n ?
{threadDump}
\n : }\n \n
\n
\n
\n );\n};\n\nexport default ThreadDumpPage;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This 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 Reflux from 'reflux';\n\nimport * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch, { fetchPeriodically, fetchStreamingPlainText } from 'logic/rest/FetchProvider';\nimport { singletonStore } from 'logic/singleton';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport { SystemLoadBalancerStore } from 'stores/load-balancer/SystemLoadBalancerStore';\nimport { SystemProcessingStore } from 'stores/system-processing/SystemProcessingStore';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const ClusterOverviewStore = singletonStore(\n 'core.ClusterOverview',\n () => Reflux.createStore({\n sourceUrl: '/cluster',\n clusterOverview: undefined,\n\n init() {\n this.cluster();\n this.listenTo(SystemProcessingStore, this.cluster);\n this.listenTo(SystemLoadBalancerStore, this.cluster);\n this.listenTo(NodesStore, this.cluster);\n },\n\n getInitialState() {\n return { clusterOverview: this.clusterOverview };\n },\n\n cluster() {\n const promise = fetchPeriodically('GET', URLUtils.qualifyUrl(this.sourceUrl));\n\n promise.then(\n (response) => {\n this.clusterOverview = response;\n this.trigger({ clusterOverview: this.clusterOverview });\n },\n (error) => UserNotification.error(`Getting cluster overview failed: ${error}`, 'Could not get cluster overview'),\n );\n\n return promise;\n },\n\n threadDump(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/threaddump`))\n .then(\n (response) => response.threaddump,\n (error) => UserNotification.error(`Getting thread dump for node '${nodeId}' failed: ${error}`, 'Could not get thread dump'),\n );\n\n return promise;\n },\n\n processbufferDump(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/processbufferdump`))\n .then(\n (response) => response.processbuffer_dump,\n (error) => UserNotification.error(`Getting process buffer dump for node '${nodeId}' failed: ${error}`, 'Could not get process buffer dump'),\n );\n\n return promise;\n },\n\n systemLogs(nodeId, limit) {\n const promise = fetchStreamingPlainText('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/system/loggers/messages/recent/${nodeId}?limit=${limit}`))\n .then(\n (response) => response,\n (error) => UserNotification.error(`Getting system log messages for node '${nodeId}' failed: ${error}`, 'Could not get system log messages'),\n );\n\n return promise;\n },\n\n jvm(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/jvm`));\n\n promise.catch((error) => UserNotification.error(`Getting JVM information for node '${nodeId}' failed: ${error}`, 'Could not get JVM information'));\n\n return promise;\n },\n }),\n);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This 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 Reflux from 'reflux';\n\nimport * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore } from 'logic/singleton';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const SystemLoadBalancerStore = singletonStore(\n 'core.SystemLoadBalancer',\n () => Reflux.createStore({\n sourceUrl: (nodeId) => `/cluster/${nodeId}/lbstatus`,\n\n override(nodeId, status) {\n return fetch('PUT', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/override/${status}`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Load balancer status successfully changed do '${status}' in node '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Changing load balancer status in '${nodeId}' failed: ${error}`,\n `Could not change load balancer status to '${status}' in node '${nodeId}'`);\n },\n );\n },\n }),\n);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This 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 Reflux from 'reflux';\n\nimport * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch from 'logic/rest/FetchProvider';\n\nimport { singletonStore } from '../../logic/singleton';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const SystemProcessingStore = singletonStore(\n 'core.SystemProcessing',\n () => Reflux.createStore({\n sourceUrl: (nodeId) => `/cluster/${nodeId}/processing`,\n\n pause(nodeId) {\n return fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/pause`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Message processing paused successfully in '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Pausing message processing in '${nodeId}' failed: ${error}`,\n `Could not pause message processing in node '${nodeId}'`);\n },\n );\n },\n\n resume(nodeId) {\n return fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/resume`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Message processing resumed successfully in '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Resuming message processing in '${nodeId}' failed: ${error}`,\n `Could not resume message processing in node '${nodeId}'`);\n },\n );\n },\n }),\n);\n"],"names":["nodeId","nodes","threadDump","setThreadDump","node","result","ClusterOverviewStore","promise","response","error","limit","SystemLoadBalancerStore","status","SystemProcessingStore"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy