-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added `--redis-cluster-nodes` flag - Display cluster information in redis info page
- Loading branch information
Showing
6 changed files
with
337 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from "react"; | ||
import { makeStyles } from "@material-ui/core/styles"; | ||
import Table from "@material-ui/core/Table"; | ||
import TableBody from "@material-ui/core/TableBody"; | ||
import TableCell from "@material-ui/core/TableCell"; | ||
import TableContainer from "@material-ui/core/TableContainer"; | ||
import TableHead from "@material-ui/core/TableHead"; | ||
import TableRow from "@material-ui/core/TableRow"; | ||
import { QueueLocation } from "../api"; | ||
|
||
const useStyles = makeStyles((theme) => ({ | ||
table: { | ||
minWidth: 650, | ||
}, | ||
})); | ||
|
||
interface Props { | ||
queueLocations: QueueLocation[]; | ||
} | ||
|
||
export default function QueueLocationTable(props: Props) { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<TableContainer> | ||
<Table className={classes.table} aria-label="queue location table"> | ||
<TableHead> | ||
<TableRow> | ||
<TableCell>Queue</TableCell> | ||
<TableCell>KeySlot</TableCell> | ||
<TableCell>Node Addresses</TableCell> | ||
</TableRow> | ||
</TableHead> | ||
<TableBody> | ||
{props.queueLocations.map((loc) => ( | ||
<TableRow key={loc.queue}> | ||
<TableCell component="th" scope="row"> | ||
{loc.queue} | ||
</TableCell> | ||
<TableCell>{loc.keyslot}</TableCell> | ||
<TableCell>{loc.nodes.join(", ")}</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</TableContainer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.