Package org.jboss.as.server.mgmt.domain

Examples of org.jboss.as.server.mgmt.domain.HostControllerServerClient


            StreamUtils.readFully(initialInput, asAuthKey);

            // Get the host-controller server client
            final ServiceContainer container = containerFuture.get();
            final ServiceController<?> controller = container.getRequiredService(HostControllerServerClient.SERVICE_NAME);
            final HostControllerServerClient client = (HostControllerServerClient) controller.getValue();
            // Reconnect to the host-controller
            client.reconnect(hostName, port, asAuthKey);

        } catch (InterruptedIOException e) {
            Thread.interrupted();
            // ignore
        } catch (EOFException e) {
View Full Code Here


        }

        try {
            final int port = managementSocket.getPort();
            final String host = NetworkUtils.formatPossibleIpv6Address(InetAddress.getByName(managementSocket.getHostName()).getHostName());
            final HostControllerServerClient client = new HostControllerServerClient(serverName, serverProcessName, host, port, authKey);
                    serviceTarget.addService(HostControllerServerClient.SERVICE_NAME, client)
                        .addDependency(endpointName, Endpoint.class, client.getEndpointInjector())
                        .addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, client.getServerControllerInjector())
                        .addDependency(RemoteFileRepository.SERVICE_NAME, RemoteFileRepository.class, client.getRemoteFileRepositoryInjector())
                        .setInitialMode(ServiceController.Mode.ACTIVE)
                        .install();

        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
View Full Code Here

    }

    private static void addCommunicationServices(final ServiceTarget serviceTarget, final String serverName, final String serverProcessName, final byte[] authKey, final InetSocketAddress managementSocket) {
        HostControllerConnectionService.install(serviceTarget, managementSocket, serverName, authKey);

        final HostControllerServerClient client = new HostControllerServerClient(serverName, serverProcessName);
        serviceTarget.addService(HostControllerServerClient.SERVICE_NAME, client)
            .addDependency(HostControllerConnectionService.SERVICE_NAME, ManagementChannel.class, client.getHcChannelInjector())
            .addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, client.getServerControllerInjector())
            .setInitialMode(ServiceController.Mode.ACTIVE)
            .install();
    }
View Full Code Here

            endpointName = RemotingServices.SUBSYSTEM_ENDPOINT;
        }

        HostControllerConnectionService.install(serviceTarget, endpointName, managementSocket, serverName, authKey);

        final HostControllerServerClient client = new HostControllerServerClient(serverName, serverProcessName);
        serviceTarget.addService(HostControllerServerClient.SERVICE_NAME, client)
            .addDependency(HostControllerConnectionService.SERVICE_NAME, ManagementChannel.class, client.getHcChannelInjector())
            .addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, client.getServerControllerInjector())
            .setInitialMode(ServiceController.Mode.ACTIVE)
            .install();
    }
View Full Code Here

            StreamUtils.readFully(initialInput, asAuthKey);

            // Get the host-controller server client
            final ServiceContainer container = containerFuture.get();
            final ServiceController<?> controller = container.getRequiredService(HostControllerServerClient.SERVICE_NAME);
            final HostControllerServerClient client = (HostControllerServerClient) controller.getValue();
            // Reconnect to the host-controller
            client.reconnect(hostName, port, asAuthKey);

        } catch (InterruptedIOException e) {
            Thread.interrupted();
            // ignore
        } catch (EOFException e) {
View Full Code Here

        }

        try {
            final int port = managementSocket.getPort();
            final String host = NetworkUtils.formatPossibleIpv6Address(InetAddress.getByName(managementSocket.getHostName()).getHostName());
            final HostControllerServerClient client = new HostControllerServerClient(serverName, serverProcessName, host, port, authKey);
                    serviceTarget.addService(HostControllerServerClient.SERVICE_NAME, client)
                        .addDependency(endpointName, Endpoint.class, client.getEndpointInjector())
                        .addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, client.getServerControllerInjector())
                        .addDependency(RemoteFileRepository.SERVICE_NAME, RemoteFileRepository.class, client.getRemoteFileRepositoryInjector())
                        .setInitialMode(ServiceController.Mode.ACTIVE)
                        .install();

        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
View Full Code Here

            StreamUtils.readFully(initialInput, asAuthKey);

            // Get the host-controller server client
            final ServiceContainer container = containerFuture.get();
            final ServiceController<?> controller = container.getRequiredService(HostControllerServerClient.SERVICE_NAME);
            final HostControllerServerClient client = (HostControllerServerClient) controller.getValue();
            // Reconnect to the host-controller
            client.reconnect(hostName, port, asAuthKey);

        } catch (InterruptedIOException e) {
            Thread.interrupted();
            // ignore
        } catch (EOFException e) {
View Full Code Here

            endpointName = RemotingServices.SUBSYSTEM_ENDPOINT;
        }

        final int port = managementSocket.getPort();
        final String host = NetworkUtils.formatPossibleIpv6Address(managementSocket.getAddress().getHostAddress());
        final HostControllerServerClient client = new HostControllerServerClient(serverName, serverProcessName, host, port, authKey);
                serviceTarget.addService(HostControllerServerClient.SERVICE_NAME, client)
                    .addDependency(endpointName, Endpoint.class, client.getEndpointInjector())
                    .addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, client.getServerControllerInjector())
                    .addDependency(RemoteFileRepository.SERVICE_NAME, RemoteFileRepository.class, client.getRemoteFileRepositoryInjector())
                    .addDependency(ControlledProcessStateService.SERVICE_NAME, ControlledProcessStateService.class, client.getProcessStateInjectedValue())
                    .setInitialMode(ServiceController.Mode.ACTIVE)
                    .install();
    }
View Full Code Here

            endpointName = RemotingServices.SUBSYSTEM_ENDPOINT;
        }

        HostControllerConnectionService.install(serviceTarget, endpointName, managementSocket, serverName, authKey);

        final HostControllerServerClient client = new HostControllerServerClient(serverName, serverProcessName);
        serviceTarget.addService(HostControllerServerClient.SERVICE_NAME, client)
            .addDependency(HostControllerConnectionService.SERVICE_NAME, Channel.class, client.getHcChannelInjector())
            .addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, client.getServerControllerInjector())
            .setInitialMode(ServiceController.Mode.ACTIVE)
            .install();
    }
View Full Code Here

            serviceTarget.addService(HostControllerConnectionService.SERVICE_NAME, smConnection)
                .addInjection(smConnection.getSmAddressInjector(), managementSocket)
                .setInitialMode(ServiceController.Mode.ACTIVE)
                .install();

            final HostControllerServerClient client = new HostControllerServerClient(serverName);
            serviceTarget.addService(HostControllerServerClient.SERVICE_NAME, client)
                .addDependency(HostControllerConnectionService.SERVICE_NAME, Connection.class, client.getSmConnectionInjector())
                .addDependency(Services.JBOSS_SERVER_CONTROLLER, ServerController.class, client.getServerControllerInjector())
                .setInitialMode(ServiceController.Mode.ACTIVE)
                .install();
        }
View Full Code Here

TOP

Related Classes of org.jboss.as.server.mgmt.domain.HostControllerServerClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.