gemfireProperties.setPropertyIfNotDefault("ack-severe-alert-threshold", annotationAttributes.get("ackSevereAlertThreshold"), DEFAULT_ACK_SEVERE_ALERT_THRESHOLD); gemfireProperties.setPropertyIfNotDefault("ack-wait-threshold", annotationAttributes.get("ackWaitThreshold"), DEFAULT_ACK_WAIT_THRESHOLD); gemfireProperties.setPropertyIfNotDefault("async-distribution-timeout", annotationAttributes.get("asyncDistributionTimeout"), DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT); gemfireProperties.setPropertyIfNotDefault("async-max-queue-size", annotationAttributes.get("asyncMaxQueueSize"), DEFAULT_ASYNC_MAX_QUEUE_SIZE); gemfireProperties.setPropertyIfNotDefault("async-queue-timeout", annotationAttributes.get("asyncQueueTimeout"), DEFAULT_ASYNC_QUEUE_TIMEOUT); gemfireProperties.setPropertyIfNotDefault("conflate-events", annotationAttributes.get("conflateEvents"), DEFAULT_CONFLATE_EVENTS); gemfireProperties.setPropertyIfNotDefault("conserve-sockets", annotationAttributes.get("conserveSockets"), DEFAULT_CONSERVE_SOCKETS); gemfireProperties.setPropertyIfNotDefault("delta-propagation", annotationAttributes.get("deltaPropagation"), DEFAULT_DELTA_PROPAGATION); gemfireProperties.setPropertyIfNotDefault("deploy-working-dir", annotationAttributes.get("deployWorkingDirectory"), DEFAULT_DEPLOY_WORKING_DIRECTORY); gemfireProperties.setPropertyIfNotDefault("disable-tcp", annotationAttributes.get("disableTcp"), DEFAULT_DISABLE_TCP);
gemfireProperties.setPropertyIfNotDefault("ack-severe-alert-threshold", annotationAttributes.get("ackSevereAlertThreshold"), DEFAULT_ACK_SEVERE_ALERT_THRESHOLD); gemfireProperties.setPropertyIfNotDefault("ack-wait-threshold", annotationAttributes.get("ackWaitThreshold"), DEFAULT_ACK_WAIT_THRESHOLD); gemfireProperties.setPropertyIfNotDefault("async-distribution-timeout", annotationAttributes.get("asyncDistributionTimeout"), DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT); gemfireProperties.setPropertyIfNotDefault("async-max-queue-size", annotationAttributes.get("asyncMaxQueueSize"), DEFAULT_ASYNC_MAX_QUEUE_SIZE); gemfireProperties.setPropertyIfNotDefault("async-queue-timeout", annotationAttributes.get("asyncQueueTimeout"), DEFAULT_ASYNC_QUEUE_TIMEOUT); gemfireProperties.setPropertyIfNotDefault("conflate-events", annotationAttributes.get("conflateEvents"), DEFAULT_CONFLATE_EVENTS); gemfireProperties.setPropertyIfNotDefault("conserve-sockets", annotationAttributes.get("conserveSockets"), DEFAULT_CONSERVE_SOCKETS); gemfireProperties.setPropertyIfNotDefault("delta-propagation", annotationAttributes.get("deltaPropagation"), DEFAULT_DELTA_PROPAGATION); gemfireProperties.setPropertyIfNotDefault("deploy-working-dir", annotationAttributes.get("deployWorkingDirectory"), DEFAULT_DEPLOY_WORKING_DIRECTORY); gemfireProperties.setPropertyIfNotDefault("disable-tcp", annotationAttributes.get("disableTcp"), DEFAULT_DISABLE_TCP);
@Override protected Properties toGemFireProperties(Map<String, Object> annotationAttributes) { PropertiesBuilder gemfireProperties = PropertiesBuilder.create(); gemfireProperties.unsetProperty("locators"); gemfireProperties.setPropertyIfNotDefault("mcast-address", resolveProperty(propertyName("mcast.address"), (String) annotationAttributes.get("address")), DEFAULT_MCAST_ADDRESS); gemfireProperties.setPropertyIfNotDefault("mcast-flow-control", resolveProperty(propertyName("mcast.flow-control"), (String) annotationAttributes.get("flowControl")), DEFAULT_MCAST_FLOW_CONTROL); gemfireProperties.setPropertyIfNotDefault("mcast-port", resolveProperty(propertyName("mcast.port"), (Integer) annotationAttributes.get("port")), DEFAULT_MCAST_PORT); gemfireProperties.setPropertyIfNotDefault("mcast-recv-buffer-size", resolveProperty(propertyName("mcast.receive-buffer-size"), (Integer) annotationAttributes.get("receiveBufferSize")), DEFAULT_MCAST_RECEIVE_BUFFER_SIZE); gemfireProperties.setPropertyIfNotDefault("mcast-send-buffer-size", resolveProperty(propertyName("mcast.send-buffer-size"), (Integer) annotationAttributes.get("sendBufferSize")), DEFAULT_MCAST_SEND_BUFFER_SIZE); return gemfireProperties.build(); } }
@Override protected Properties toGemFireProperties(Map<String, Object> annotationAttributes) { PropertiesBuilder gemfireProperties = PropertiesBuilder.create(); gemfireProperties.unsetProperty("locators"); gemfireProperties.setPropertyIfNotDefault("mcast-address", resolveProperty(propertyName("mcast.address"), (String) annotationAttributes.get("address")), DEFAULT_MCAST_ADDRESS); gemfireProperties.setPropertyIfNotDefault("mcast-flow-control", resolveProperty(propertyName("mcast.flow-control"), (String) annotationAttributes.get("flowControl")), DEFAULT_MCAST_FLOW_CONTROL); gemfireProperties.setPropertyIfNotDefault("mcast-port", resolveProperty(propertyName("mcast.port"), (Integer) annotationAttributes.get("port")), DEFAULT_MCAST_PORT); gemfireProperties.setPropertyIfNotDefault("mcast-recv-buffer-size", resolveProperty(propertyName("mcast.receive-buffer-size"), (Integer) annotationAttributes.get("receiveBufferSize")), DEFAULT_MCAST_RECEIVE_BUFFER_SIZE); gemfireProperties.setPropertyIfNotDefault("mcast-send-buffer-size", resolveProperty(propertyName("mcast.send-buffer-size"), (Integer) annotationAttributes.get("sendBufferSize")), DEFAULT_MCAST_SEND_BUFFER_SIZE); return gemfireProperties.build(); } }
@Override protected Properties toGemFireProperties(Map<String, Object> annotationAttributes) { PropertiesBuilder gemfireProperties = PropertiesBuilder.create(); gemfireProperties.setPropertyIfNotDefault("log-disk-space-limit", resolveProperty(loggingProperty("log-disk-space-limit"), (Integer) annotationAttributes.get("logDiskSpaceLimit")), DEFAULT_LOG_DISK_SPACE_LIMIT); gemfireProperties.setProperty("log-file", resolveProperty(loggingProperty("log-file"), (String) annotationAttributes.get("logFile"))); gemfireProperties.setPropertyIfNotDefault("log-file-size-limit", resolveProperty(loggingProperty("log-file-size-limit"), (Integer) annotationAttributes.get("logFileSizeLimit")), DEFAULT_LOG_FILE_SIZE_LIMIT); gemfireProperties.setPropertyIfNotDefault("log-level", resolveProperty(loggingProperty("level"), (String) annotationAttributes.get("logLevel")), DEFAULT_LOG_LEVEL); return gemfireProperties.build(); } }
@Override protected Properties toGemFireProperties(Map<String, Object> annotationAttributes) { PropertiesBuilder gemfireProperties = PropertiesBuilder.create(); gemfireProperties.setPropertyIfNotDefault("log-disk-space-limit", resolveProperty(loggingProperty("log-disk-space-limit"), (Integer) annotationAttributes.get("logDiskSpaceLimit")), DEFAULT_LOG_DISK_SPACE_LIMIT); gemfireProperties.setProperty("log-file", resolveProperty(loggingProperty("log-file"), (String) annotationAttributes.get("logFile"))); gemfireProperties.setPropertyIfNotDefault("log-file-size-limit", resolveProperty(loggingProperty("log-file-size-limit"), (Integer) annotationAttributes.get("logFileSizeLimit")), DEFAULT_LOG_FILE_SIZE_LIMIT); gemfireProperties.setPropertyIfNotDefault("log-level", resolveProperty(loggingProperty("level"), (String) annotationAttributes.get("logLevel")), DEFAULT_LOG_LEVEL); return gemfireProperties.build(); } }
(String) annotationAttributes.get("bindAddress"))); gemfireProperties.setPropertyIfNotDefault("http-service-port", resolveProperty(httpServiceProperty("port"), (Integer) annotationAttributes.get("port")), DEFAULT_HTTP_SERVICE_PORT); gemfireProperties.setPropertyIfNotDefault("http-service-ssl-require-authentication", resolveProperty(httpServiceProperty("ssl-require-authentication"), (Boolean) annotationAttributes.get("sslRequireAuthentication")), DEFAULT_HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION); gemfireProperties.setPropertyIfNotDefault("start-dev-rest-api", resolveProperty(httpServiceProperty("dev-rest-api.start"), (Boolean) annotationAttributes.get("startDeveloperRestApi")),
(String) annotationAttributes.get("bindAddress"))); gemfireProperties.setPropertyIfNotDefault("http-service-port", resolveProperty(httpServiceProperty("port"), (Integer) annotationAttributes.get("port")), DEFAULT_HTTP_SERVICE_PORT); gemfireProperties.setPropertyIfNotDefault("http-service-ssl-require-authentication", resolveProperty(httpServiceProperty("ssl-require-authentication"), (Boolean) annotationAttributes.get("sslRequireAuthentication")), DEFAULT_HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION); gemfireProperties.setPropertyIfNotDefault("start-dev-rest-api", resolveProperty(httpServiceProperty("dev-rest-api.start"), (Boolean) annotationAttributes.get("startDeveloperRestApi")),
resolveProperty(statsProperty("sampling-enabled"), true)); gemfireProperties.setPropertyIfNotDefault("archive-disk-space-limit", resolveProperty(statsProperty("archive-disk-space-limit"), (Integer) annotationAttributes.get("archiveDiskSpaceLimit")), DEFAULT_ARCHIVE_DISK_SPACE_LIMIT); (String) annotationAttributes.get("archiveFile"))); gemfireProperties.setPropertyIfNotDefault("archive-file-size-limit", resolveProperty(statsProperty("archive-file-size-limit"), (Integer) annotationAttributes.get("archiveFileSizeLimit")), DEFAULT_ARCHIVE_FILE_SIZE_LIMIT); Boolean.TRUE.equals(annotationAttributes.get("enableTimeStatistics")))); gemfireProperties.setPropertyIfNotDefault("statistic-sample-rate", resolveProperty(statsProperty("sample-rate"), (Long) annotationAttributes.get("sampleRate")), DEFAULT_STATISTIC_SAMPLE_RATE);
resolveProperty(statsProperty("sampling-enabled"), true)); gemfireProperties.setPropertyIfNotDefault("archive-disk-space-limit", resolveProperty(statsProperty("archive-disk-space-limit"), (Integer) annotationAttributes.get("archiveDiskSpaceLimit")), DEFAULT_ARCHIVE_DISK_SPACE_LIMIT); (String) annotationAttributes.get("archiveFile"))); gemfireProperties.setPropertyIfNotDefault("archive-file-size-limit", resolveProperty(statsProperty("archive-file-size-limit"), (Integer) annotationAttributes.get("archiveFileSizeLimit")), DEFAULT_ARCHIVE_FILE_SIZE_LIMIT); Boolean.TRUE.equals(annotationAttributes.get("enableTimeStatistics")))); gemfireProperties.setPropertyIfNotDefault("statistic-sample-rate", resolveProperty(statsProperty("sample-rate"), (Long) annotationAttributes.get("sampleRate")), DEFAULT_STATISTIC_SAMPLE_RATE);
gemfireProperties.setPropertyIfNotDefault(SECURITY_MANAGER, annotationAttributes.get("securityManagerClass"), Void.class); (String) annotationAttributes.get("peerAuthenticationInitializer"))); gemfireProperties.setPropertyIfNotDefault(SECURITY_POST_PROCESSOR, annotationAttributes.get("securityPostProcessorClass"), Void.class);
gemfireProperties.setPropertyIfNotDefault(SECURITY_MANAGER, annotationAttributes.get("securityManagerClass"), Void.class); (String) annotationAttributes.get("peerAuthenticationInitializer"))); gemfireProperties.setPropertyIfNotDefault(SECURITY_POST_PROCESSOR, annotationAttributes.get("securityPostProcessorClass"), Void.class);
(String) annotationAttributes.get("peerAuthenticator"))); gemfireProperties.setPropertyIfNotDefault(SECURITY_PEER_VERIFY_MEMBER_TIMEOUT, resolveProperty(securityProperty("peer.verify-member-timeout"), (Long) annotationAttributes.get("peerVerifyMemberTimeout")), DEFAULT_PEER_VERIFY_MEMBER_TIMEOUT); (String) annotationAttributes.get("securityLogFile"))); gemfireProperties.setPropertyIfNotDefault(SECURITY_LOG_LEVEL, resolveProperty(securityProperty("log.level"), (String) annotationAttributes.get("securityLogLevel")), DEFAULT_SECURITY_LOG_LEVEL);
(String) annotationAttributes.get("peerAuthenticator"))); gemfireProperties.setPropertyIfNotDefault(SECURITY_PEER_VERIFY_MEMBER_TIMEOUT, resolveProperty(securityProperty("peer.verify-member-timeout"), (Long) annotationAttributes.get("peerVerifyMemberTimeout")), DEFAULT_PEER_VERIFY_MEMBER_TIMEOUT); (String) annotationAttributes.get("securityLogFile"))); gemfireProperties.setPropertyIfNotDefault(SECURITY_LOG_LEVEL, resolveProperty(securityProperty("log.level"), (String) annotationAttributes.get("securityLogLevel")), DEFAULT_SECURITY_LOG_LEVEL);
StringUtils.arrayToCommaDelimitedString(annotationAttributes.getStringArray("ciphers")))) .setPropertyIfNotDefault("ssl-default-alias", resolveProperty(sslProperty("certificate.alias.default"), annotationAttributes.getString("defaultCertificateAlias")), "")
StringUtils.arrayToCommaDelimitedString(annotationAttributes.getStringArray("ciphers")))) .setPropertyIfNotDefault("ssl-default-alias", resolveProperty(sslProperty("certificate.alias.default"), annotationAttributes.getString("defaultCertificateAlias")), "")