use of org.apache.ignite.testframework.GridTestExternalClassLoader in project ignite by apache.
the class DeploymentClassLoaderCallableTest method runJob0.
/**
* @param ignite Ignite instance.
* @param timeout Timeout.
* @throws Exception If failed.
*/
private void runJob0(Ignite ignite, long timeout) throws Exception {
ClassLoader testClassLoader = new GridTestExternalClassLoader(new URL[] { new URL(GridTestProperties.getProperty("p2p.uri.cls")) }, RUN_CLS1, RUN_CLS2);
Constructor ctor = testClassLoader.loadClass(RUN_CLS).getConstructor();
ignite.compute().withTimeout(timeout).broadcast((IgniteCallable<?>) ctor.newInstance());
}
use of org.apache.ignite.testframework.GridTestExternalClassLoader in project ignite by apache.
the class DeploymentClassLoaderCallableTest method runJob2.
/**
* @param ignite Ignite instance.
* @param timeout Timeout.
* @throws Exception If failed.
*/
private void runJob2(Ignite ignite, long timeout) throws Exception {
ClassLoader testClassLoader = new GridTestExternalClassLoader(new URL[] { new URL(GridTestProperties.getProperty("p2p.uri.cls")) }, RUN_CLS, RUN_CLS1);
Constructor ctor = testClassLoader.loadClass(RUN_CLS2).getConstructor();
ignite.compute().withTimeout(timeout).broadcast((IgniteCallable<?>) ctor.newInstance());
}
use of org.apache.ignite.testframework.GridTestExternalClassLoader in project ignite by apache.
the class DeploymentClassLoaderCallableTest method runJob1.
/**
* @param ignite Ignite instance.
* @param timeout Timeout.
* @throws Exception If failed.
*/
private void runJob1(Ignite ignite, long timeout) throws Exception {
ClassLoader testClassLoader1 = new GridTestExternalClassLoader(new URL[] { new URL(GridTestProperties.getProperty("p2p.uri.cls")) }, RUN_CLS, RUN_CLS2);
Constructor ctor = testClassLoader1.loadClass(RUN_CLS1).getConstructor();
ignite.compute().withTimeout(timeout).broadcast((IgniteCallable<?>) ctor.newInstance());
}
use of org.apache.ignite.testframework.GridTestExternalClassLoader in project ignite by apache.
the class IgniteServiceDeployment2ClassLoadersDefaultMarshallerTest method beforeTestsStarted.
/**
* {@inheritDoc}
*/
@Override
protected void beforeTestsStarted() throws Exception {
extClsLdr1 = new GridTestExternalClassLoader(URLS, NOOP_SERVICE_2_CLS_NAME);
extClsLdr2 = new GridTestExternalClassLoader(URLS, NOOP_SERVICE_CLS_NAME);
}
Aggregations