mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@550450 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d36c0d4de7
commit
5d41efce6a
|
@ -109,7 +109,7 @@ public class ShutdownCommand extends AbstractJmxCommand {
|
|||
GlobalWriter.print("Stopping broker: " + brokerName);
|
||||
|
||||
try {
|
||||
server.invoke(brokerObjName, "terminateJVM", new Object[] {new Integer(0)}, new String[] {"int"});
|
||||
server.invoke(brokerObjName, "terminateJVM", new Object[] {Integer.valueOf(0)}, new String[] {"int"});
|
||||
GlobalWriter.print("Succesfully stopped broker: " + brokerName);
|
||||
} catch (Exception e) {
|
||||
// TODO: Check exceptions throwned
|
||||
|
|
|
@ -39,7 +39,6 @@ public class WildcardToMsgSelectorTransformFilter extends WildcardTransformFilte
|
|||
int pos = key.indexOf("=");
|
||||
if (pos >= 0) {
|
||||
val = key.substring(pos + 1);
|
||||
key = key.substring(0, pos);
|
||||
}
|
||||
|
||||
// If the value contains wildcards and is enclose by '
|
||||
|
|
|
@ -39,7 +39,6 @@ public class WildcardToRegExTransformFilter extends WildcardTransformFilter {
|
|||
int pos = key.indexOf("=");
|
||||
if (pos >= 0) {
|
||||
val = key.substring(pos + 1);
|
||||
key = key.substring(0, pos);
|
||||
}
|
||||
|
||||
// If the value contains wildcards
|
||||
|
|
|
@ -82,13 +82,13 @@ public class JmxMBeansUtil {
|
|||
}
|
||||
|
||||
public static String createQueryString(String query, List params) {
|
||||
|
||||
String output = query;
|
||||
int count = 1;
|
||||
for (Iterator i = params.iterator(); i.hasNext();) {
|
||||
query.replaceAll("%" + count++, i.next().toString());
|
||||
output = output.replaceAll("%" + count++, i.next().toString());
|
||||
}
|
||||
|
||||
return query;
|
||||
return output;
|
||||
}
|
||||
|
||||
public static QueryFilter createMBeansObjectNameQuery(JMXServiceURL jmxUrl) {
|
||||
|
|
Loading…
Reference in New Issue