mirror of https://github.com/apache/jclouds.git
added new status for ibm
This commit is contained in:
parent
5bd3eb0571
commit
318e9b9071
|
@ -29,7 +29,7 @@ import javax.annotation.Nullable;
|
|||
public class Address {
|
||||
|
||||
public static enum State {
|
||||
NEW, ALLOCATING, FREE, ATTACHED, RELEASING, RELEASED, FAILED;
|
||||
NEW, ALLOCATING, FREE, ATTACHED, RELEASING, RELEASED, FAILED, RELEASE_PENDING;
|
||||
public static State fromValue(int v) {
|
||||
switch (v) {
|
||||
case 0:
|
||||
|
@ -46,6 +46,8 @@ public class Address {
|
|||
return RELEASED;
|
||||
case 6:
|
||||
return FAILED;
|
||||
case 7:
|
||||
return RELEASE_PENDING;
|
||||
default:
|
||||
throw new IllegalArgumentException("invalid state:" + v);
|
||||
}
|
||||
|
@ -156,8 +158,8 @@ public class Address {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "[id=" + id + ", ip=" + ip + ", location=" + location + ", state=" + getState()
|
||||
+ ", instanceId=" + instanceId + "]";
|
||||
return "[id=" + id + ", ip=" + ip + ", location=" + location + ", state=" + getState() + ", instanceId="
|
||||
+ instanceId + "]";
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue