package crawler.util;

import java.util.ArrayList;
import java.util.TreeMap;

public class Settings {
	public static String tableName;
	
	public static String databaseName = "...";
	public static final String HOSTNAME = "...";
	public static final String PWD = "...";
	public static final String USER = "...";
	
	public static boolean limitTime = false;
	public static long timeLimit = 999999999;
	public static final int keywordMax = 400;
	public static final int batchSize = 3000;
	public static int minNewFreq = 3;
	public static long timer = 10*60*1000;
	public static long pid = 1;
	
	public static int searchTweetNo = 100;
	
	public static String[] baseKeywords = {"..."};
	public static String[] blackList = {"#bbc", "#bbc2013", "#cnn", "#news", "#twitter", "#socialmedia", "#rt","#teamfollowback","#follow","#followback","#instantfollowback","#autofollow"};
	public static String[] queryKeywords;
	
	public static TreeMap<String,Integer> KeywordsFreq = new TreeMap<String,Integer>();	//all keywords accumulative freq
	public static TreeMap<String,Integer> TFHashtagFreq = new TreeMap<String,Integer>();	//time frame hashtags freq
	public static TreeMap<String,Integer> TFHashtagFreq_last = new TreeMap<String,Integer>();	//last time frame hashtags freq

	
	public static ArrayList<String> ConsumerKey = new ArrayList<String>();
	public static ArrayList<String> ConsumerSecret = new ArrayList<String>();
	public static ArrayList<String> AccessToken = new ArrayList<String>();
	public static ArrayList<String> AccessSecret = new ArrayList<String>();
	
	public final static String[] ConsumerKeyArray = {"",
													 ""
													 };
	public final static String[] ConsumerSecretArray = {"",
		 												""
													 	};
	public final static String[] AccessTokenArray = {"",
		 											 ""
													 };
	public final static String[] AccessSecretArray = {"",
													  ""
													 };
	
}

@@ -1,8 +1,593 @@
+/* Copyright %5B2014%5D %5BXinyue Wang%5D%0A   Licensed under the Apache License, Version 2.0 (the %22License%22);%0A   you may not use this file except in compliance with the License.%0A   You may obtain a copy of the License at%0A     http://www.apache.org/licenses/LICENSE-2.0%0A   Unless required by applicable law or agreed to in writing, software%0A   distributed under the License is distributed on an %22AS IS%22 BASIS,%0A   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A   See the License for the specific language governing permissions and%0A   limitations under the License.%0A*/%0A%0A
 package 

Update Settings.java