package scray.common.properties.predefined;

import scray.common.properties.IntProperty;
import scray.common.properties.SocketListProperty;
import scray.common.properties.StringProperty;

public class PredefinedProperties {
	public final static IntProperty RESULT_COMPRESSION_MIN_SIZE = new IntProperty(
			"RESULT_COMPRESSION_MIN_SIZE", 1024);
	public final static SocketListProperty CASSANDRA_QUERY_SEED_IPS = new SocketListProperty(
			"CASSANDRA_QUERY_SEED_IPS", 9042);
	public final static SocketListProperty CASSANDRA_INDEX_SEED_IPS = new SocketListProperty(
			"CASSANDRA_INDEX_SEED_IPS", 9042);
	public final static StringProperty CASSANDRA_QUERY_KEYSPACE = new StringProperty(
			"CASSANDRA_QUERY_KEYSPACE", "SIL");
	public final static StringProperty CASSANDRA_INDEX_KEYSPACE = new StringProperty(
			"CASSANDRA_INDEX_KEYSPACE", "SILIDX");
	public final static StringProperty CASSANDRA_QUERY_CLUSTER_NAME = new StringProperty(
			"CASSANDRA_QUERY_CLUSTER_NAME", "Query Cluster");
	public final static StringProperty CASSANDRA_QUERY_CLUSTER_DC = new StringProperty(
			"CASSANDRA_QUERY_CLUSTER_DC", "DC1");
	public final static StringProperty CASSANDRA_INDEX_CLUSTER_NAME = new StringProperty(
			"CASSANDRA_INDEX_CLUSTER_NAME", "Index Cluster");
	public final static StringProperty CASSANDRA_INDEX_CLUSTER_DC = new StringProperty(
			"CASSANDRA_INDEX_CLUSTER_DC", "DC2");
	public final static IntProperty MINUTES_PER_BATCH = new IntProperty(
			"MINUTES_PER_BATCH", 30);
	public final static SocketListProperty SCRAY_SERVICE_IPS = new SocketListProperty(
			"SCRAY_SERVICE_IPS", 18181);
	public final static SocketListProperty SCRAY_MEMCACHED_IPS = new SocketListProperty(
			"SCRAY_MEMCACHED_IPS", 11211);

	/* Following properties used as constants (defaults) */

	public final static StringProperty INDEXING_HDFS_PROPERTIES_KEY = new StringProperty(
			"INDEXING_HDFS_PROPERTIES_KEY", "indexing.hdfs.properties");
	public final static StringProperty INDEXING_HDFS_PROPERTIES_PATH = new StringProperty(
			"INDEXING_HDFS_PROPERTIES_PATH", "/tmp/bdq-indexing.properties");

}

@@ -38,16 +38,100 @@
 fined;%0A%0A
+import java.net.InetSocketAddress;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0A
 import s
@@ -301,16 +301,17 @@
 rties %7B%0A
+%0A
 %09public 
@@ -1559,16 +1559,201 @@
 %22, 30);%0A
+%0A%09private static Set%3CInetSocketAddress%3E defaultScrayServiceIps = new HashSet%3CInetSocketAddress%3E();%0A%0A%09static %7B%0A%09%09defaultScrayServiceIps.add(new InetSocketAddress(%220.0.0.0%22, 18181));%0A%09%7D%0A%0A
 %09public 
@@ -1857,16 +1857,40 @@
 %22, 18181
+, defaultScrayServiceIps
 );%0A%09publ

add scray host ip default property