Package org.jboss.as.server.mgmt

Examples of org.jboss.as.server.mgmt.ManagementCommunicationService


                public void execute(RuntimeTaskContext context) throws OperationFailedException {
                    final ServiceTarget serviceTarget = context.getServiceTarget();

                    Logger.getLogger("org.jboss.as").infof("creating native management service using network interface (%s) port (%s)", interfaceName, port);

                    final ManagementCommunicationService managementCommunicationService = new ManagementCommunicationService();
                    serviceTarget.addService(ManagementCommunicationService.SERVICE_NAME, managementCommunicationService)
                            .addDependency(
                                    NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(interfaceName),
                                    NetworkInterfaceBinding.class, managementCommunicationService.getInterfaceInjector())
                            .addInjection(managementCommunicationService.getPortInjector(), port)
                            .addInjection(managementCommunicationService.getExecutorServiceInjector(), Executors.newCachedThreadPool())
                            .addInjection(managementCommunicationService.getThreadFactoryInjector(), Executors.defaultThreadFactory())
                            .setInitialMode(ServiceController.Mode.ACTIVE)
                            .install();

                    ServerControllerOperationHandlerService operationHandlerService = new ServerControllerOperationHandlerService();
                    serviceTarget.addService(ServerControllerOperationHandlerService.SERVICE_NAME, operationHandlerService)
View Full Code Here


                    Logger.getLogger("org.jboss.as").infof("creating native management service using network interface (%s) port (%s)", interfaceName, port);

                    final ThreadGroup threadGroup = new ThreadGroup("ManagementCommunication-threads");
                    final ThreadFactory threadFactory = new JBossThreadFactory(threadGroup, Boolean.FALSE, null, "%G - %t", null, null, AccessController.getContext());

                    final ManagementCommunicationService managementCommunicationService = new ManagementCommunicationService();
                    serviceTarget.addService(ManagementCommunicationService.SERVICE_NAME, managementCommunicationService)
                            .addDependency(
                                    NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(interfaceName),
                                    NetworkInterfaceBinding.class, managementCommunicationService.getInterfaceInjector())
                            .addInjection(managementCommunicationService.getPortInjector(), port)
                            .addInjection(managementCommunicationService.getExecutorServiceInjector(), Executors.newCachedThreadPool(threadFactory))
                            .addInjection(managementCommunicationService.getThreadFactoryInjector(), threadFactory)
                            .setInitialMode(ServiceController.Mode.ACTIVE)
                            .install();

                    ServerControllerOperationHandlerService operationHandlerService = new ServerControllerOperationHandlerService();
                    serviceTarget.addService(ServerControllerOperationHandlerService.SERVICE_NAME, operationHandlerService)
View Full Code Here

TOP

Related Classes of org.jboss.as.server.mgmt.ManagementCommunicationService

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.