View Javadoc

1   package org.archive.hcc.util;
2   
3   import java.net.InetSocketAddress;
4   
5   import javax.management.ObjectName;
6   
7   public class JmxUtils {
8       public static InetSocketAddress extractRemoteAddress(final ObjectName name) {
9           return new InetSocketAddress(name.getKeyProperty("remoteHost"),
10              Integer.parseInt(name.getKeyProperty("remoteJmxPort")));
11      }
12      
13  }