本文整理了Java中io.cattle.platform.core.model.Volume.getRemoved()
方法的一些代码示例,展示了Volume.getRemoved()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Volume.getRemoved()
方法的具体详情如下:
包路径:io.cattle.platform.core.model.Volume
类名称:Volume
方法名:getRemoved
[英]Getter for cattle.volume.removed
.
[中][$0$]的Getter。
代码示例来源:origin: rancher/cattle
@Override
public boolean evaluate(Volume obj) {
return obj.getRemoved() != null;
}
代码示例来源:origin: rancher/cattle
protected void storage(Instance instance) {
List<Volume> volumes = getObjectManager().children(instance, Volume.class);
for (Volume volume : volumes) {
if (volume.getRemoved() == null && !volume.getState().equals(CommonStatesConstants.REMOVED)) {
deactivate(volume, null);
}
}
}
代码示例来源:origin: rancher/cattle
@Override
public HandlerResult handle(final ProcessState state, ProcessInstance process) {
Mount mount = (Mount)state.getResource();
Volume volume = objectManager.loadResource(Volume.class, mount.getVolumeId());
/* This is an upgrade issue with old data from <= 1.1.x */
if (volume.getRemoved() != null) {
return null;
}
if (!CommonStatesConstants.ACTIVE.equals(volume.getState()) && !CommonStatesConstants.ACTIVATING.equals(volume.getState())
&& !CommonStatesConstants.RESTORING.equals(volume.getState())) {
if (CommonStatesConstants.REQUESTED.equals(volume.getState()) || CommonStatesConstants.REGISTERING.equals(volume.getState())) {
objectProcessManager.scheduleStandardProcess(StandardProcess.CREATE, volume,
ProcessUtils.chainInData(state.getData(), VolumeConstants.PROCESS_CREATE, VolumeConstants.PROCESS_ACTIVATE));
} else {
objectProcessManager.scheduleStandardProcess(StandardProcess.ACTIVATE, volume, state.getData());
}
}
return null;
}
}
代码示例来源:origin: rancher/cattle
setState(from.getState());
setCreated(from.getCreated());
setRemoved(from.getRemoved());
setRemoveTime(from.getRemoveTime());
setData(from.getData());
代码示例来源:origin: rancher/cattle
if (volume.getRemoved() != null) {
continue;
内容来源于网络,如有侵权,请联系作者删除!