/** * Create a new connection manager, which will try to connect using the protocol connection configuration. * * @param configuration the connection configuration * @param openHandler the connection open handler * @return the connection manager */ public static ProtocolConnectionManager create(final ProtocolConnectionConfiguration configuration, final ConnectionOpenHandler openHandler) { return create(new EstablishingConnection(configuration, openHandler)); }
Establishing(final String serviceType, final Channel.Receiver receiver, final ProtocolConnectionConfiguration configuration) { this.serviceType = serviceType; this.receiver = receiver; this.channelOptions = configuration.getOptionMap(); this.connectionManager = ProtocolConnectionManager.create(configuration, this); }
/** * Create a new connection manager, which will try to connect using the protocol connection configuration. * * @param configuration the connection configuration * @param openHandler the connection open handler * @param next the next connect connectTask used once disconnected * @return the connection manager */ public static ProtocolConnectionManager create(final ProtocolConnectionConfiguration configuration, final ConnectionOpenHandler openHandler, final ConnectTask next) { return create(new EstablishingConnection(configuration, openHandler, next)); }
/** * Create a new connection manager, which will try to connect using the protocol connection configuration. * * @param configuration the connection configuration * @param openHandler the connection open handler * @return the connection manager */ public static ProtocolConnectionManager create(final ProtocolConnectionConfiguration configuration, final ConnectionOpenHandler openHandler) { return create(new EstablishingConnection(configuration, openHandler)); }
/** * Create a new connection manager, which will try to connect using the protocol connection configuration. * * @param configuration the connection configuration * @param openHandler the connection open handler * @param next the next connect connectTask used once disconnected * @return the connection manager */ public static ProtocolConnectionManager create(final ProtocolConnectionConfiguration configuration, final ConnectionOpenHandler openHandler, final ConnectTask next) { return create(new EstablishingConnection(configuration, openHandler, next)); }
/** * Create a new connection manager, which will try to connect using the protocol connection configuration. * * @param configuration the connection configuration * @param openHandler the connection open handler * @return the connection manager */ public static ProtocolConnectionManager create(final ProtocolConnectionConfiguration configuration, final ConnectionOpenHandler openHandler) { return create(new EstablishingConnection(configuration, openHandler)); }
/** * Create a new connection manager, based on an existing connection. * * @param connection the existing connection * @param openHandler a connection open handler * @return the connected manager */ public static ProtocolConnectionManager create(final Connection connection, final ConnectionOpenHandler openHandler) { return create(new EstablishedConnection(connection, openHandler)); }
/** * Create a new connection manager, based on an existing connection. * * @param connection the existing connection * @param openHandler a connection open handler * @return the connected manager */ public static ProtocolConnectionManager create(final Connection connection, final ConnectionOpenHandler openHandler) { return create(new EstablishedConnection(connection, openHandler)); }
/** * Create a new connection manager, which will try to connect using the protocol connection configuration. * * @param configuration the connection configuration * @param openHandler the connection open handler * @param next the next connect connectTask used once disconnected * @return the connection manager */ public static ProtocolConnectionManager create(final ProtocolConnectionConfiguration configuration, final ConnectionOpenHandler openHandler, final ConnectTask next) { return create(new EstablishingConnection(configuration, openHandler, next)); }
/** * Create a new connection manager, based on an existing connection. * * @param connection the existing connection * @param openHandler a connection open handler * @return the connected manager */ public static ProtocolConnectionManager create(final Connection connection, final ConnectionOpenHandler openHandler) { return create(new EstablishedConnection(connection, openHandler)); }
HostControllerConnection(final String serverProcessName, final String userName, final int initialOperationID, final ProtocolConnectionConfiguration configuration, final ExecutorService executorService) { this.userName = userName; this.serverProcessName = serverProcessName; this.configuration = configuration; this.initialOperationID = initialOperationID; this.channelHandler = new ManagementChannelHandler(this, executorService); this.connectionManager = ProtocolConnectionManager.create(configuration, this, new ReconnectTask()); }
private Establishing(final ProtocolConnectionConfiguration configuration, final Channel.Receiver receiver, final CloseHandler<Channel> closeHandler) { this.receiver = receiver; this.channelOptions = configuration.getOptionMap(); this.connectionManager = ProtocolConnectionManager.create(configuration, this); this.closeHandler = closeHandler; this.timeout = configuration.getConnectionTimeout(); }
HostControllerConnection(final String serverProcessName, final String userName, final int initialOperationID, final ProtocolConnectionConfiguration configuration, final ResponseAttachmentInputStreamSupport responseAttachmentSupport, final ExecutorService executorService) { this.userName = userName; this.serverProcessName = serverProcessName; this.configuration = configuration; this.initialOperationID = initialOperationID; this.executorService = executorService; this.channelHandler = new ManagementChannelHandler(this, executorService); this.connectionManager = ProtocolConnectionManager.create(configuration, this, new ReconnectTask()); this.responseAttachmentSupport = responseAttachmentSupport; }
HostControllerConnection(final String serverProcessName, final String userName, final ProtocolConnectionConfiguration configuration, final ExecutorService executorService) { this.userName = userName; this.serverProcessName = serverProcessName; this.configuration = configuration; this.channelHandler = new ManagementChannelHandler(this, executorService); this.connectionManager = ProtocolConnectionManager.create(configuration, this, new ReconnectTask()); }
private Establishing(final ProtocolConnectionConfiguration configuration, final Channel.Receiver receiver, final CloseHandler<Channel> closeHandler) { this.receiver = receiver; this.channelOptions = configuration.getOptionMap(); this.connectionManager = ProtocolConnectionManager.create(configuration, this); this.closeHandler = closeHandler; this.timeout = configuration.getConnectionTimeout(); }
HostControllerConnection(final String serverProcessName, final String userName, final int initialOperationID, final ProtocolConnectionConfiguration configuration, final ResponseAttachmentInputStreamSupport responseAttachmentSupport, final ExecutorService executorService) { this.userName = userName; this.serverProcessName = serverProcessName; this.configuration = configuration; this.initialOperationID = initialOperationID; this.executorService = executorService; this.channelHandler = new ManagementChannelHandler(this, executorService); this.connectionManager = ProtocolConnectionManager.create(configuration, this, new ReconnectTask()); this.responseAttachmentSupport = responseAttachmentSupport; }
RemoteDomainConnection(final String localHostName, final ModelNode localHostInfo, final ProtocolChannelClient.Configuration configuration, final SecurityRealm realm, final String username, 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.executorService = executorService; this.channelHandler = new ManagementChannelHandler(this, executorService); this.scheduledExecutorService = scheduledExecutorService; this.connectionManager = ProtocolConnectionManager.create(new InitialConnectTask()); }
RemoteDomainConnection(final String localHostName, final ProtocolConnectionConfiguration configuration, final AuthenticationContext authenticationContext, final SecurityRealm realm, final String username, final List<DiscoveryOption> discoveryOptions, final ExecutorService executorService, final ScheduledExecutorService scheduledExecutorService, final HostRegistrationCallback callback, final RunningMode runningMode) { this.callback = callback; this.localHostName = localHostName; this.configuration = configuration; this.authenticationContext = authenticationContext; this.username = username; this.realm = realm; this.discoveryOptions = discoveryOptions; this.executorService = executorService; this.channelHandler = new ManagementChannelHandler(this, executorService); this.scheduledExecutorService = scheduledExecutorService; this.runningMode = runningMode; this.connectionManager = ProtocolConnectionManager.create(new InitialConnectTask()); }
RemoteDomainConnection(final String localHostName, final ProtocolConnectionConfiguration configuration, final AuthenticationContext authenticationContext, final SecurityRealm realm, final String username, final List<DiscoveryOption> discoveryOptions, final ExecutorService executorService, final ScheduledExecutorService scheduledExecutorService, final HostRegistrationCallback callback, final RunningMode runningMode) { this.callback = callback; this.localHostName = localHostName; this.configuration = configuration; this.authenticationContext = authenticationContext; this.username = username; this.realm = realm; this.discoveryOptions = discoveryOptions; this.executorService = executorService; this.channelHandler = new ManagementChannelHandler(this, executorService); this.scheduledExecutorService = scheduledExecutorService; this.runningMode = runningMode; this.connectionManager = ProtocolConnectionManager.create(new InitialConnectTask()); }