public ClusterNodeConfig newClusterNode(final String nodeName) { final ClusterNodeConfig node = new ClusterNodeConfig(nodeName); this.nodes.add(node); return node; }
clusterNodeConfig.setConnectTimeout(connectTimeout); clusterNodeConfig.setSecurityRealm(securityRealm); clusterNodeConfig.setUserName(userName); case CONNECTION_CREATION_OPTIONS: final Properties connectionCreationOptions = this.parseConnectionCreationOptions(reader); clusterNodeConfig.setConnectionOptions(connectionCreationOptions); break; case CHANNEL_CREATION_OPTIONS: final Properties channelCreationOptions = this.parseChannelCreationOptions(reader); clusterNodeConfig.setChannelCreationOptions(channelCreationOptions); break; default:
AuthenticationConfiguration nodeAuthenticationConfiguration = AuthenticationConfiguration.EMPTY; final String nodeName = clusterNodeConfig.getNodeName(); nodeRule = nodeRule.matchProtocol("node"); nodeRule = nodeRule.matchUrnName(nodeName); final Properties channelCreationOptions = clusterNodeConfig.getChannelCreationOptions(); final Properties connectionOptions = clusterNodeConfig.getConnectionOptions(); final OptionMap connectionOptionMap = getOptionMapFromProperties(connectionOptions, EJBClientDescriptorMetaDataProcessor.class.getClassLoader()); final long connectTimeout = clusterNodeConfig.getConnectTimeout(); final String securityRealm = clusterNodeConfig.getSecurityRealm(); final String userName = clusterNodeConfig.getUserName(); CallbackHandler nodeCallbackHandler = getCallbackHandler(phaseContext.getServiceRegistry(), userName, securityRealm); if (nodeCallbackHandler != null) {
clusterNodeConfig.setConnectTimeout(connectTimeout); clusterNodeConfig.setSecurityRealm(securityRealm); clusterNodeConfig.setUserName(userName); case CONNECTION_CREATION_OPTIONS: final Properties connectionCreationOptions = this.parseConnectionCreationOptions(reader); clusterNodeConfig.setConnectionOptions(connectionCreationOptions); break; case CHANNEL_CREATION_OPTIONS: final Properties channelCreationOptions = this.parseChannelCreationOptions(reader); clusterNodeConfig.setChannelCreationOptions(channelCreationOptions); break; default:
clusterNodeConfig.setConnectTimeout(connectTimeout); clusterNodeConfig.setSecurityRealm(securityRealm); clusterNodeConfig.setUserName(userName); case CONNECTION_CREATION_OPTIONS: final Properties connectionCreationOptions = this.parseConnectionCreationOptions(reader); clusterNodeConfig.setConnectionOptions(connectionCreationOptions); break; case CHANNEL_CREATION_OPTIONS: final Properties channelCreationOptions = this.parseChannelCreationOptions(reader); clusterNodeConfig.setChannelCreationOptions(channelCreationOptions); break; default:
clusterNodeConfig.setConnectTimeout(connectTimeout); clusterNodeConfig.setSecurityRealm(securityRealm); clusterNodeConfig.setUserName(userName); case CONNECTION_CREATION_OPTIONS: final Properties connectionCreationOptions = this.parseConnectionCreationOptions(reader); clusterNodeConfig.setConnectionOptions(connectionCreationOptions); break; case CHANNEL_CREATION_OPTIONS: final Properties channelCreationOptions = this.parseChannelCreationOptions(reader); clusterNodeConfig.setChannelCreationOptions(channelCreationOptions); break; default:
clusterNodeConfig.setConnectTimeout(connectTimeout); clusterNodeConfig.setSecurityRealm(securityRealm); clusterNodeConfig.setUserName(userName); case CONNECTION_CREATION_OPTIONS: final Properties connectionCreationOptions = this.parseConnectionCreationOptions(reader); clusterNodeConfig.setConnectionOptions(connectionCreationOptions); break; case CHANNEL_CREATION_OPTIONS: final Properties channelCreationOptions = this.parseChannelCreationOptions(reader); clusterNodeConfig.setChannelCreationOptions(channelCreationOptions); break; default:
public EJBClientClusterNodeConfig(final EJBClientDescriptorMetaData.ClusterNodeConfig clusterNodeConfig, final ClassLoader deploymentClassLoader, final ServiceRegistry serviceRegistry) { this.delegate = clusterNodeConfig; this.setConnectionTimeout(clusterNodeConfig.getConnectTimeout()); final Properties channelProps = clusterNodeConfig.getChannelCreationOptions(); if (channelProps != null) { // we don't use the deployment CL here since the XNIO project isn't necessarily added as a dep on the deployment's // module CL final OptionMap channelOpts = getOptionMapFromProperties(channelProps, this.getClass().getClassLoader()); logger.debug("Channel creation options for node " + clusterNodeConfig.getNodeName() + " are " + channelOpts); this.setChannelCreationOptions(channelOpts); } final Properties connectionProps = clusterNodeConfig.getConnectionOptions(); if (connectionProps != null) { // we don't use the deployment CL here since the XNIO project isn't necessarily added as a dep on the deployment's // module CL final OptionMap connectOpts = getOptionMapFromProperties(connectionProps, this.getClass().getClassLoader()); logger.debug("Connection creation options for node " + clusterNodeConfig.getNodeName() + " are " + connectOpts); this.setConnectionCreationOptions(connectOpts); } this.setCallbackHandler(serviceRegistry, clusterNodeConfig.getUserName(), clusterNodeConfig.getSecurityRealm()); }
@Override public String getNodeName() { return this.delegate.getNodeName(); } }
public ClusterNodeConfig newClusterNode(final String nodeName) { final ClusterNodeConfig node = new ClusterNodeConfig(nodeName); this.nodes.add(node); return node; }
public ClusterNodeConfig newClusterNode(final String nodeName) { final ClusterNodeConfig node = new ClusterNodeConfig(nodeName); this.nodes.add(node); return node; }
public ClusterNodeConfig newClusterNode(final String nodeName) { final ClusterNodeConfig node = new ClusterNodeConfig(nodeName); this.nodes.add(node); return node; }