use of org.apache.ignite.plugin.IgnitePlugin in project ignite by apache.
the class IgniteStandByClusterTest method checkPlugin.
/**
* @param ig ignite.
* @param act Expected activation counter.
* @param deAct Expected deActivation counter.
*/
private void checkPlugin(Ignite ig, int act, int deAct) {
IgnitePlugin pl = ig.plugin(StanByClusterTestProvider.NAME);
assertNotNull(pl);
StanByClusterTestProvider plugin = (StanByClusterTestProvider) pl;
assertEquals(act, plugin.actCnt.get());
assertEquals(deAct, plugin.deActCnt.get());
}
Aggregations