本文整理了Java中org.apache.ignite.Ignite.plugin()
方法的一些代码示例,展示了Ignite.plugin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ignite.plugin()
方法的具体详情如下:
包路径:org.apache.ignite.Ignite
类名称:Ignite
方法名:plugin
[英]Gets an instance of deployed Ignite plugin.
[中]获取已部署Ignite插件的实例。
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public <T extends IgnitePlugin> T plugin(String name) throws PluginNotFoundException {
checkIgnite();
return g.plugin(name);
}
代码示例来源:origin: apache/ignite
/**
* Gets PageMemory tracker for ignite instance or null if it's not enabled.
*
* @param ignite Ignite.
*/
public static PageMemoryTracker tracker(Ignite ignite) {
try {
return ignite.plugin(PLUGIN_NAME);
}
catch (PluginNotFoundException ignore) {
return null;
}
}
代码示例来源:origin: apache/ignite
/**
* @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());
}
代码示例来源:origin: org.apache.ignite/ignite-spring
/** {@inheritDoc} */
@Override public <T extends IgnitePlugin> T plugin(String name) throws PluginNotFoundException {
checkIgnite();
return g.plugin(name);
}
内容来源于网络,如有侵权,请联系作者删除!