/** * @return Entry Processor. */ protected String getEntryProcessor(){ return GridTestProperties.getProperty(GridTestProperties.ENTRY_PROCESSOR_CLASS_NAME) != null ? GridTestProperties.getProperty(GridTestProperties.ENTRY_PROCESSOR_CLASS_NAME) : "org.apache.ignite.tests.p2p.CacheDeploymentEntryProcessor"; }
/** * @param props Initial properties. * @param dir Directory path. * @return Loaded properties. */ private static Map<String, String> loadProperties(Map<String, String> props, String dir) { File cfg = getTestConfigurationFile(dir, TESTS_PROP_FILE); if (cfg != null) loadFromFile(props, cfg); return props; }
/** {@inheritDoc} */ @Override protected void afterTestsStopped() throws Exception { GridTestProperties.setProperty(GridTestProperties.MARSH_CLASS_NAME, marshallerBackup); }
/** * @param name Property name. * @return Property value. */ public static synchronized String getProperty(String name) { return getProperties().get(name); }
/** */ @BeforeClass public static void setup() { GridTestProperties.init(); }
public static String keyStorePassword() { return GridTestProperties.getProperty("ssl.keystore.password"); }
/** */ @BeforeClass public static void init() { GridTestProperties.setProperty(GridTestProperties.BINARY_MARSHALLER_USE_SIMPLE_NAME_MAPPER, "true"); } }
/** * @param name Property name. * @param val Property value. */ public static synchronized void setProperty(String name, String val) { getProperties().put(name, val); }
/** * @return Time for load test in minutes. */ private int getTestDurationInMinutes() { return Integer.valueOf(GridTestProperties.getProperty("load.test.duration")); }
/** * @return Number of threads for the test. */ private int getThreadCount() { return Integer.valueOf(GridTestProperties.getProperty("load.test.threadnum")); }
/** * @return Number of threads for the test. */ private int getThreadCount() { return Integer.valueOf(GridTestProperties.getProperty("load.test.threadnum")); }
/** * @return Time for load test in minutes. */ private int getTestDurationInMinutes() { return Integer.valueOf(GridTestProperties.getProperty("load.test.duration")); }
/** * @return Number of nodes to start/stop. */ protected int getNodeCount() { return Integer.valueOf(GridTestProperties.getProperty("load.test.nodenum")); }
/** * @return Time for load test in minutes. */ private int getTestDurationInMinutes() { return Integer.valueOf(GridTestProperties.getProperty("load.test.duration")); }
/** * @return Time for load test in minutes. */ private int getTestDurationInMinutes() { return Integer.valueOf(GridTestProperties.getProperty("load.test.duration")); }
/** * @return Number of threads for the test. */ private int getThreadCount() { //return 1; return Integer.valueOf(GridTestProperties.getProperty("load.test.threadnum")); }
/** * @return Number of threads for the test. */ private int getThreadCount() { return Integer.valueOf(GridTestProperties.getProperty("load.test.threadnum")); }
/** * @return Number of threads for the test. */ private int getThreadCount() { return Integer.valueOf(GridTestProperties.getProperty("load.test.threadnum")); }
/** * @return Number of threads for the test. */ private int getThreadCount() { return Integer.valueOf(GridTestProperties.getProperty("load.test.threadnum")); }
/** * @return Time for load test in minutes. */ private int getTestDurationInMinutes() { return Integer.valueOf(GridTestProperties.getProperty("load.test.duration")); }