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

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


                    SecurityActions.getSystemProperty(ServerEnvironment.NODE_NAME), endpointType, options, null, null);

            // Install the communication services
            final int port = managementSocket.getPort();
            final String host = managementSocket.getAddress().getHostAddress();
            HostControllerConnectionService service = new HostControllerConnectionService(host, port, serverName, serverProcessName, authKey, managementSubsystemEndpoint);
            serviceTarget.addService(HostControllerConnectionService.SERVICE_NAME, service)
                    .addDependency(endpointName, Endpoint.class, service.getEndpointInjector())
                    .addDependency(ControlledProcessStateService.SERVICE_NAME, ControlledProcessStateService.class, service.getProcessStateServiceInjectedValue())
                    .setInitialMode(ServiceController.Mode.ACTIVE)
                    .install();

        } catch (OperationFailedException e) {
            throw new ServiceRegistryException(e);
View Full Code Here


        @Override
        public void activate(final ServiceActivatorContext serviceActivatorContext) {
            final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget();

            final HostControllerConnectionService smConnection = new HostControllerConnectionService();
            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)
View Full Code Here

        System.exit(0);
        throw new IllegalStateException(); // not reached
    }

    private static void addCommunicationServices(final ServiceTarget serviceTarget, final String serverName, final InetSocketAddress managementSocket) {
        final HostControllerConnectionService smConnection = new HostControllerConnectionService();
        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)
View Full Code Here

TOP

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

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.