@Override public Config getConfig() { return node.getConfig(); }
@Override public Config getConfig() { return node.getConfig(); }
@Override public SSLConfig getSSLConfig() { return node.getConfig().getNetworkConfig().getSSLConfig(); }
@Override public SymmetricEncryptionConfig getSymmetricEncryptionConfig() { return node.getConfig().getNetworkConfig().getSymmetricEncryptionConfig(); }
@Override public SSLConfig getSSLConfig() { return node.getConfig().getNetworkConfig().getSSLConfig(); }
private boolean checkCredentials(HttpPostCommand command) throws UnsupportedEncodingException { byte[] data = command.getData(); final String[] strList = bytesToString(data).split("&"); if (strList.length < 2) { return false; } final String groupName = URLDecoder.decode(strList[0], "UTF-8"); final String groupPass = URLDecoder.decode(strList[1], "UTF-8"); final GroupConfig groupConfig = textCommandService.getNode().getConfig().getGroupConfig(); return groupConfig.getName().equals(groupName) && groupConfig.getPassword().equals(groupPass); }
@Override public WanReplicationPublisherDelegate createNew(String name) { final WanReplicationConfig wanReplicationConfig = node.getConfig().getWanReplicationConfig(name); if (wanReplicationConfig == null) { return null; } final List<WanPublisherConfig> publisherConfigs = wanReplicationConfig.getWanPublisherConfigs(); return new WanReplicationPublisherDelegate(name, createPublishers(wanReplicationConfig, publisherConfigs)); } };
@Override public WanReplicationPublisherDelegate createNew(String name) { final WanReplicationConfig wanReplicationConfig = node.getConfig().getWanReplicationConfig(name); if (wanReplicationConfig == null) { return null; } final List<WanPublisherConfig> publisherConfigs = wanReplicationConfig.getWanPublisherConfigs(); return new WanReplicationPublisherDelegate(name, createPublishers(wanReplicationConfig, publisherConfigs)); } };
public TcpIpJoinerOverAWS(Node node) { super(node); logger = node.getLogger(getClass()); AwsConfig awsConfig = node.getConfig().getNetworkConfig().getJoin().getAwsConfig(); aws = new AWSClient(awsConfig); }
@Override public Collection<Integer> getOutboundPorts() { final NetworkConfig networkConfig = node.getConfig().getNetworkConfig(); final Collection<Integer> outboundPorts = networkConfig.getOutboundPorts(); final Collection<String> outboundPortDefinitions = networkConfig.getOutboundPortDefinitions(); return AddressUtil.getOutboundPorts(outboundPorts, outboundPortDefinitions); }
@Override public Collection<Integer> getOutboundPorts() { final NetworkConfig networkConfig = node.getConfig().getNetworkConfig(); final Collection<Integer> outboundPorts = networkConfig.getOutboundPorts(); final Collection<String> outboundPortDefinitions = networkConfig.getOutboundPortDefinitions(); return AddressUtil.getOutboundPorts(outboundPorts, outboundPortDefinitions); }
public TcpIpJoinerOverAWS(Node node) { super(node); logger = node.getLogger(getClass()); AwsConfig awsConfig = fromDeprecatedAwsConfig(node.getConfig().getNetworkConfig().getJoin().getAwsConfig()); aws = new AWSClient(awsConfig); }
@Override protected int getConnTimeoutSeconds() { AwsConfig awsConfig = node.getConfig().getNetworkConfig().getJoin().getAwsConfig(); return awsConfig.getConnectionTimeoutSeconds(); }
public TcpIpJoinerOverAWS(Node node) { super(node); logger = node.getLogger(getClass()); AwsConfig awsConfig = fromDeprecatedAwsConfig(node.getConfig().getNetworkConfig().getJoin().getAwsConfig()); aws = new AWSClient(awsConfig); }
@Override protected int getConnTimeoutSeconds() { AwsConfig awsConfig = fromDeprecatedAwsConfig(node.getConfig().getNetworkConfig().getJoin().getAwsConfig()); return awsConfig.getConnectionTimeoutSeconds(); }
@Override protected int getConnTimeoutSeconds() { AwsConfig awsConfig = fromDeprecatedAwsConfig(node.getConfig().getNetworkConfig().getJoin().getAwsConfig()); return awsConfig.getConnectionTimeoutSeconds(); }
private void registerServices(Map<String, Properties> serviceProps, Map<String, Object> serviceConfigObjects) { registerCoreServices(); registerExtensionServices(); Node node = nodeEngine.getNode(); ServicesConfig servicesConfig = node.getConfig().getServicesConfig(); if (servicesConfig != null) { registerDefaultServices(servicesConfig); registerUserServices(servicesConfig, serviceProps, serviceConfigObjects); } }
private void registerServices(Map<String, Properties> serviceProps, Map<String, Object> serviceConfigObjects) { registerCoreServices(); registerExtensionServices(); Node node = nodeEngine.getNode(); ServicesConfig servicesConfig = node.getConfig().getServicesConfig(); if (servicesConfig != null) { registerDefaultServices(servicesConfig); registerUserServices(servicesConfig, serviceProps, serviceConfigObjects); } }
public PartitionStateManager(Node node, InternalPartitionServiceImpl partitionService, PartitionListener listener) { this.node = node; this.logger = node.getLogger(getClass()); this.partitionService = partitionService; this.partitionCount = partitionService.getPartitionCount(); this.partitions = new InternalPartitionImpl[partitionCount]; PartitionReplica localReplica = PartitionReplica.from(node.getLocalMember()); for (int i = 0; i < partitionCount; i++) { this.partitions[i] = new InternalPartitionImpl(i, listener, localReplica); } memberGroupFactory = MemberGroupFactoryFactory.newMemberGroupFactory(node.getConfig().getPartitionGroupConfig(), node.getDiscoveryService()); partitionStateGenerator = new PartitionStateGeneratorImpl(); }