Examples of SocketBindingManagerService


Examples of org.jboss.as.server.services.net.SocketBindingManagerService

                public void execute(RuntimeTaskContext context) throws OperationFailedException {

                    int portOffset = resolvedOp.get(PORT_OFFSET).isDefined() ? resolvedOp.get(PORT_OFFSET).asInt() : 0;
                    String defaultInterface = resolvedOp.require(DEFAULT_INTERFACE).asString();

                    SocketBindingManagerService service = new SocketBindingManagerService(portOffset);
                    final ServiceTarget serviceTarget = context.getServiceTarget();
                    serviceTarget.addService(SocketBindingManager.SOCKET_BINDING_MANAGER, service)
                            .setInitialMode(ServiceController.Mode.ON_DEMAND)
                            .addDependency(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(defaultInterface), NetworkInterfaceBinding.class, service.getDefaultInterfaceBinding())
                            .install();
                    resultHandler.handleResultComplete();
                }
            });
        } else {
View Full Code Here

Examples of org.jboss.as.server.services.net.SocketBindingManagerService

                public void execute(RuntimeTaskContext context) throws OperationFailedException {

                    int portOffset = resolvedOp.get(PORT_OFFSET).isDefined() ? resolvedOp.get(PORT_OFFSET).asInt() : 0;
                    String defaultInterface = resolvedOp.require(DEFAULT_INTERFACE).asString();

                    SocketBindingManagerService service = new SocketBindingManagerService(portOffset);
                    final ServiceTarget serviceTarget = context.getServiceTarget();
                    serviceTarget.addService(SocketBindingManager.SOCKET_BINDING_MANAGER, service)
                            .setInitialMode(ServiceController.Mode.ON_DEMAND)
                            .addDependency(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(defaultInterface), NetworkInterfaceBinding.class, service.getDefaultInterfaceBinding())
                            .install();
                    resultHandler.handleResultComplete();
                }
            });
        } else {
View Full Code Here

Examples of org.jboss.as.services.net.SocketBindingManagerService

        // Server deployment scanner factory
        DeploymentScannerFactoryService.addService(batchBuilder);

        batchBuilder.addService(SocketBindingManager.SOCKET_BINDING_MANAGER,
                new SocketBindingManagerService(portOffset)).setInitialMode(ServiceController.Mode.ON_DEMAND);

        // Activate deployment module loader
        batchBuilder.addService(ClassifyingModuleLoaderService.SERVICE_NAME, new ClassifyingModuleLoaderService());

        final DeploymentModuleLoaderService deploymentModuleLoaderService = new DeploymentModuleLoaderService(new DeploymentModuleLoaderImpl());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.