1/*******************************************************************************
2 * Copyright (c) 2000, 2009 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *     IBM Corporation - initial API and implementation
10 *******************************************************************************/
11package org.eclipse.test.internal.performance.results.utils;
12
13/**
14 * Interface to define all constants used for performances.
15 */
16public interface IPerformancesConstants {
17    public static final String PLUGIN_ID = "org.eclipse.test.performance.ui"; //$NON-NLS-1$
18
19	public static final String PREFIX = PLUGIN_ID + "."; //$NON-NLS-1$
20
21	// State constants
22    public static final String PRE_FILTER_BASELINE_BUILDS = PREFIX + "filter.baseline.builds"; //$NON-NLS-1$
23    public static final String PRE_FULL_LINE_SELECTION  = PREFIX + "full.line.selection"; //$NON-NLS-1$
24    public static final String PRE_WRITE_RESULTS_DIR = PREFIX + "write.results.dir"; //$NON-NLS-1$
25
26	// Preference constants
27    public static final String PRE_ECLIPSE_VERSION = PREFIX + "eclipse.version"; //$NON-NLS-1$
28    public static final String PRE_DATABASE_CONNECTION = PREFIX + "database.connection"; //$NON-NLS-1$
29    public static final String PRE_DATABASE_LOCAL = PREFIX + "local"; //$NON-NLS-1$
30    public static final String PRE_DATABASE_LOCATION = PREFIX + "database.location"; //$NON-NLS-1$
31    public static final String PRE_LOCAL_DATA_DIR = PREFIX + "local.data.dir"; //$NON-NLS-1$
32    public static final String PRE_RESULTS_GENERATION_DIR = PREFIX + "results.generation.dir"; //$NON-NLS-1$
33    public static final String PRE_CONFIG_DESCRIPTOR_NAME = PREFIX + "config.descriptor.name"; //$NON-NLS-1$
34    public static final String PRE_CONFIG_DESCRIPTOR_DESCRIPTION = PREFIX + "config.descriptor.description"; //$NON-NLS-1$
35    public static final String PRE_LAST_BUILD = PREFIX + "last.build"; //$NON-NLS-1$
36    public static final String PRE_DEFAULT_DIMENSION = PREFIX + "default.dimension"; //$NON-NLS-1$
37    public static final String PRE_RESULTS_DIMENSION = PREFIX + "results.dimension"; //$NON-NLS-1$
38    public static final String PRE_MILESTONE_BUILDS = PREFIX + "milestone.builds"; //$NON-NLS-1$
39    public static final String PRE_STATUS_COMMENT_PREFIX = PREFIX + "status.comment"; //$NON-NLS-1$
40    public static final String PRE_FILTER_ADVANCED_SCENARIOS = PREFIX + "filter.non.fingerprints.scenarios"; //$NON-NLS-1$
41    public static final String PRE_FILTER_OLD_BUILDS = PREFIX + "filter.non.milestones.builds"; //$NON-NLS-1$
42    public static final String PRE_FILTER_NIGHTLY_BUILDS = PREFIX + "filter.nightly.builds"; //$NON-NLS-1$
43    public static final String PRE_FILTER_LAST_BUILDS = PREFIX + "filter.last.builds"; //$NON-NLS-1$
44
45	// Other constants
46	public static final int ECLIPSE_MAINTENANCE_VERSION = 35;
47	public static final int ECLIPSE_DEVELOPMENT_VERSION = 36;
48
49	// Default values
50	public static final String DATABASE_NAME_PREFIX = "perfDb";
51	public static final String NETWORK_DATABASE_LOCATION = "net://minsky.ottawa.ibm.com:1528";
52	public static final int DEFAULT_ECLIPSE_VERSION = ECLIPSE_DEVELOPMENT_VERSION;
53	public static final boolean DEFAULT_FILTER_ADVANCED_SCENARIOS = true;
54	public static final boolean DEFAULT_FILTER_OLD_BUILDS = false;
55	public static final boolean DEFAULT_FILTER_LAST_BUILDS = false;
56	public static final boolean DEFAULT_FILTER_NIGHTLY_BUILDS = false;
57	public static final boolean DEFAULT_DATABASE_CONNECTION = false;
58	public static final boolean DEFAULT_DATABASE_LOCAL = false;
59
60	// Status
61    public static final String PRE_WRITE_STATUS = PREFIX + "write.status"; //$NON-NLS-1$
62	public static final int STATUS_BUILDS_NUMBER_MASK= 0x00FF;
63	public static final int DEFAULT_BUILDS_NUMBER = 3;
64	public static final int STATUS_VALUES = 0x0100;
65	public static final int STATUS_ERROR_NONE = 0x0200;
66	public static final int STATUS_ERROR_NOTICEABLE = 0x0400;
67	public static final int STATUS_ERROR_SUSPICIOUS = 0x0600;
68	public static final int STATUS_ERROR_WEIRD = 0x0800;
69	public static final int STATUS_ERROR_INVALID = 0x0A00;
70	public static final int STATUS_ERROR_LEVEL_MASK = 0x0E00;
71	public static final int STATUS_SMALL_VALUE_BUILD = 0x1000;
72	public static final int STATUS_SMALL_VALUE_DELTA = 0x2000;
73	public static final int STATUS_SMALL_VALUE_MASK = 0x3000;
74	public static final int STATUS_STATISTICS_ERRATIC = 0x4000;
75	public static final int STATUS_STATISTICS_UNSTABLE = 0x8000;
76	public static final int STATUS_STATISTICS_MASK = 0xC000;
77	public static final int DEFAULT_WRITE_STATUS = STATUS_ERROR_NONE | DEFAULT_BUILDS_NUMBER;
78
79	// Default milestones nowadays
80	public static final String[] V36_MILESTONES = new String[] {
81		"M1-200908060100",
82		"M2-200909170100",
83		"M3-200910301201",
84		"M4-200912101301",
85		"M5-201001291300",
86		"M6-201003121448",
87	};
88	public static final String[] V35_MILESTONES = new String[] {
89		        "M1-200808071402",
90		        "M2-200809180100",
91		        "M3-200810301917",
92		        "M4-200812111908",
93		        "M5-200902021535",
94		        "M6-200903130100",
95		        "M7-200904302300",
96		        "RC1-200905151143",
97		        "RC2-200905221710",
98		        "RC3-200905282000",
99		        "RC4-200906051444",
100		        "R3_5-200906111540"
101	};
102	/** @deprecated */
103	public static final String[] V34_MILESTONES = new String[] {
104		        "M1-200708091105",
105		        "M2-200709210919",
106		        "M3-200711012000",
107		        "M4-200712131700",
108		        "M5-200802071530",
109		        "M6a-200804091425",
110		        "M7-200805020100",
111		        "RC1-200805161333",
112		        "RC2-200805230100",
113		        "RC3-200805301730",
114		        "RC4-200806091311",
115		        "R3_4-200806172000"
116	};
117	/** @deprecated */
118	public static final String[] V33_MILESTONES = new String[] {
119		        "M1-200608101230",
120		        "M2-200609220010",
121		        "M3-200611021715",
122		        "M4-200612141445",
123		        "M5-200702091006",
124		        "M5eh-200702220951",
125		        "M6-200703231616",
126		        "M7-200705031400",
127		        "RC1-200705171700",
128		        "RC2-200705251350",
129		        "RC3-200706011539",
130		        "RC4-200706081718",
131		        "R3_3-200706251500",
132		        "R3_3_1-200709211145",
133		        "R3_3_2-200802211800"
134	};
135
136}
137