-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
323 additions
and
24 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
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
9 changes: 0 additions & 9 deletions
9
src/main/java/uk/gov/justice/artemis/manager/connector/jmx/JmxServerControlFunction.java
This file was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
src/main/java/uk/gov/justice/framework/tools/command/QueueMessageCounts.java
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,21 @@ | ||
package uk.gov.justice.framework.tools.command; | ||
|
||
import java.util.Map; | ||
|
||
import uk.gov.justice.framework.tools.common.command.ShellCommand; | ||
|
||
public class QueueMessageCounts extends AbstractArtemisCommand implements ShellCommand { | ||
|
||
@Override | ||
public void run(final String[] args) { | ||
|
||
try { | ||
final String[] queues = artemisConnector.queueNames(host, port, brokerName); | ||
final Map<String, Long> counts = artemisConnector.queueMessageCount(host, port, brokerName, queues); | ||
outputPrinter.writeMap(counts, "messageCount"); | ||
} catch (final Exception exception) { | ||
outputPrinter.writeStackTrace(exception); | ||
} | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/uk/gov/justice/framework/tools/command/TopicMessageCounts.java
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,21 @@ | ||
package uk.gov.justice.framework.tools.command; | ||
|
||
import java.util.Map; | ||
|
||
import uk.gov.justice.framework.tools.common.command.ShellCommand; | ||
|
||
public class TopicMessageCounts extends AbstractArtemisCommand implements ShellCommand { | ||
|
||
@Override | ||
public void run(final String[] args) { | ||
|
||
try { | ||
final String[] topics = artemisConnector.topicNames(host, port, brokerName); | ||
final Map<String, Long> counts = artemisConnector.topicMessageCount(host, port, brokerName, topics); | ||
outputPrinter.writeMap(counts, "messageCount"); | ||
} catch (final Exception exception) { | ||
outputPrinter.writeStackTrace(exception); | ||
} | ||
} | ||
|
||
} |
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
Oops, something went wrong.