本文整理了Java中io.cattle.platform.core.model.Instance.getInstanceTriggeredStop()
方法的一些代码示例,展示了Instance.getInstanceTriggeredStop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getInstanceTriggeredStop()
方法的具体详情如下:
包路径:io.cattle.platform.core.model.Instance
类名称:Instance
方法名:getInstanceTriggeredStop
[英]Getter for cattle.instance.instance_triggered_stop
.
[中]cattle.instance.instance_triggered_stop
的Getter。
代码示例来源:origin: rancher/cattle
@Override
public HandlerResult handle(ProcessState state, ProcessInstance process) {
Instance instance = (Instance) state.getResource();
String chainProcess = null;
boolean start = DataAccessor.fromMap(state.getData()).withScope(InstanceProcessOptions.class).withKey(InstanceProcessOptions.START).withDefault(false)
.as(Boolean.class);
if (start) {
chainProcess = InstanceConstants.PROCESS_START;
} else if (Boolean.TRUE.equals(state.getData().get(InstanceConstants.REMOVE_OPTION)) ||
InstanceConstants.ON_STOP_REMOVE.equals(instance.getInstanceTriggeredStop())) {
chainProcess = objectProcessManager.getStandardProcessName(StandardProcess.REMOVE, instance);
}
return new HandlerResult().withChainProcessName(chainProcess);
}
代码示例来源:origin: rancher/cattle
setHostname(from.getHostname());
setZoneId(from.getZoneId());
setInstanceTriggeredStop(from.getInstanceTriggeredStop());
setAgentId(from.getAgentId());
setDomain(from.getDomain());
内容来源于网络,如有侵权,请联系作者删除!