
com.openshift.client.GearState Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2013 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package com.openshift.client;
import com.openshift.internal.client.utils.StringUtils;
public enum GearState {
STOPPED, BUILDING, DEPLOYING, STARTED, IDLE, UNKNOWN;
public static GearState safeValueOf(String gearStateString) {
if (StringUtils.isEmpty(gearStateString)) {
return UNKNOWN;
}
return valueOf(gearStateString.toUpperCase());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy