本文整理了Java中org.apache.ignite.Ignition.stop()
方法的一些代码示例,展示了Ignition.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ignition.stop()
方法的具体详情如下:
包路径:org.apache.ignite.Ignition
类名称:Ignition
方法名:stop
[英]Stops named Ignite instance. If cancel flag is set to true then all jobs currently executing on local node will be interrupted. If Ignite instance name is null, then default no-name Ignite instance will be stopped. If wait parameter is set to true then Ignite instance will wait for all tasks to be finished.
[中]停止名为Ignite的实例。如果取消标志设置为true,则当前在本地节点上执行的所有作业都将中断。如果Ignite实例名称为null,则默认情况下,不会停止任何名称Ignite实例。若wait参数设置为true,则Ignite实例将等待所有任务完成。
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public void close() throws IgniteException {
Ignition.stop(igniteInstanceName, true);
}
代码示例来源:origin: apache/ignite
/**
* Stop single instance.
*
* @param igniteInstanceName Ignite instance name,
* @param cancel Cancel flag.
* @return {@code True} if instance was found and stopped.
*/
public static synchronized boolean stop(@Nullable String igniteInstanceName, boolean cancel) {
if (Ignition.stop(igniteInstanceName, cancel)) {
PlatformProcessor old = instances.remove(igniteInstanceName);
assert old != null;
return true;
}
else
return false;
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public Object execute() throws IgniteException {
return Ignition.stop(igniteInstanceName, true);
}
}
代码示例来源:origin: apache/ignite
/**
* Stop all instances.
*
* @param cancel Cancel flag.
*/
public static synchronized void stopAll(boolean cancel) {
for (PlatformProcessor proc : instances.values())
Ignition.stop(proc.ignite().name(), cancel);
instances.clear();
}
代码示例来源:origin: apache/ignite
REF_CTRS.remove(nodeName);
Ignition.stop(nodeName, true);
代码示例来源:origin: apache/ignite
Ignition.stop(ignite.name(), false);
代码示例来源:origin: apache/ignite
System.err.println("Wormup error");
ex.printStackTrace(System.err);
Ignition.stop(false);
return;
Ignition.stop(false);
代码示例来源:origin: apache/ignite
Ignition.stop("client1", true);
Ignition.stop("client2", true);
Ignition.stop("client3", true);
Ignition.stop("client4", true);
Ignition.stop("server1", true);
Ignition.stop("server2", true);
代码示例来源:origin: apache/ignite
Ignition.stop(srv1.name(), true);
Ignition.stop(srv2.name(), true);
代码示例来源:origin: apache/ignite
Ignition.stop(ignite.name(), false); //will make checkpoint
代码示例来源:origin: apache/ignite
Ignition.stop(srv1.name(), true);
Ignition.stop(srv2.name(), true);
代码示例来源:origin: org.apache.ignite/ignite-core
/** {@inheritDoc} */
@Override public void close() throws IgniteException {
Ignition.stop(igniteInstanceName, true);
}
代码示例来源:origin: org.apache.ignite/ignite-core
/**
* Stop single instance.
*
* @param igniteInstanceName Ignite instance name,
* @param cancel Cancel flag.
* @return {@code True} if instance was found and stopped.
*/
public static synchronized boolean stop(@Nullable String igniteInstanceName, boolean cancel) {
if (Ignition.stop(igniteInstanceName, cancel)) {
PlatformProcessor old = instances.remove(igniteInstanceName);
assert old != null;
return true;
}
else
return false;
}
代码示例来源:origin: org.hibernate.ogm/hibernate-ogm-ignite
@Override
public void stop() {
if ( cacheManager != null && stopOnExit ) {
Ignition.stop( cacheManager.name(), true );
}
}
代码示例来源:origin: org.apache.ignite/ignite-core
/**
* Stop all instances.
*
* @param cancel Cancel flag.
*/
public static synchronized void stopAll(boolean cancel) {
for (PlatformProcessor proc : instances.values())
Ignition.stop(proc.ignite().name(), cancel);
instances.clear();
}
代码示例来源:origin: gauravrmazra/gauravbytes
public static void main(String[] args) {
try (Ignite ignite = Ignition.start(defaultIgniteCfg("hello-world"))) {
IgniteRunnable task = new IgniteRunnable() {
private static final long serialVersionUID = 787726700536869271L;
@IgniteInstanceResource
private transient Ignite ignite;
@Override
public void run() {
System.out.println("Hello Gaurav Bytes from: " + ignite.name());
}
};
ignite.compute().run(task);
}
Ignition.stop(true);
}
}
代码示例来源:origin: org.apache.ignite/ignite-core
Ignition.stop(ignite.name(), false);
内容来源于网络,如有侵权,请联系作者删除!