DefaultMQAdminExt defaultMQAdminExt = new DefaultMQAdminExt();
defaultMQAdminExt.setInstanceName(Long.toString(System.currentTimeMillis()));
try {
if (commandLine.hasOption("i")) {
String ip = commandLine.getOptionValue('i').trim();
defaultMQAdminExt.start();
String project = defaultMQAdminExt.getProjectGroupByIp(ip);
System.out.printf("ip=%s, projectGroup=%s\n", ip, project);
}
else if (commandLine.hasOption("p")) {
String project = commandLine.getOptionValue('p').trim();