1 23 package com.sun.enterprise.management; 24 25 import java.util.Map ; 26 import java.util.HashMap ; 27 28 34 public final class PropertyKeys 35 { 36 private PropertyKeys() {} 37 38 39 private final static String BASE = "amxtest"; 40 public static final String DEFAULT_PROPERTIES_FILE = BASE + ".properties"; 41 42 public static final String CONNECT_KEY = BASE + ".connect"; 43 public static final String HOST_KEY = CONNECT_KEY + ".host"; 44 public static final String PORT_KEY = CONNECT_KEY + ".port"; 45 public static final String USER_KEY = CONNECT_KEY + ".user"; 46 public static final String PASSWORD_KEY = CONNECT_KEY + ".password"; 47 public static final String TRUSTSTORE_KEY = CONNECT_KEY + ".truststore"; 48 public static final String TRUSTSTORE_PASSWORD_KEY = CONNECT_KEY + ".truststorePassword"; 49 public static final String USE_TLS_KEY = CONNECT_KEY + ".useTLS"; 50 public static final String RUN_THREADED_KEY = BASE + ".threaded"; 51 public static final String VERBOSE_KEY = BASE + ".verbose"; 52 public static final String ITERATIONS_KEY = BASE + ".iterations"; 53 54 59 public static final String TEST_OFFLINE_KEY = BASE + ".testOffline"; 60 61 64 public static final String DOMAIN_XML_KEY = TEST_OFFLINE_KEY + ".domainXML"; 65 66 67 72 public static final String EXPANDED_TESTING_KEY = BASE + ".expandedTesting"; 73 74 81 public static final String NODE_AGENTS_KEY = BASE + ".nodeAgents"; 82 83 public static final String ALL_NODE_AGENTS = "ALL"; 84 85 86 89 public static final String DAS_NODE_AGENT_NAME = BASE + ".dasNodeAgent"; 90 91 94 public static final String ARCHIVES_TO_DEPLOY_KEY = BASE + ".deploy.files"; 95 98 public static final String ARCHIVES_DELIM = ","; 99 100 103 public static final String DEPLOY_NUM_THREADS = BASE + ".deploy.numThreads"; 104 105 106 109 public static final String UPLOAD_DOWNLOAD_MGR_TEST_THREADS = BASE + ".UploadDownloadMgrTest.numThreads"; 110 113 public static final String UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB = BASE + ".UploadDownloadMgrTest.bigFileKB"; 114 115 116 117 120 public static final String TEST_CLASSES_FILE_KEY = BASE + ".testClasses"; 121 122 public static final String DEFAULT_HOST = "localhost"; 123 public static final String DEFAULT_PORT = "8686"; 124 public static final String DEFAULT_USER = "admin"; 125 public static final String DEFAULT_PASSWORD = "admin123"; 126 public static final String DEFAULT_TRUSTSTORE = "~/" + BASE + ".truststore"; 127 public static final String DEFAULT_TRUSTSTORE_PASSWORD = "changeme"; 128 public static final String DEFAULT_USE_TLS = "true"; 129 public static final String DEFAULT_RUN_THREADED = "true"; 130 public static final String DEFAULT_TEST_CLASSES_FILE_KEY = BASE + ".test-classes"; 131 public static final String DEFAULT_VERBOSE = "false"; 132 public static final String DEFAULT_ITERATIONS = "2"; 133 public static final String DEFAULT_CONNECT = "true"; 134 public static final String DEFAULT_NODE_AGENT_NAMES = ALL_NODE_AGENTS; 135 public static final String DEFAULT_EXPANDED_TESTING = "false"; 136 public static final String DEFAULT_TEST_OFFLINE = "false"; 137 138 public static final String DEFAULT_ARCHIVES_TO_DEPLOY = ""; 139 public static final String DEFAULT_DEPLOY_NUM_THREADS = "10"; 140 141 public static final String DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_THREADS = "10"; 142 public static final String DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB = "1536"; 143 144 145 public static Map <String ,String > 146 getDefaults() 147 { 148 final Map <String ,String > props = new HashMap <String ,String >(); 149 150 props.put( HOST_KEY, DEFAULT_HOST); 151 props.put( PORT_KEY, DEFAULT_PORT); 152 props.put( USER_KEY, DEFAULT_USER); 153 props.put( PASSWORD_KEY, DEFAULT_PASSWORD); 154 props.put( TRUSTSTORE_KEY, DEFAULT_TRUSTSTORE); 155 props.put( TRUSTSTORE_PASSWORD_KEY, DEFAULT_TRUSTSTORE_PASSWORD); 156 props.put( USE_TLS_KEY, DEFAULT_USE_TLS); 157 props.put( CONNECT_KEY, DEFAULT_CONNECT); 158 props.put( TEST_OFFLINE_KEY, DEFAULT_TEST_OFFLINE); 159 props.put( DOMAIN_XML_KEY, "./domain.xml" ); 160 161 props.put( NODE_AGENTS_KEY, ALL_NODE_AGENTS); 162 props.put( EXPANDED_TESTING_KEY, DEFAULT_EXPANDED_TESTING); 163 164 props.put( RUN_THREADED_KEY, DEFAULT_RUN_THREADED); 165 props.put( VERBOSE_KEY, DEFAULT_VERBOSE); 166 props.put( TEST_CLASSES_FILE_KEY, DEFAULT_TEST_CLASSES_FILE_KEY); 167 props.put( ITERATIONS_KEY, DEFAULT_ITERATIONS ); 168 169 props.put( ARCHIVES_TO_DEPLOY_KEY, DEFAULT_ARCHIVES_TO_DEPLOY); 170 props.put( DEPLOY_NUM_THREADS, DEFAULT_DEPLOY_NUM_THREADS); 171 172 props.put( UPLOAD_DOWNLOAD_MGR_TEST_THREADS, DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_THREADS); 173 props.put( UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB, DEFAULT_UPLOAD_DOWNLOAD_MGR_TEST_BIG_FILE_KB); 174 175 props.put( DEFAULT_PROPERTIES_FILE, DEFAULT_PROPERTIES_FILE ); 176 return( props ); 177 } 178 }; 179 180 | Popular Tags |