-
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
34 changed files
with
750 additions
and
330 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
24 changes: 17 additions & 7 deletions
24
src/main/java/uk/gov/justice/artemis/manager/connector/ArtemisConnector.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 |
---|---|---|
@@ -1,22 +1,32 @@ | ||
package uk.gov.justice.artemis.manager.connector; | ||
|
||
import java.net.MalformedURLException; | ||
import java.util.Collection; | ||
import java.util.Iterator; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public interface ArtemisConnector { | ||
|
||
List<MessageData> messagesOf(final String host, final String port, final String brokerName, final String destinationName) throws Exception; | ||
List<MessageData> messagesOf(final String destinationName); | ||
|
||
long remove(final String host, final String port, final String brokerName, final String destinationName, final Iterator<String> msgIds) throws Exception; | ||
long remove(final String destinationName, final Iterator<String> msgIds); | ||
|
||
long reprocess(final String host, final String port, final String brokerName, final String destinationName, final Iterator<String> msgIds) throws Exception; | ||
long reprocess(final String destinationName, final Iterator<String> msgIds); | ||
|
||
String[] queueNames(final String host, final String port, final String brokerName) throws Exception; | ||
List<String> queueNames(); | ||
|
||
String[] topicNames(final String host, final String port, final String brokerName) throws Exception; | ||
List<String> topicNames(); | ||
|
||
Map<String, Long> queueMessageCount(final String host, final String port, final String brokerName, final String[] queueNames) throws Exception; | ||
Map<String, Long> queueMessageCount(final Collection<String> queueNames); | ||
|
||
Map<String, Long> topicMessageCount(final String host, final String port, final String brokerName, final String[] topicNames) throws Exception; | ||
Map<String, Long> topicMessageCount(final Collection<String> queueNames); | ||
|
||
void setParameters(final List<String> jmxUrls, | ||
final String brokerName, | ||
final String jmxUsername, | ||
final String jmxPassword, | ||
final String jmsUrl, | ||
final String jmsUsername, | ||
final String jmsPassword) throws MalformedURLException; | ||
} |
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.