* @return A model controller client
* @throws UnknownHostException if the host cannot be found
*/
public static ModelControllerClient create(final String hostName, final int port, final CallbackHandler handler) throws UnknownHostException {
//return new ModelControllerClient(hostName, port, handler);
return new AbstractModelControllerClient() {
@Override
protected ManagementClientChannelStrategy getClientChannelStrategy() throws URISyntaxException, IOException {
return ManagementClientChannelStrategy.create(hostName, port, executor, this, handler);
}
};