Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
K
key_value-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amir.yosef
key_value-server
Commits
35baeb5b
Commit
35baeb5b
authored
Aug 20, 2024
by
amir.yosef
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update INFO command processing
parent
ed221821
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
InfoCommand.java
src/command/InfoCommand.java
+6
-10
No files found.
src/command/InfoCommand.java
View file @
35baeb5b
package
command
;
import
model.Command
;
import
server.ServerInfo
;
import
util.Response
;
...
...
@@ -23,7 +22,6 @@ public class InfoCommand implements CommandExecutable<byte[]> {
return
Response
.
getResponse
(
"unsupported args"
);
}
String
command
=
args
.
getFirst
();
if
(
command
.
equalsIgnoreCase
(
Command
.
REPLICATION
.
getValue
()))
{
Map
<
String
,
String
>
info
=
configuration
.
getInfo
();
String
response
=
info
.
entrySet
()
.
stream
()
...
...
@@ -31,6 +29,4 @@ public class InfoCommand implements CommandExecutable<byte[]> {
.
collect
(
Collectors
.
joining
());
return
Response
.
getResponse
(
response
);
}
return
null
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment