@Override public String toString() { return value(); }
public String value() { return name().toLowerCase(); }
public static ServerStatus fromValue(String status) { try { return valueOf(checkNotNull(status, "status").toUpperCase()); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (owner != null ? owner.hashCode() : 0); result = 31 * result + (status != null ? status.hashCode() : 0); result = 31 * result + (runtime != null ? runtime.hashCode() : 0); return result; }
@Override public boolean apply(String input) { ServerInfo serverInfo = api.getServerInfo(input); return status.equals(serverInfo.getStatus()); } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (owner != null ? owner.hashCode() : 0); result = 31 * result + (status != null ? status.hashCode() : 0); result = 31 * result + (runtime != null ? runtime.hashCode() : 0); return result; }
@Override public boolean apply(String input) { ServerInfo serverInfo = api.getServerInfo(input); return status.equals(serverInfo.getStatus()); } }
@Override public String toString() { return value(); }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (owner != null ? owner.hashCode() : 0); result = 31 * result + (status != null ? status.hashCode() : 0); result = 31 * result + (runtime != null ? runtime.hashCode() : 0); return result; }
public static ServerStatus fromValue(String status) { try { return valueOf(checkNotNull(status, "status").toUpperCase()); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
public String value() { return name().toLowerCase(); }
@Override public String toString() { return value(); }
public static ServerStatus fromValue(String status) { try { return valueOf(checkNotNull(status, "status").toUpperCase()); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
public String value() { return name().toLowerCase(); }
cloudSigmaApi.startServer(createdServer.getUuid()); if(createdServer.getStatus().value().equals("Running")) state=ComponentInstance.State.RUNNING;