/** * Installs a remoting stream server for a domain instance * * @param serviceTarget the service target to install the services into * @param endpointName the name of the endpoint to install the stream server into * @param networkInterfaceBinding the network interface binding * @param port the port * @param securityRealmName the security real name * @param options the remoting options * @param verificationHandler * @param newControllers */ public static void installDomainConnectorServices(final ServiceTarget serviceTarget, final ServiceName endpointName, final ServiceName networkInterfaceBinding, final int port, final ServiceName securityRealmName, final OptionMap options, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) { ServiceName serverCallbackService = ServiceName.JBOSS.append("host", "controller", "server-inventory", "callback"); ServiceName tmpDirPath = ServiceName.JBOSS.append("server", "path", "jboss.domain.temp.dir"); installSecurityServices(serviceTarget, MANAGEMENT_CONNECTOR, securityRealmName, serverCallbackService, tmpDirPath, verificationHandler, newControllers); installConnectorServicesForNetworkInterfaceBinding(serviceTarget, endpointName, MANAGEMENT_CONNECTOR, networkInterfaceBinding, port, options, verificationHandler, newControllers); }
/** * Installs a remoting stream server for a domain instance * @param serviceTarget the service target to install the services into * @param endpointName the name of the endpoint to install the stream server into * @param networkInterfaceBinding the network interface binding * @param port the port * @param securityRealm the security real name * @param options the remoting options */ public static void installDomainConnectorServices(final OperationContext context, final ServiceTarget serviceTarget, final ServiceName endpointName, final ServiceName networkInterfaceBinding, final int port, final OptionMap options, final ServiceName securityRealm, final ServiceName saslAuthenticationFactory, final ServiceName sslContext) { String sbmCap = "org.wildfly.management.socket-binding-manager"; ServiceName sbmName = context.hasOptionalCapability(sbmCap, NATIVE_MANAGEMENT_RUNTIME_CAPABILITY.getName(), null) ? context.getCapabilityServiceName(sbmCap, SocketBindingManager.class) : null; installConnectorServicesForNetworkInterfaceBinding(serviceTarget, endpointName, MANAGEMENT_CONNECTOR, networkInterfaceBinding, port, options, securityRealm, saslAuthenticationFactory, sslContext, sbmName); }
ManagementRemotingServices.installConnectorServicesForNetworkInterfaceBinding(serviceTarget, endpointName, ManagementRemotingServices.MANAGEMENT_CONNECTOR, interfaceSvcName, port, options, verificationHandler, newControllers); } else {
ManagementRemotingServices.installConnectorServicesForNetworkInterfaceBinding(serviceTarget, endpointName, ManagementRemotingServices.MANAGEMENT_CONNECTOR, interfaceSvcName, port, options, verificationHandler, newControllers); } else {