Package org.jboss.as.server.services.net

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


                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


                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

TOP

Related Classes of org.jboss.as.server.services.net.SocketBindingManagerService$CloseableManagedBinding

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.