RemoteDomainConnection( final String localHostName, final ModelNode localHostInfo, final ProtocolChannelClient.Configuration configuration, final SecurityRealm realm, final String username, final List<DiscoveryOption> discoveryOptions, final ExecutorService executorService, final ScheduledExecutorService scheduledExecutorService, final HostRegistrationCallback callback) { this.callback = callback; this.localHostName = localHostName; this.localHostInfo = localHostInfo; this.configuration = configuration; this.username = username; this.realm = realm; this.discoveryOptions = discoveryOptions; this.executorService = executorService; this.channelHandler = new ManagementChannelHandler(this, executorService); this.scheduledExecutorService = scheduledExecutorService; this.connectionManager = ProtocolConnectionManager.create(new InitialConnectTask()); }