org.xlcloud.openstack.model.heat.StackStatus Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2012 AMG.lab, a Bull Group Company
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xlcloud.openstack.model.heat;
/**
* Status of the stack creation, deletion or update
* (in progress, completed or failed). Values of this enum are
* combinations of these options.
* @author Ksiazczyk Grzegorz, AMG.net
*/
public enum StackStatus {
CREATE_IN_PROGRESS(false),
CREATE_COMPLETE(true),
CREATE_FAILED(true),
DELETE_IN_PROGRESS(false),
DELETE_COMPLETE(true),
DELETE_FAILED(true),
UPDATE_IN_PROGRESS(false),
UPDATE_COMPLETE(true),
UPDATE_FAILED(true),
RESUME_IN_PROGRESS(false),
RESUME_COMPLETE(true),
RESUME_FAILED(true),
SUSPEND_IN_PROGRESS(false),
SUSPEND_COMPLETE(true),
SUSPEND_FAILED(true),
ROLLBACK_IN_PROGRESS(false),
ROLLBACK_COMPLETE(true),
ROLLBACK_FAILED(true);
private boolean terminal;
StackStatus( boolean isTerminal ) {
this.terminal = isTerminal;
}
/**
* Is it a terminal status (i.e. did heat finished his work on the stack)
*/
public boolean isTerminal() {
return terminal;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy